Sophie

Sophie

distrib > Mageia > 6 > i586 > media > core-backports-src > by-pkgid > e72da0c3b767c43e383b3f2efb187867 > files > 87

php-7.2.21-1.mga6.src.rpm

diff -Naur php-5.5.2/ext/readline/config.m4 php-5.5.2.oden/ext/readline/config.m4
--- php-5.5.2/ext/readline/config.m4	2013-08-15 22:42:04.000000000 +0200
+++ php-5.5.2.oden/ext/readline/config.m4	2013-08-18 21:09:08.937879994 +0200
@@ -2,16 +2,9 @@
 dnl $Id$
 dnl

-PHP_ARG_WITH(libedit,for libedit readline replacement,
-[  --with-libedit[=DIR]      Include libedit readline replacement (CLI/CGI only)])
-
-if test "$PHP_LIBEDIT" = "no"; then
   PHP_ARG_WITH(readline,for readline support,
   [  --with-readline[=DIR]     Include readline support (CLI/CGI only)])
-else
   dnl "register" the --with-readline option to preven invalid "unknown configure option" warning
-  php_with_readline=no
-fi

 if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
   for i in $PHP_READLINE /usr/local /usr; do
@@ -69,18 +62,6 @@

   AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])

-elif test "$PHP_LIBEDIT" != "no"; then
-
-  for i in $PHP_LIBEDIT /usr/local /usr; do
-    test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
-  done
-
-  if test -z "$LIBEDIT_DIR"; then
-    AC_MSG_ERROR(Please reinstall libedit - I cannot find readline.h)
-  fi
-
-  PHP_ADD_INCLUDE($LIBEDIT_DIR/include)
-
   AC_CHECK_LIB(ncurses, tgetent,
   [
     PHP_ADD_LIBRARY(ncurses,,READLINE_SHARED_LIBADD)
@@ -79,37 +79,12 @@
     ])
   ])

-  PHP_CHECK_LIBRARY(edit, readline,
-  [
-    PHP_ADD_LIBRARY_WITH_PATH(edit, $LIBEDIT_DIR/$PHP_LIBDIR, READLINE_SHARED_LIBADD)
-  ], [
-    AC_MSG_ERROR(edit library required by readline not found)
-  ], [
-    -L$READLINE_DIR/$PHP_LIBDIR
-  ])
-
-  PHP_CHECK_LIBRARY(edit, rl_callback_read_char,
-  [
-    AC_DEFINE(HAVE_RL_CALLBACK_READ_CHAR, 1, [ ])
-  ],[],[
-    -L$READLINE_DIR/$PHP_LIBDIR
-  ])
-
-  PHP_CHECK_LIBRARY(edit, rl_on_new_line,
+  PHP_CHECK_LIBRARY(readline, rl_on_new_line,
   [
     AC_DEFINE(HAVE_RL_ON_NEW_LINE, 1, [ ])
   ],[],[
     -L$READLINE_DIR/$PHP_LIBDIR
   ])
-
-  PHP_CHECK_LIBRARY(edit, rl_completion_matches,
-  [
-    AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
-  ],[],[
-    -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
-  ])
-
-  AC_DEFINE(HAVE_LIBEDIT, 1, [ ])
 fi

 if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then