Skip to content

Commit 894e78b

Browse files
committed
Merge branch 'PHP-7.3'
2 parents 42cd5db + b35a20e commit 894e78b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

ext/readline/config.m4

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,20 @@ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
5858
-L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
5959
])
6060

61-
PHP_CHECK_LIBRARY(edit, rl_on_new_line,
61+
PHP_CHECK_LIBRARY(readline, rl_on_new_line,
6262
[
6363
AC_DEFINE(HAVE_RL_ON_NEW_LINE, 1, [ ])
6464
],[],[
6565
-L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
6666
])
6767

68+
PHP_CHECK_LIBRARY(readline, rl_completion_matches,
69+
[
70+
AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
71+
],[],[
72+
-L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
73+
])
74+
6875
AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])
6976

7077
elif test "$PHP_LIBEDIT" != "no"; then
@@ -112,11 +119,17 @@ elif test "$PHP_LIBEDIT" != "no"; then
112119
-L$READLINE_DIR/$PHP_LIBDIR
113120
])
114121

122+
PHP_CHECK_LIBRARY(edit, rl_completion_matches,
123+
[
124+
AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
125+
],[],[
126+
-L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
127+
])
128+
115129
AC_DEFINE(HAVE_LIBEDIT, 1, [ ])
116130
fi
117131

118132
if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
119-
AC_CHECK_FUNCS([rl_completion_matches])
120133
PHP_NEW_EXTENSION(readline, readline.c readline_cli.c, $ext_shared, cli)
121134
PHP_SUBST(READLINE_SHARED_LIBADD)
122135
fi

0 commit comments

Comments
 (0)