1 dnl Process this file with autoconf to produce a configure script.
6 AC_SUBST(PACKAGE_VERSION)
8 AC_CONFIG_SRCDIR([rote.c])
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],AS_HELP_STRING([--disable-ncurses],[disables ncurses support (default enabled)]),[enable_curses=n],[enable_curses=y])
21 if test "$enable_curses" = y; then
22 AC_CHECK_LIB([ncurses], [initscr], [],
23 AC_MSG_ERROR([Need ncurses to compile ncurses support.]))
24 CFLAGS="$CFLAGS -DUSE_NCURSES"
27 AC_ARG_ENABLE([pty],AS_HELP_STRING([--disable-pty],[disables pty support (default enabled)]),[enable_pty=n],[enable_pty=y])
29 if test "$enable_pty" = y; 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([Makefile rote-config])