14_fix_readline_check.patch from Debian (Sven Joachim)

This commit is contained in:
Sven Joachim 2013-10-25 00:04:08 +02:00 committed by Thomas Debesse
parent fac616761c
commit bd7c62336d

View File

@ -90,12 +90,12 @@ XQFRCON_LIBS=
AC_ARG_ENABLE(externalrcon,[ --enable-externalrcon compile external rcon program (default=no)]) AC_ARG_ENABLE(externalrcon,[ --enable-externalrcon compile external rcon program (default=no)])
if test x$enable_externalrcon = xyes; then if test x$enable_externalrcon = xyes; then
AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes) AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes)
AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lncurses ) AC_CHECK_LIB(readline, readline, have_readline_lib=yes)
AC_CHECK_HEADER(readline/history.h, have_history_hdr=yes) AC_CHECK_HEADER(readline/history.h, have_history_hdr=yes)
AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lncurses ) AC_CHECK_LIB(readline, add_history, have_history_lib=yes)
if test x$have_readline_hdr = xyes -a x$have_readline_lib = xyes; then 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 if test x$have_history_hdr = xyes -a x$have_history_lib = xyes; then
XQFRCON_LIBS="-lreadline -lncurses" XQFRCON_LIBS="-lreadline"
AC_SUBST(XQFRCON_LIBS) AC_SUBST(XQFRCON_LIBS)
else else
AC_MSG_WARN([libreadline not found, rcon program disabled]) AC_MSG_WARN([libreadline not found, rcon program disabled])