From 783a4a7d74391f86144d129c9baf6e9617a2c42e Mon Sep 17 00:00:00 2001 From: foobar Date: Sun, 14 Apr 2002 03:50:40 +0000 Subject: [PATCH] Make this work as it was supposed to work. --- sapi/cli/config.m4 | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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 -- 2.50.1