--- a/m4/reorganization/clamdtop.m4 +++ b/m4/reorganization/clamdtop.m4 @@ -4,12 +4,20 @@ if test "$enable_clamdtop" != "no"; then +PKG_CHECK_MODULES([CURSES],[ncurses], + [HAVE_LIBNCURSES=yes; CURSES_INCLUDE=""], + [HAVE_LIBNCURSES=no], +) + +if test "X$HAVE_LIBNCURSES" != "Xyes"; then + HAVE_LIBNCURSES= AC_LIB_FIND([ncurses], [ncurses/ncurses.h], AC_LANG_PROGRAM([#include ], [initscr(); KEY_RESIZE;]), [CURSES_CPPFLAGS="$INCNCURSES"; CURSES_LIBS="$LTLIBNCURSES"; CURSES_INCLUDE=""], []) +fi if test "X$HAVE_LIBNCURSES" != "Xyes"; then HAVE_LIBNCURSES=