--- x/configure.ac~ 2006-11-19 13:52:30.000000000 +0000 +++ x/configure.ac 2007-09-17 14:38:43.000000000 +0000 @@ -60,11 +60,13 @@ if test -n "$APXS"; then AC_SUBST(APXS) + if test -z "$APACHE_VERSION"; then APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \ | grep "Server version" \ | cut -f2 -d":" \ | cut -f2 -d"/" \ | cut -f1 -d" "` + fi major_version=`echo $APACHE_VERSION|cut -f1,2 -d.` if test "$major_version" = "2.0" -o "$major_version" = "2.2"; then APACHE_VERSION_2=true