Line 0
Link Here
|
|
|
1 |
--- tools/ax_lib_readline.m4.orig 2016-08-11 02:38:59 UTC |
2 |
+++ tools/ax_lib_readline.m4 |
3 |
@@ -33,17 +33,19 @@ _bash_needmsg= |
4 |
fi |
5 |
AC_CACHE_VAL(bash_cv_termcap_lib, |
6 |
[AC_CHECK_FUNC(tgetent, bash_cv_termcap_lib=libc, |
7 |
- [AC_CHECK_LIB(termcap, tgetent, bash_cv_termcap_lib=libtermcap, |
8 |
- [AC_CHECK_LIB(tinfo, tgetent, bash_cv_termcap_lib=libtinfo, |
9 |
- bash_cv_termcap_lib=gnutermcap |
10 |
if test "$ax_cv_curses_which" = "ncursesw"; then |
11 |
[AC_CHECK_LIB(ncursesw, tgetent, bash_cv_termcap_lib=libncursesw)] |
12 |
elif test "$ax_cv_curses_which" = "ncurses"; then |
13 |
[AC_CHECK_LIB(ncurses, tgetent, bash_cv_termcap_lib=libncurses)] |
14 |
elif test "$ax_cv_curses_which" = "plaincurses"; then |
15 |
[AC_CHECK_LIB(curses, tgetent, bash_cv_termcap_lib=libcurses)] |
16 |
+else |
17 |
+ [AC_CHECK_LIB(termcap, tgetent, bash_cv_termcap_lib=libtermcap, |
18 |
+ [AC_CHECK_LIB(tinfo, tgetent, bash_cv_termcap_lib=libtinfo, |
19 |
+ bash_cv_termcap_lib=gnutermcap |
20 |
+ )])] |
21 |
fi |
22 |
-)])])]) |
23 |
+)]) |
24 |
if test "X$_bash_needmsg" = "Xyes"; then |
25 |
AC_MSG_CHECKING(which library has the termcap functions) |
26 |
fi |