-AC_ARG_WITH(
- [ncurses],
- [AS_HELP_STRING([--with-ncurses],
- [build text console UI programs using ncurses [default=yes]]
- )],
- [],
- [with_ncurses=yes]
-)
-AM_CONDITIONAL([WITH_NCURSES], [test "x$with_ncurses" = "xyes"])
-
-AS_IF(
- [test "x$with_ncurses" = "xyes"],
- AC_CHECK_LIB([ncurses], [initscr],
- [],
- [AC_MSG_FAILURE([--with-ncurses was given but the test for libncurses failed. Try installing the package ncurses-dev or ncurses-devel.])]
- )
-)
-