https://bugs.gentoo.org/670729 --- a/m4/reorganization/clamdtop.m4 +++ b/m4/reorganization/clamdtop.m4 @@ -4,12 +4,26 @@ if test "$enable_clamdtop" != "no"; then +PKG_CHECK_MODULES([CURSES], [ncursesw], + [CURSES_INCLUDE=""; + HAVE_LIBNCURSES=yes], + HAVE_LIBNCURSES=no]) + +if test "X$HAVE_LIBNCURSES" != "Xyes"; then +PKG_CHECK_MODULES([CURSES], [ncurses], + [CURSES_INCLUDE=""; + HAVE_LIBNCURSES=yes], + HAVE_LIBNCURSES=no]) +fi + +if test "X$HAVE_LIBNCURSES" != "Xyes"; then 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=