]> git.pld-linux.org Git - packages/cftp.git/blob - cftp-ac_better_tgetent_detection.patch
- invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep
[packages/cftp.git] / cftp-ac_better_tgetent_detection.patch
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
3 @@ -20,28 +20,15 @@
4  
5  dnl libraries
6  
7 -TERMCAP=none
8 -AC_CHECK_FUNC(tgetent, [TERMCAP=""])
9 -if test "$TERMCAP" = none
10 -then
11 -       AC_CHECK_LIB(termcap, tgetent, [TERMCAP=-ltermcap])
12 -       AC_DEFINE(USE_TERMCAP, 1, [define if we're linking against -ltermcap])
13 -fi
14 -if test "$TERMCAP" = none
15 -then
16 -       AC_CHECK_LIB(curses, tgetent, [TERMCAP=-lcurses])
17 -       AC_DEFINE(USE_CURSES, 1, [define if we're linking against -lcurses])
18 -fi
19 -if test "$TERMCAP" = none
20 -then
21 -       AC_CHECK_LIB(ncurses, tgetent, [TERMCAP=-lncurses])
22 -       AC_DEFINE(USE_NCURSES, 1, [define if we're linking against -lncurses])
23 -fi
24 -if test "$TERMCAP" = none
25 -then
26 -       AC_MSG_ERROR([can't find termcap (emulation) library])
27 -fi
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])
34 +                       )]
35 +               )]
36 +       )]
37 +)
38  
39  AC_CHECK_LIB(socket, main)
40  AC_CHECK_FUNC(gethostbyname, [], AC_CHECK_LIB(nsl, gethostbyname))
This page took 0.029957 seconds and 3 git commands to generate.