we don't use the libutil anymore !
[apps/madtty.git] / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_INIT([maddty], 0.0.0)
4
5 AC_SUBST(PACKAGE_NAME)
6 AC_SUBST(PACKAGE_VERSION)
7
8 AC_CONFIG_SRCDIR([madtty/madtty.h])
9
10 dnl Checks for programs.
11 AC_PROG_CC
12
13 dnl Checks for header files.
14 AC_HEADER_STDC
15 AC_HEADER_STDBOOL
16 AC_CHECK_HEADERS([sys/types.h unistd.h stdlib.h string.h])
17
18 dnl Check for libraries
19 AC_ARG_ENABLE([ncurses],
20               AS_HELP_STRING([--disable-ncurses], [disables ncurses support (default enabled)]))
21 if test "${enable_curses}" != "no"; then
22     AC_CHECK_LIB([ncurses], [initscr], [],
23                  AC_MSG_ERROR([Need ncurses to compile ncurses support.]))
24     CFLAGS="$CFLAGS -DUSE_NCURSES"
25 fi
26
27 dnl Checks for library functions
28 AC_CHECK_FUNCS([memset select setenv])
29 AC_FUNC_MALLOC
30 AC_FUNC_SELECT_ARGTYPES
31
32 dnl Checks for typedefs, structures, and compiler characteristics.
33 AC_C_CONST
34 AC_HEADER_TIME
35 AC_C_INLINE
36 AC_TYPE_PID_T
37 AC_TYPE_SIGNAL
38
39 AC_CONFIG_FILES([am/vars.mk
40                  madtty/madtty.pc
41                  madtty/Makefile
42 ])
43 AC_OUTPUT