Commit 5c6772fe 5c6772feb20b57059246edb25691f079ce60297b by Sergey Poznyakoff

Check for rl_completion_matches being present.

1 parent 70f54114
......@@ -275,8 +275,12 @@ AC_SUBST(READLINE_LIBS)
if test x"$usereadline" = x"yes"; then
AC_CHECK_LIB(readline, readline,
[AC_CHECK_HEADERS(readline/readline.h,
AC_DEFINE(WITH_READLINE))
READLINE_LIBS="-lcurses -lreadline"],
AC_DEFINE(WITH_READLINE))
READLINE_LIBS="-lcurses -lreadline"
saved_LIBS=$LIBS
LIBS="$LIBS $READLINE_LIBS"
AC_CHECK_FUNCS(rl_completion_matches)
LIBS=$saved_LIBS],
:,
-lcurses)
fi
......