Skip to content

Commit 1962bc6

Browse files
committed
Link readline libraries
1 parent 5038e7a commit 1962bc6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sapi/phpdbg/config.m4

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ if test "$PHP_PHPDBG" != "no"; then
3030
AS_CASE([$with_readline],
3131
[shared,*|shared],[AC_MSG_RESULT([disabled (depends on static ext/readline)])],[
3232
AC_MSG_RESULT([yes, readline])
33-
PHP_PHPDBG_CFLAGS="$PHP_PHPDBG_CFLAGS -DHAVE_PHPDBG_READLINE"
33+
AC_DEFINE(HAVE_PHPDBG_READLINE, 1, [ ])
34+
PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS"
3435
])
3536
elif test -n "$with_libedit" && test "$with_libedit" != "no"; then
3637
AS_CASE([$with_libedit],
3738
[shared,*|shared],[AC_MSG_RESULT([disabled (depends on static ext/readline)])],[
3839
AC_MSG_RESULT([yes, libedit])
39-
PHP_PHPDBG_CFLAGS="$PHP_PHPDBG_CFLAGS -DHAVE_PHPDBG_READLINE"
40+
AC_DEFINE(HAVE_PHPDBG_READLINE, 1, [ ])
41+
# TODO: link editline from ext/readline.
42+
PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS"
4043
])
4144
else
4245
AC_MSG_RESULT([disabled (depends on static ext/readline)])

0 commit comments

Comments
 (0)