]> granicus.if.org Git - php/commitdiff
Don't build CLI, if an extension requests that.
authorSascha Schumann <sas@php.net>
Thu, 24 Jan 2002 12:55:08 +0000 (12:55 +0000)
committerSascha Schumann <sas@php.net>
Thu, 24 Jan 2002 12:55:08 +0000 (12:55 +0000)
In this case, the ircg extension refers to thttpd-specific symbols
which causes the build of the cli sapi module to fail.

Makefile.in
acinclude.m4
configure.in

index 749a522c3400c5b544c08df63f164f246bcbc884..b15f0f1440de52a4a5e442c1c85bb5860dc11a08 100644 (file)
@@ -1,6 +1,6 @@
 
 ZEND_DIR = $(srcdir)/Zend
-SUBDIRS = Zend main ext sapi $(TSRM_DIR) $(REGEX_DIR) sapi/cli . $(PEAR_DIR)
+SUBDIRS = Zend main ext sapi $(TSRM_DIR) $(REGEX_DIR) $(CLI_DIR) . $(PEAR_DIR)
 
 LTLIBRARY_NAME = libphp4.la
 LTLIBRARY_SOURCES = stub.c
index fedcddf92af35fbdba43f77751c535e7b8c195c8..40575afddc7c3769218332a95d906a87540cdaf5 100644 (file)
@@ -4,6 +4,13 @@ dnl This file contains local autoconf functions.
 
 sinclude(dynlib.m4)
 
+dnl
+dnl Disable building CLI
+dnl
+AC_DEFUN(PHP_DISABLE_CLI,[
+  disable_cli=1
+])
+       
 dnl
 dnl Separator into the configure --help display.
 dnl 
index 88dfe5df0f529359d0bb5dedbae6b52ef02cee3b..6a930a7bb3efbf42126953aa5abb0747b558df2e 100644 (file)
@@ -844,6 +844,13 @@ AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output])
 PHP_OS=`uname`
 AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output])
 
+if test "$disable_cgi" = "1"; then
+  CLI_DIR=
+else
+  CLI_DIR=sapi/cli
+fi
+
+PHP_SUBST(CLI_DIR)
 
 PHP_SUBST(EXT_SUBDIRS)
 PHP_SUBST(EXT_STATIC)