| --- 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. |