summaryrefslogtreecommitdiff
path: root/sapi/thttpd/config.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-10-13 11:28:06 +0000
committerSascha Schumann <sas@php.net>2002-10-13 11:28:06 +0000
commit240cdb743e5b78c748f6c02bcf09e2897b27cf5e (patch)
tree3364942e07c35f26d8794627090bb4803c48601d /sapi/thttpd/config.m4
parentbfc3250187fd70e9b31ab3ddf7e2d4b4d5d18e44 (diff)
downloadphp-git-240cdb743e5b78c748f6c02bcf09e2897b27cf5e.tar.gz
Use if block rather than an or expression
Diffstat (limited to 'sapi/thttpd/config.m4')
-rw-r--r--sapi/thttpd/config.m410
1 files changed, 8 insertions, 2 deletions
diff --git a/sapi/thttpd/config.m4 b/sapi/thttpd/config.m4
index cb3764152b..2cea7c0677 100644
--- a/sapi/thttpd/config.m4
+++ b/sapi/thttpd/config.m4
@@ -4,8 +4,14 @@ dnl
AC_ARG_WITH(thttpd,
[ --with-thttpd=SRCDIR Build PHP as thttpd module],[
- test -d $withval || AC_MSG_RESULT(thttpd directory does not exist ($withval))
- egrep thttpd.2.21b $withval/version.h >/dev/null || AC_MSG_RESULT([This version only supports thttpd-2.21b])
+set -x
+ if ! test -d $withval; then
+ AC_MSG_RESULT(thttpd directory does not exist ($withval))
+ fi
+ if ! egrep thttpd.2.21b $withval/version.h >/dev/null; then
+ AC_MSG_ERROR([This version only supports thttpd-2.21b])
+ fi
+set +x
PHP_EXPAND_PATH($withval, THTTPD)
PHP_TARGET_RDYNAMIC
INSTALL_IT="\