(Prevent users from trying to build Apache 1.x module with Apache 2.x and
vice-versa)
esac
done
PHP_ADD_INCLUDE($APXS_INCLUDEDIR)
+
+ # 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_SAPI=apache
# Test whether apxs support -S option
-D*) CPPFLAGS="$CPPFLAGS $flag";;
esac
done
+
+ # Test that we're trying to configure with apache 2.x
+ if test ! -f "$APXS_INCLUDEDIR/ap_mpm.h"; then
+ AC_MSG_ERROR([Use --with-apxs with Apache 1.3.x!])
+ fi
+
PHP_ADD_INCLUDE($APXS_INCLUDEDIR)
PHP_SAPI=apache2filter
INSTALL_IT="$APXS -i -a -n php4 $SAPI_LIBTOOL"