summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-03-23 16:24:11 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-03-23 16:24:11 +0100
commit0d65ac98711bbab04120d6a848e107e2cd473d1f (patch)
tree2837482eb7650676f92755b313b53e33895ecb79 /configure.ac
parentcd3818d99153541fdc0e63c7c4af5804a27eaa87 (diff)
Links to tinfo library if available, solves "make static" under F-7
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 401ea39..179aa61 100644
--- a/configure.ac
+++ b/configure.ac
@@ -359,6 +359,10 @@ if test -z "${use_ncurses}"; then
AC_SEARCH_LIBS(initscr, ncursesw ncurses pdcurses curses,
[
AC_DEFINE([HAVE_NCURSES],1,[Define to 1 if you have one of the ncursesw/ncurses/pdcurses/curses library.])
+ AC_CHECK_LIB(tinfo,keypad,[
+ AC_DEFINE([HAVE_TINFO],1,[Define to 1 if you have the tinfo library (-ltinfo).])
+ LIBS="$LIBS -ltinfo"
+ ])
],AC_MSG_ERROR(No ncurses library detected))
else
AC_MSG_WARN(Use of ncurses library disabled)