]> err.no Git - util-linux/commitdiff
build-sys: tgets is not in ncurses but in tinfo
authorArkadiusz Miskiewicz <arekm@maven.pl>
Fri, 8 Aug 2008 06:21:23 +0000 (08:21 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Aug 2008 11:39:26 +0000 (13:39 +0200)
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 <arekm@maven.pl>
configure.ac

index 89f0fcafe39a7a9206e4b35a6d6f534e4a6f85b3..5b357d182b7354af0aaff8c4e4b845df08b8cc35 100644 (file)
@@ -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