summaryrefslogtreecommitdiff
blob: 1dba440c9e7912b7413fcade895c0e092acb5357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/configure.ac	2014-12-12 14:13:07.262413254 +0100
+++ b/configure.ac	2014-12-12 14:13:14.922480835 +0100
@@ -885,14 +885,16 @@
 CURSESLIBS=''
 if test "$ac_cv_header_ncurses_h" = "yes"; then
   AC_CHECK_LIB(ncurses, printw,
-    [CURSESLIBS='-lncurses'; AC_DEFINE(HAVE_LIBNCURSES,1, have ncurses library)]
+    [AC_DEFINE(HAVE_LIBNCURSES,1, have ncurses library)]
   )
+  CURSESLIBS=`$PKGCONFIG --libs ncurses`;
 fi
 
 if test "$ac_cv_header_ncurses_ncurses_h" = "yes"; then
   AC_CHECK_LIB(ncurses, printw,
-    [CURSESLIBS='-lncurses'; AC_DEFINE(HAVE_LIBNCURSES,1, have ncurses library)]
+    [AC_DEFINE(HAVE_LIBNCURSES,1, have ncurses library)]
   )
+  CURSESLIBS=`$PKGCONFIG --libs ncurses`;
 fi
 
 dnl Only look for non-n-library if there was no n-library.