-dnl Check for libraries
-AC_ARG_ENABLE([ncurses],
- AS_HELP_STRING([--disable-ncurses], [disables ncurses support (default enabled)]))
-if test "${enable_curses}" != "no"; then
- AC_CHECK_LIB([ncurses], [initscr], [],
- AC_MSG_ERROR([Need ncurses to compile ncurses support.]))
- CFLAGS="$CFLAGS -DUSE_NCURSES"
-fi
-
-dnl Checks for library functions
-AC_CHECK_FUNCS([memset select setenv])
-AC_FUNC_MALLOC
-AC_FUNC_SELECT_ARGTYPES
-