From 7c2811e1ab1eea7f73d1ddf8c257a9493a91f49b Mon Sep 17 00:00:00 2001 From: foobar Date: Sun, 14 Apr 2002 03:57:59 +0000 Subject: [PATCH] Make it possible to actually disable the CLI.. --- sapi/cli/config.m4 | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 index 724c759de7..4b5086c17c 100644 --- a/sapi/cli/config.m4 +++ b/sapi/cli/config.m4 @@ -7,14 +7,10 @@ AC_MSG_CHECKING(for CLI build) AC_ARG_ENABLE(cli, [ --disable-cli Disable 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=yes +]) if test "$PHP_SAPI_CLI" != "no"; then INSTALL_CLI="\$(INSTALL) -m 0755 sapi/cli/php \$(INSTALL_ROOT)\$(bindir)/php" -- 2.50.1