1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-26 15:10:35 -04:00
ports/devel/php52-readline/files/patch-config.m4
Ruslan Makhmatkhanov 76ea697dac - apply BACKPORTS patch unconditionally and remove BACKPORTS option
- update backports patch to latest version (20120504)
- align pathnames in slave ports
- bump PORTREVISION

The only drawback of this change is that now for building of every slave
port (php extension) we extracting full php52 source tree.

Apologies that it took that long.

PR:		164849
Submitted by:	Svyatoslav Lempert <svyatoslav.lempert at gmail dot com>
Approved by:	Alex Keda <admin at lissyara dot su>
Security:	60de13d5-95f0-11e1-806a-001143cd36d8
2012-05-05 15:18:09 +00:00

38 lines
1.2 KiB
Text

--- ext/readline/config.m4.orig 2009-08-04 13:20:49.000000000 +0200
+++ ext/readline/config.m4 2009-09-22 11:13:12.000000000 +0200
@@ -5,13 +5,8 @@
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
@@ -60,6 +55,13 @@
-L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
])
+ PHP_CHECK_LIBRARY(readline, rl_completion_matches,
+ [
+ AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
+ ],[],[
+ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
+ ])
+
AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])
elif test "$PHP_LIBEDIT" != "no"; then
@@ -97,7 +99,6 @@
fi
if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
- AC_CHECK_FUNCS([rl_completion_matches])
PHP_NEW_EXTENSION(readline, readline.c, $ext_shared, cli)
PHP_SUBST(READLINE_SHARED_LIBADD)
fi