Commit 5c6772fe 5c6772feb20b57059246edb25691f079ce60297b by Sergey Poznyakoff

Check for rl_completion_matches being present.

1 parent 70f54114
...@@ -275,8 +275,12 @@ AC_SUBST(READLINE_LIBS) ...@@ -275,8 +275,12 @@ AC_SUBST(READLINE_LIBS)
275 if test x"$usereadline" = x"yes"; then 275 if test x"$usereadline" = x"yes"; then
276 AC_CHECK_LIB(readline, readline, 276 AC_CHECK_LIB(readline, readline,
277 [AC_CHECK_HEADERS(readline/readline.h, 277 [AC_CHECK_HEADERS(readline/readline.h,
278 AC_DEFINE(WITH_READLINE)) 278 AC_DEFINE(WITH_READLINE))
279 READLINE_LIBS="-lcurses -lreadline"], 279 READLINE_LIBS="-lcurses -lreadline"
280 saved_LIBS=$LIBS
281 LIBS="$LIBS $READLINE_LIBS"
282 AC_CHECK_FUNCS(rl_completion_matches)
283 LIBS=$saved_LIBS],
280 :, 284 :,
281 -lcurses) 285 -lcurses)
282 fi 286 fi
......