]> git.pld-linux.org Git - packages/less.git/blob - less-libtinfo.patch
- updated to 481
[packages/less.git] / less-libtinfo.patch
1 --- less-418/configure.ac.orig  2007-11-15 18:43:30.000000000 +0100
2 +++ less-418/configure.ac       2008-01-22 21:04:46.715325810 +0100
3 @@ -23,6 +23,7 @@
4  AC_SYS_LARGEFILE
5  
6  # Checks for general libraries.
7 +AC_CHECK_LIB(tinfow, tgoto, [have_tinfow=yes], [have_tinfow=no])
8  AC_CHECK_LIB(tinfo, tgoto, [have_tinfo=yes], [have_tinfo=no])
9  AC_CHECK_LIB(xcurses, initscr, [have_xcurses=yes], [have_xcurses=no])
10  AC_CHECK_LIB(ncursesw, initscr, [have_ncursesw=yes], [have_ncursesw=no])
11 @@ -55,6 +56,18 @@
12  
13  # -- Try tinfo.
14  if test "x$TERMLIBS" = x; then
15 +  if test $have_tinfow = yes; then
16 +    TERMLIBS="-ltinfow"
17 +    SAVE_LIBS=$LIBS
18 +    LIBS="$LIBS $TERMLIBS"
19 +    AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
20 +      [termok=yes], [termok=no])
21 +    LIBS=$SAVE_LIBS
22 +    if test $termok = no; then TERMLIBS=""; fi
23 +  fi
24 +fi
25 +
26 +if test "x$TERMLIBS" = x; then
27    if test $have_tinfo = yes; then
28      TERMLIBS="-ltinfo"
29      SAVE_LIBS=$LIBS
This page took 0.023586 seconds and 3 git commands to generate.