- use better detection for term library and if it is pssibl;e use only libtinfo
authorkloczek <kloczek@pld-linux.org>
Sat, 28 Sep 2002 15:19:38 +0000 (15:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  instead libncurses.

Changed files:
    cftp-ac_better_tgetent_detection.patch -> 1.1

cftp-ac_better_tgetent_detection.patch [new file with mode: 0644]

diff --git a/cftp-ac_better_tgetent_detection.patch b/cftp-ac_better_tgetent_detection.patch
new file mode 100644 (file)
index 0000000..86a8abe
--- /dev/null
@@ -0,0 +1,40 @@
+--- cftp-0.11.2/configure.in~  Sat Sep 28 16:41:55 2002
++++ cftp-0.11.2/configure.in   Sat Sep 28 16:41:55 2002
+@@ -20,28 +20,15 @@
+ dnl libraries
+-TERMCAP=none
+-AC_CHECK_FUNC(tgetent, [TERMCAP=""])
+-if test "$TERMCAP" = none
+-then
+-      AC_CHECK_LIB(termcap, tgetent, [TERMCAP=-ltermcap])
+-      AC_DEFINE(USE_TERMCAP, 1, [define if we're linking against -ltermcap])
+-fi
+-if test "$TERMCAP" = none
+-then
+-      AC_CHECK_LIB(curses, tgetent, [TERMCAP=-lcurses])
+-      AC_DEFINE(USE_CURSES, 1, [define if we're linking against -lcurses])
+-fi
+-if test "$TERMCAP" = none
+-then
+-      AC_CHECK_LIB(ncurses, tgetent, [TERMCAP=-lncurses])
+-      AC_DEFINE(USE_NCURSES, 1, [define if we're linking against -lncurses])
+-fi
+-if test "$TERMCAP" = none
+-then
+-      AC_MSG_ERROR([can't find termcap (emulation) library])
+-fi
+-LIBS="$LIBS $TERMCAP"
++AC_CHECK_LIB(termcap, tgetent, [LIBS="$LIBS -ltermcap"],
++      [AC_CHECK_LIB(tinfo, tgetent, [LIBS="$LIBS -ltinfo"],
++              [AC_CHECK_LIB(ncurses, tgetent, [LIBS="$LIBS -lncurses"],
++                      [AC_CHECK_LIB(curses, tgetent, [LIBS="$LIBS -lcurses"],
++                              AC_MSG_ERROR([can't find termcap (emulation) library])
++                      )]
++              )]
++      )]
++)
+ AC_CHECK_LIB(socket, main)
+ AC_CHECK_FUNC(gethostbyname, [], AC_CHECK_LIB(nsl, gethostbyname))
This page took 0.031366 seconds and 4 git commands to generate.