# Test that we're trying to configure with apache 1.x
APACHE_VERSION=`$APXS_HTTPD -v | head -1 | cut -f3 -d' ' | cut -f2 -d'/' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test "$APACHE_VERSION" -ge 2000000; then
- AC_MSG_ERROR([Use --with-apxs2 with Apache 2.x!])
+ AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2])
fi
for flag in $APXS_CFLAGS; do
# Test that we're trying to configure with apache 2.x
APACHE_VERSION=`$APXS_HTTPD -v | head -1 | cut -f3 -d' ' | cut -f2 -d'/' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test "$APACHE_VERSION" -le 2000000; then
- AC_MSG_ERROR([Use --with-apxs with Apache 1.3.x!])
+ AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)])
elif test "$APACHE_VERSION" -lt 2000035; then
- AC_MSG_ERROR([Apache version >= 2.0.35 required.])
+ AC_MSG_ERROR([Please note that Apache version >= 2.0.35 is required.])
fi
case $host_alias in