1 AC_DEFUN([AC_PACKAGE_NEED_NCURSES_H],
2 [ AC_CHECK_HEADERS([ncurses.h])
3 if test "$ac_cv_header_ncurses_h" != yes; then
5 echo 'FATAL ERROR: could not find a valid ncurses header.'
6 echo 'Install the ncurses development package.'
11 AC_DEFUN([AC_PACKAGE_WANT_WORKING_LIBNCURSES],
12 [ AC_CHECK_LIB(ncurses, initscr,, [
14 echo 'FATAL ERROR: could not find a valid ncurses library.'
15 echo 'Install the ncurses library package.'
18 AC_MSG_CHECKING([for bad glibc/ncurses header interaction])
20 LIBS="$LIBS $libcurses"
21 CFLAGS="$CFLAGS -D_GNU_SOURCE"
26 [enable_curses=yes; AC_MSG_RESULT([ok])],
27 [enable_curses=no; libcurses=""; AC_MSG_RESULT([disabling curses])])
28 AC_SUBST(enable_curses)