diff options
-rw-r--r-- | ext/readline/config.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/readline/config.m4 b/ext/readline/config.m4 index 818eb27722..2ec104c3d4 100644 --- a/ext/readline/config.m4 +++ b/ext/readline/config.m4 @@ -5,8 +5,10 @@ dnl PHP_ARG_WITH(libedit,for libedit readline replacement, [ --with-libedit[=DIR] Include libedit readline replacement (CLI/CGI only)]) -PHP_ARG_WITH(readline,for readline support, -[ --with-readline[=DIR] Include readline support (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)]) +fi if test "$PHP_READLINE" != "no"; then for i in $PHP_READLINE /usr/local /usr; do |