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)