From: Edin Kadribasic Date: Thu, 24 Jan 2002 17:55:13 +0000 (+0000) Subject: Added --disable-cli option. X-Git-Tag: PRE_ISSET_PATCH~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd7ff95fde48d2b941d00ea4b461131c83240668;p=php Added --disable-cli option. --- diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4 index a14dabc25e..83aef7b2bb 100644 --- a/sapi/cli/config.m4 +++ b/sapi/cli/config.m4 @@ -2,9 +2,24 @@ dnl dnl $Id$ dnl -dnl Just for fun (not actually need) AC_MSG_CHECKING(for CLI build) -AC_MSG_RESULT(yes) -INSTALL_IT="$INSTALL_IT; \$(INSTALL) -m 0755 sapi/cli/php \$(INSTALL_ROOT)\$(bindir)/" +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] +) +if test "$PHP_SAPI_CLI" != "no"; then + INSTALL_IT="$INSTALL_IT; \$(INSTALL) -m 0755 sapi/cli/php \$(INSTALL_ROOT)\$(bindir)/php" +else + PHP_DISABLE_CLI +fi + +AC_MSG_RESULT($PHP_SAPI_CLI)