From: Yann E. MORIN" Date: Tue, 5 Mar 2013 00:08:27 +0000 (+0100) Subject: configure: also search for libtinfo if needed X-Git-Tag: v3.9.0.0~6 X-Git-Url: https://git.sur5r.net/?p=kconfig-frontends;a=commitdiff_plain;h=cefcd4b655c2b7efdc6313740f3c8af89dd8f670 configure: also search for libtinfo if needed As Justin says: When building ncurses with --with-termlib several symbols get moved from libncurses.so to libtinfo.so. Thus when linking with libncurses.so, one additionally needs to link with libtinfo.so. Contrary to the Linux kernel (that is on the verge of using pkg-config or the ncurses*-config scripts), we simply see if we need to link against libtinfo to get a symbol known to get moved there. Reported-by: Justin Signed-off-by: "Yann E. MORIN" --- diff --git a/configure.ac b/configure.ac index 8b5bc5d..e90fd17 100644 --- a/configure.ac +++ b/configure.ac @@ -283,6 +283,10 @@ AS_IF( [test "$need_curses" = "yes"], [AC_MSG_ERROR([could not find curses library (frontends: mconf/nconf)])], [has_curses=no])]) + AC_SEARCH_LIBS( + [setupterm], + [tinfo], + [break]) ncurses_LIBS="$LIBS" LIBS=$LIBS_old])