about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b457eed1..3ffb8ccf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,7 +82,8 @@ PKG_CHECK_MODULES([ncursesw], [ncursesw],
     [NCURSES_CFLAGS="$ncursesw_CFLAGS"; NCURSES_LIBS="$ncursesw_LIBS"; NCURSES="ncursesw"],
     [PKG_CHECK_MODULES([ncurses], [ncurses],
         [NCURSES_CFLAGS="$ncurses_CFLAGS"; NCURSES_LIBS="$ncurses_LIBS"; NCURSES="ncurses"],
-        [AC_MSG_ERROR([ncurses is required for profanity])])])
+        [AC_CHECK_LIB([ncurses], [main], [],
+            [AC_MSG_ERROR([ncurses is required for profanity])])])])
 AM_CPPFLAGS="$AM_CPPFLAGS $NCURSES_CFLAGS"
 LIBS="$LIBS $NCURSES_LIBS"