summaryrefslogtreecommitdiff
blob: d1a406521c0fd3b27e208c0e0e26a435319ef3ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/configure.in
+++ b/configure.in
@@ -41,8 +41,7 @@
 fi
 
 ERR="Required package missing!"
-AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([$ERR]))
+PKG_CHECK_MODULES(ncurses,ncurses,[LIBS="$LIBS $ncurses_LIBS"],AC_MSG_ERROR([$ERR]))
 AC_CHECK_HEADER(getopt.h,:,AC_MSG_ERROR([$ERR]))
-AC_CHECK_LIB(ncurses,initscr)
 AC_CHECK_LIB(m,pow)
 AC_OUTPUT(Makefile)