From 240cdb743e5b78c748f6c02bcf09e2897b27cf5e Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 13 Oct 2002 11:28:06 +0000 Subject: [PATCH] Use if block rather than an or expression --- sapi/thttpd/config.m4 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sapi/thttpd/config.m4 b/sapi/thttpd/config.m4 index cb3764152ba..2cea7c0677d 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="\