summaryrefslogtreecommitdiff
path: root/sapi/apache
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-04-12 22:59:07 +0000
committerfoobar <sniper@php.net>2002-04-12 22:59:07 +0000
commitf81166f34e104753121bc65a6448727692a70f6c (patch)
treeb6a89701cab6530553d45d3b495e889fc7d477a5 /sapi/apache
parentbf8bb929ac947e1fc2a2b15d057982f9f1501c8a (diff)
downloadphp-git-f81166f34e104753121bc65a6448727692a70f6c.tar.gz
- Added checks to prevent building the DSO with wrong configure option.
Diffstat (limited to 'sapi/apache')
-rw-r--r--sapi/apache/config.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/sapi/apache/config.m4 b/sapi/apache/config.m4
index 57f1236520..cd5dbebb45 100644
--- a/sapi/apache/config.m4
+++ b/sapi/apache/config.m4
@@ -55,6 +55,12 @@ AC_ARG_WITH(apxs,
PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php4.c php_apache.c)
;;
esac
+
+ # Test that we're trying to configure with apache 1.x
+ if test -f "$APXS_INCLUDEDIR/ap_mpm.h"; then
+ AC_MSG_ERROR([Use --with-apxs2 with Apache 2.x!])
+ fi
+
PHP_ADD_INCLUDE($APXS_INCLUDEDIR)
# Test whether apxs support -S option