]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Moan loudly if libreadline is an old version which doesn't support
authorMartin Mares <mj@ucw.cz>
Thu, 24 Feb 2000 18:43:23 +0000 (18:43 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 24 Feb 2000 18:43:23 +0000 (18:43 +0000)
callbacks.

configure.in

index 579c6bd542f80b5b736566a94c6eb4fe30de5e91..b0c3f8dcc3e2b79dd1a2a7e7641176787308e13e 100644 (file)
@@ -142,8 +142,8 @@ 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(termcap, tgetent, USE_TERMCAP_LIB=-ltermcap)))
-       AC_CHECK_LIB(readline, readline, CLIENT_LIBS="-lreadline $CLIENT_LIBS $USE_TERMCAP_LIB",
-               AC_MSG_ERROR([[The client requires GNU readline library. Either install the library or use --disable-client to compile without the client.]]), $USE_TERMCAP_LIB)
+       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 4.0 or newer. Either install the library or use --disable-client to compile without the client.]]), $USE_TERMCAP_LIB)
 fi
 AC_SUBST(CLIENT)
 AC_SUBST(CLIENT_LIBS)