1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([maddty], 0.0.0)
6 AC_SUBST(PACKAGE_VERSION)
8 AC_CONFIG_SRCDIR([madtty/madtty.h])
10 dnl Checks for programs.
13 dnl Checks for header files.
16 AC_CHECK_HEADERS([sys/types.h unistd.h stdlib.h string.h])
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"
27 dnl Checks for library functions
28 AC_CHECK_FUNCS([memset select setenv])
30 AC_FUNC_SELECT_ARGTYPES
32 dnl Checks for typedefs, structures, and compiler characteristics.
39 AC_CONFIG_FILES([am/vars.mk