summaryrefslogtreecommitdiff
path: root/sapi/phttpd
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2007-06-03 20:27:16 +0000
committerfoobar <sniper@php.net>2007-06-03 20:27:16 +0000
commit7bd41e0715c46bf63aae27a23d3fe3e7439a899a (patch)
tree733f9dbf1611de156c6b24a9bef15dff19e95fab /sapi/phttpd
parentfd2e66bd05022b023379de86577e3498fded0e96 (diff)
downloadphp-git-7bd41e0715c46bf63aae27a23d3fe3e7439a899a.tar.gz
MFH:- Fixed bug #41576 (misbehaviour when using --without-apxs)
Diffstat (limited to 'sapi/phttpd')
-rw-r--r--sapi/phttpd/config.m428
1 files changed, 16 insertions, 12 deletions
diff --git a/sapi/phttpd/config.m4 b/sapi/phttpd/config.m4
index 75c6d66891..92da441f56 100644
--- a/sapi/phttpd/config.m4
+++ b/sapi/phttpd/config.m4
@@ -5,18 +5,22 @@ dnl
RESULT=no
AC_MSG_CHECKING(for PHTTPD support)
AC_ARG_WITH(phttpd,
-[ --with-phttpd=DIR Build PHP as phttpd module],
-[
- if test ! -d $withval ; then
- AC_MSG_ERROR(You did not specify a directory)
- fi
- PHP_BUILD_THREAD_SAFE
- PHTTPD_DIR=$withval
- PHP_ADD_INCLUDE($PHTTPD_DIR/include)
- AC_DEFINE(HAVE_PHTTPD,1,[Whether you have phttpd])
- PHP_SELECT_SAPI(phttpd, shared, phttpd.c)
- INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHTTPD_DIR/modules/"
- RESULT=yes
+[ --with-phttpd=DIR Build PHP as phttpd module],[
+ PHP_PHTTPD=$withval
+], [
+ PHP_PHTTPD=no
+])
+
+if test "$PHP_PHTTPD" != "no"; then
+ if test ! -d $PHP_PHTTPD ; then
+ AC_MSG_ERROR(You did not specify a directory)
+ fi
+ PHP_BUILD_THREAD_SAFE
+ PHP_ADD_INCLUDE($PHP_PHTTPD/include)
+ AC_DEFINE(HAVE_PHTTPD,1,[Whether you have phttpd])
+ PHP_SELECT_SAPI(phttpd, shared, phttpd.c)
+ INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_PHTTPD/modules/"
+ RESULT=yes
])
AC_MSG_RESULT($RESULT)