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
-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)
INSTALL_IT="$APXS -i -a -n php4 $SAPI_LIBTOOL"
PHP_BUILD_THREAD_SAFE