mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Autotools: Check Apache version with apxs and HTTPD_VERSION variable (#15476)
The apxs -q HTTPD_VERSION variable is available since Apache 2.4.17. This change obsoletes the PHP_AP_EXTRACT_VERSION macro and checks the version in the config.m4 file directly. Version is checked against the dotted format instead of the version number.
This commit is contained in:
parent
edcd6cc564
commit
b97a60c9a3
3 changed files with 17 additions and 4 deletions
|
@ -2030,7 +2030,8 @@ dnl PHP_AP_EXTRACT_VERSION(/path/httpd)
|
|||
dnl
|
||||
dnl This macro is used to get a comparable version for Apache.
|
||||
dnl
|
||||
AC_DEFUN([PHP_AP_EXTRACT_VERSION],[
|
||||
AC_DEFUN([PHP_AP_EXTRACT_VERSION], [m4_warn([obsolete],
|
||||
[The macro 'PHP_AP_EXTRACT_VERSION' is obsolete. Use 'apxs -q HTTPD_VERSION'])
|
||||
AS_IF([test -x "$1"], [
|
||||
ac_output=$($1 -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//')
|
||||
ac_IFS=$IFS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue