diff options
| author | Cliff Woolley <jwoolley@php.net> | 2002-05-17 08:07:14 +0000 |
|---|---|---|
| committer | Cliff Woolley <jwoolley@php.net> | 2002-05-17 08:07:14 +0000 |
| commit | 8283979afc0ebfa61d1adbbe5dd56144c3961009 (patch) | |
| tree | f1b32a5b351e1d47734353e88bdd22540785450b /sapi/apache | |
| parent | 34d471d22e1bd1ae957c40280303ee65d6c4ce0e (diff) | |
| download | php-git-8283979afc0ebfa61d1adbbe5dd56144c3961009.tar.gz | |
Allow the version checks for --with-apxs= and --with-apxs2= to work
with development version of Apache, whose version strings end in "-dev",
eg "Apache/2.0.37-dev".
PR: 17233
Submitted by: Dale Ghent <daleg@elemental.org>
Diffstat (limited to 'sapi/apache')
| -rw-r--r-- | sapi/apache/config.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache/config.m4 b/sapi/apache/config.m4 index cb56d9c24e..f0d1fae255 100644 --- a/sapi/apache/config.m4 +++ b/sapi/apache/config.m4 @@ -36,7 +36,7 @@ AC_ARG_WITH(apxs, APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` # 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;}'` + APACHE_VERSION=`$APXS_HTTPD -v | head -1 | cut -f3 -d' ' | cut -f2 -d'/' | cut -f1 -d'-' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` if test "$APACHE_VERSION" -ge 2000000; then AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2]) fi |
