aboutsummaryrefslogtreecommitdiff
path: root/devel/php52-readline
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-04-23 22:18:48 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-04-23 22:18:48 +0000
commit1aaae85bdc4e00b0cafc7a536934e0a41e58ff5b (patch)
tree34b2232ac085b8d098025b48ca036a1331ccdf19 /devel/php52-readline
parent078a1f526ea40b94c6c546d608f2d8ac1ea17af4 (diff)
downloadports-1aaae85bdc4e00b0cafc7a536934e0a41e58ff5b.tar.gz
ports-1aaae85bdc4e00b0cafc7a536934e0a41e58ff5b.zip
- PHP 5.2 slave port
PR: 145772 Submitted by: Alex Keda
Notes
Notes: svn path=/head/; revision=253124
Diffstat (limited to 'devel/php52-readline')
-rw-r--r--devel/php52-readline/files/patch-config.m438
1 files changed, 38 insertions, 0 deletions
diff --git a/devel/php52-readline/files/patch-config.m4 b/devel/php52-readline/files/patch-config.m4
new file mode 100644
index 000000000000..b0b2bb521bc7
--- /dev/null
+++ b/devel/php52-readline/files/patch-config.m4
@@ -0,0 +1,38 @@
+--- config.m4.orig 2009-08-04 13:20:49.000000000 +0200
++++ 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