From: Arkadiusz Miskiewicz Date: Fri, 8 Aug 2008 06:21:23 +0000 (+0200) Subject: build-sys: tgets is not in ncurses but in tinfo X-Git-Tag: v2.15-rc1~420 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ea8ac37750a0fda6a019f53f6f4bbacb6273438;p=thirdparty%2Futil-linux.git build-sys: tgets is not in ncurses but in tinfo ncurses library can be build with terminal related functions landing in separate libtinfo library. Check for ncurses function when testing ncurses library existence. Signed-off-by: Arkadiusz Miƛkiewicz --- diff --git a/configure.ac b/configure.ac index 89f0fcafe3..5b357d182b 100644 --- a/configure.ac +++ b/configure.ac @@ -207,13 +207,13 @@ if test "x$with_ncurses" != xno; then have_ncurses=no AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h], [ if test "x$with_ncurses" = xauto; then - UTIL_CHECK_LIB(ncursesw, tputs, ncurses) + UTIL_CHECK_LIB(ncursesw, initscr, ncurses) if test "x$have_ncurses" = xyes; then NCURSES_LIBS="-lncursesw" fi fi if test "x$have_ncurses" = xno; then - UTIL_CHECK_LIB(ncurses, tputs) + UTIL_CHECK_LIB(ncurses, initscr) if test "x$have_ncurses" = xyes; then NCURSES_LIBS="-lncurses" fi