]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes autoconf check for ncurses.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 7 Feb 2014 10:46:01 +0000 (11:46 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 7 Feb 2014 10:46:01 +0000 (11:46 +0100)
configure.in

index 5af574a5cef60d8072e48c14afa9ffa1eb796310..09e29dc25ee8710f3b155ae6d6ef776cdf87dd45 100644 (file)
@@ -269,8 +269,9 @@ if test "$enable_client" = yes ; then
        AC_CHECK_LIB(ncurses, tgetent, USE_TERMCAP_LIB=-lncurses,
                AC_CHECK_LIB(curses, tgetent, USE_TERMCAP_LIB=-lcurses,
                        AC_CHECK_LIB(tinfow, tgetent, USE_TERMCAP_LIB=-ltinfow,
-                               AC_CHECK_LIB(tinfo, tgetent, USE_TERMCAP_LIB=-ltinfo
-                                       AC_CHECK_LIB(termcap, tgetent, USE_TERMCAP_LIB=-ltermcap)))))
+                               AC_CHECK_LIB(tinfo, tgetent, USE_TERMCAP_LIB=-ltinfo,
+                                       AC_CHECK_LIB(termcap, tgetent, USE_TERMCAP_LIB=-ltermcap,
+                                               AC_MSG_ERROR([[The client requires ncurses library. Either install the library or use --disable-client to compile without the client.]]))))))
        AC_CHECK_LIB(readline, rl_callback_read_char, CLIENT_LIBS="-lreadline $CLIENT_LIBS $USE_TERMCAP_LIB",
                AC_MSG_ERROR([[The client requires GNU readline library 2.1 or newer. Either install the library or use --disable-client to compile without the client.]]), $USE_TERMCAP_LIB)
        AC_CHECK_LIB(readline, rl_crlf, AC_DEFINE(HAVE_RL_CRLF),,$USE_TERMCAP_LIB)