(patch by tcallawa at redhat dot com)
@ -65,7 +65,7 @@ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
elif test "$PHP_LIBEDIT" != "no"; then
for i in $PHP_LIBEDIT /usr/local /usr; do
test -f $i/include/readline/readline.h && LIBEDIT_DIR=$i && break
test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
done
if test -z "$LIBEDIT_DIR"; then
@ -33,8 +33,10 @@
#define rl_completion_matches completion_matches
#endif
#ifdef HAVE_LIBEDIT
#include <editline/readline.h>
#else
#include <readline/readline.h>
#ifndef HAVE_LIBEDIT
#include <readline/history.h>
@ -76,8 +76,11 @@
#if (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE)
#if HAVE_LIBEDIT
#if !HAVE_LIBEDIT
#include "php_cli_readline.h"
@ -49,8 +49,10 @@
#include <unixlib/local.h>