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"
28 AS_HELP_STRING([--disable-pty], [disables pty support (default enabled)]))
29 if test "${enable_pty}" != "no"; then
30 AC_CHECK_LIB([util], [forkpty], [],
31 AC_MSG_ERROR([Need util library (forkpty function) to compile pty support.]))
32 CFLAGS="$CFLAGS -DUSE_PTY"
35 dnl Checks for library functions
36 AC_CHECK_FUNCS([memset select setenv])
38 AC_FUNC_SELECT_ARGTYPES
40 dnl Checks for typedefs, structures, and compiler characteristics.
47 AC_CONFIG_FILES([am/vars.mk