From: markus schnalke Date: Tue, 27 Mar 2012 09:34:53 +0000 (+0200) Subject: Exit with error message if no library could be found with tgetent(). X-Git-Tag: mmh-thesis-end~151 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=b448acfe8fded2f2b29ae889c734d68245481529;p=mmh Exit with error message if no library could be found with tgetent(). Pulled in from nmh. Thanks to David Levine. --- diff --git a/configure.ac b/configure.ac index 2595cff..04f23d1 100644 --- a/configure.ac +++ b/configure.ac @@ -394,6 +394,12 @@ for lib in $termcap_curses_order; do AC_CHECK_LIB(${lib}, tgetent, [TERMLIB="-l$lib"; break]) done AC_SUBST(TERMLIB)dnl +if test "x$TERMLIB" = "x"; then + echo 'Could not find tgetent() in any library.' + echo 'Is there a ncurses-devel package that you can install?' + exit 1 +fi + dnl --------------- dnl CHECK FOR ICONV