blob: e887013844b76aca7d24d2b734191cbd7ee9d484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([aewan])
AC_CONFIG_SRCDIR([aewan.c])
#AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
# Check for the standard stdbool header file
AC_HEADER_STDBOOL
# Checks for libraries.
AC_CHECK_LIB([ncurses], [initscr], [],
AC_MSG_ERROR([Can't find ncurses library. Install it first.]))
AC_CHECK_LIB([z], [gzopen], [],
AC_MSG_ERROR([Can't find zlib library. Install it first.]))
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([zlib.h fcntl.h limits.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_MODE_T
# Checks for library functions.
AC_CHECK_FUNCS([atexit strdup strerror])
# Checks for cygwin
AC_MSG_CHECKING([for cygwin OSTYPE])
if test x$OSTYPE == xcygwin; then
AC_SUBST(EXESUF, [.exe])
AC_MSG_RESULT([it is cygwin, using .exe])
else
AC_MSG_RESULT([not cygwin])
fi
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|