1 --- cftp-0.11.2/configure.in~ Sat Sep 28 16:41:55 2002
2 +++ cftp-0.11.2/configure.in Sat Sep 28 16:41:55 2002
8 -AC_CHECK_FUNC(tgetent, [TERMCAP=""])
9 -if test "$TERMCAP" = none
11 - AC_CHECK_LIB(termcap, tgetent, [TERMCAP=-ltermcap])
12 - AC_DEFINE(USE_TERMCAP, 1, [define if we're linking against -ltermcap])
14 -if test "$TERMCAP" = none
16 - AC_CHECK_LIB(curses, tgetent, [TERMCAP=-lcurses])
17 - AC_DEFINE(USE_CURSES, 1, [define if we're linking against -lcurses])
19 -if test "$TERMCAP" = none
21 - AC_CHECK_LIB(ncurses, tgetent, [TERMCAP=-lncurses])
22 - AC_DEFINE(USE_NCURSES, 1, [define if we're linking against -lncurses])
24 -if test "$TERMCAP" = none
26 - AC_MSG_ERROR([can't find termcap (emulation) library])
28 -LIBS="$LIBS $TERMCAP"
29 +AC_CHECK_LIB(termcap, tgetent, [LIBS="$LIBS -ltermcap"],
30 + [AC_CHECK_LIB(tinfo, tgetent, [LIBS="$LIBS -ltinfo"],
31 + [AC_CHECK_LIB(ncurses, tgetent, [LIBS="$LIBS -lncurses"],
32 + [AC_CHECK_LIB(curses, tgetent, [LIBS="$LIBS -lcurses"],
33 + AC_MSG_ERROR([can't find termcap (emulation) library])
39 AC_CHECK_LIB(socket, main)
40 AC_CHECK_FUNC(gethostbyname, [], AC_CHECK_LIB(nsl, gethostbyname))