summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-01-24 12:55:08 +0000
committerSascha Schumann <sas@php.net>2002-01-24 12:55:08 +0000
commitc0b8ac114280275d002b931a4284e95c5b3438d0 (patch)
tree80ec7e151786bd2241215f3e009d73b7ea59592d /configure.in
parent8bbe180991299bb70a615165e71bb78bbf3ae155 (diff)
downloadphp-git-c0b8ac114280275d002b931a4284e95c5b3438d0.tar.gz
Don't build CLI, if an extension requests that.
In this case, the ircg extension refers to thttpd-specific symbols which causes the build of the cli sapi module to fail.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 88dfe5df0f..6a930a7bb3 100644
--- a/configure.in
+++ b/configure.in
@@ -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)