From db5732634f85f13dd65658362973699a90fa4457 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 16 May 2002 02:45:09 +0000 Subject: [PATCH] readline detection fixes by Edward Rudd. --- configure.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 1686f390..4439c7b0 100644 --- a/configure.in +++ b/configure.in @@ -174,13 +174,13 @@ AC_ARG_ENABLE(readline, , enable_readline=yes) if test x$enable_readline = xyes; then AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes) - AC_CHECK_LIB(readline, readline, have_readline_lib=yes) + AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lcurses) AC_CHECK_HEADER(readline/history.h, have_history_hdr=yes) - AC_CHECK_LIB(readline, add_history, have_history_lib=yes) + AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lcurses) if test x$have_readline_hdr = xyes -a x$have_readline_lib = xyes; then if test x$have_history_hdr = xyes -a x$have_history_lib = xyes; then AC_DEFINE(PHYSFS_HAVE_READLINE) - LIBS="$LIBS -lreadline" + LIBS="$LIBS -lreadline -lcurses" fi fi fi