Allow "readline" to be used even if "history" is unavailable...

This commit is contained in:
hpa 2001-11-14 20:51:09 +00:00
parent a9be60cae6
commit 01acb3dc7f
4 changed files with 16 additions and 7 deletions

View file

@ -151,15 +151,14 @@ PA_WITH_BOOL(readline, 1,
[ --without-readline disable the use of readline command-line editing],
[
USE_READLINE=true
AC_CHECK_HEADER(readline/readline.h, [], [USE_READLINE=false])
AC_CHECK_HEADER(readline/history.h, [], [USE_READLINE=false])
if $USE_READLINE
then
AC_CHECK_HEADER(readline/readline.h,
[
AC_SEARCH_LIBS(readline, [readline history],
[
AC_DEFINE(WITH_READLINE)
])
fi
AC_CHECK_HEADERS(readline/history.h)
])
],:)
TFTP_LIBS="$LIBS"