24 lines
724 B
Plaintext
24 lines
724 B
Plaintext
---
|
|
configure.ac | 9 +++++++--
|
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
|
|
--- configure.ac
|
|
+++ configure.ac 2016-05-31 11:14:28.772649746 +0000
|
|
@@ -321,9 +321,14 @@ main ()
|
|
do
|
|
AC_CHECK_LIB($lib, waddnwstr, [cf_ncurses="$lib"; break])
|
|
done
|
|
+ cf_tinfo=""
|
|
+ AC_CHECK_LIB(tinfo, tgetent, [cf_tinfo="tinfo"])
|
|
AC_CHECK_LIB($cf_ncurses, initscr,
|
|
- [MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
|
|
-
|
|
+ [if test x$cf_tinfo = x ; then
|
|
+ MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
|
|
+ else
|
|
+ MUTTLIBS="$MUTTLIBS -l$cf_ncurses -l$cf_tinfo"
|
|
+ fi
|
|
if test "$cf_ncurses" = ncursesw; then
|
|
AC_CHECK_HEADERS(ncursesw/ncurses.h,[cf_cv_ncurses_header="ncursesw/ncurses.h"])
|
|
else
|