From: foobar Date: Sun, 14 Apr 2002 03:50:40 +0000 (+0000) Subject: Make this work as it was supposed to work. X-Git-Tag: php-4.2.0RC4~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=783a4a7d74391f86144d129c9baf6e9617a2c42e;p=php Make this work as it was supposed to work. --- diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 index 96d67c3c52..5b0f2b0d94 100644 --- a/sapi/cli/config.m4 +++ b/sapi/cli/config.m4 @@ -5,18 +5,14 @@ dnl AC_MSG_CHECKING(for CLI build) AC_ARG_ENABLE(cli, -[ --disable-cli Disable building CLI version of PHP.], +[ --enable-cli Enable building CLI version of PHP.], [ - if test "$enable_cli" != "no"; then - PHP_SAPI_CLI=yes - else - PHP_SAPI_CLI=no - fi -], -[PHP_SAPI_CLI=yes] -) + PHP_SAPI_CLI=$enableval +],[ + PHP_SAPI_CLI=no +]) -if test "$PHP_SAPI_CLI" = "no"; then +if test "$PHP_SAPI_CLI" != "yes"; then PHP_DISABLE_CLI fi