Skip to content

Commit 49cc2a6

Browse files
committed
Remove some more Apache 1 left overs
- warning in configure.ac is relevant for the sapi/apache - errors output redirected to /dev/null when checking Apache version
1 parent 7514b5d commit 49cc2a6

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

build/php.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ AC_DEFUN([PHP_INSTALL_HEADERS],[
21042104
dnl
21052105
dnl PHP_AP_EXTRACT_VERSION(/path/httpd)
21062106
dnl
2107-
dnl This macro is used to get a comparable version for apache1/2.
2107+
dnl This macro is used to get a comparable version for Apache.
21082108
dnl
21092109
AC_DEFUN([PHP_AP_EXTRACT_VERSION],[
21102110
ac_output=`$1 -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`

configure.ac

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,14 +1636,6 @@ if test -n "\$REDO_ALL"; then
16361636
cli_extensions="$EXT_CLI_STATIC"
16371637
sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c
16381638
1639-
if test -n "$PHP_APXS_BROKEN"; then
1640-
echo "+--------------------------------------------------------------------+"
1641-
echo "| WARNING: Your $APXS script is most likely broken."
1642-
echo "| |"
1643-
echo "| Please go read http://www.php.net/faq.build#faq.build.apxs |"
1644-
echo "| and make the changes described there and try again. |"
1645-
fi
1646-
16471639
if test -n "$DEBUG_LOG"; then
16481640
rm -f config.cache
16491641
cat <<X

sapi/apache2handler/config.m4

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
PHP_ARG_WITH([apxs2],,
22
[AS_HELP_STRING([[--with-apxs2[=FILE]]],
3-
[Build shared Apache 2.0 Handler module. FILE is the optional pathname to
3+
[Build shared Apache 2 handler module. FILE is the optional pathname to
44
the Apache apxs tool [apxs]])],
55
[no],
66
[no])
77

8-
AC_MSG_CHECKING([for Apache 2.0 handler-module support via DSO through APXS])
8+
AC_MSG_CHECKING([for Apache 2 handler module support via DSO through APXS])
99

1010
if test "$PHP_APXS2" != "no"; then
1111
if test "$PHP_APXS2" = "yes"; then
@@ -59,9 +59,7 @@ if test "$PHP_APXS2" != "no"; then
5959

6060
dnl Test that we're trying to configure with apache 2.x
6161
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
62-
if test "$APACHE_VERSION" -le 2000000; then
63-
AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)])
64-
elif test "$APACHE_VERSION" -lt 2000044; then
62+
if test "$APACHE_VERSION" -lt 2000044; then
6563
AC_MSG_ERROR([Please note that Apache version >= 2.0.44 is required])
6664
fi
6765

@@ -113,7 +111,7 @@ if test "$PHP_APXS2" != "no"; then
113111
PHP_BUILD_THREAD_SAFE
114112
fi
115113
else
116-
APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
114+
APACHE_THREADED_MPM=`$APXS_HTTPD -V 2>/dev/null | grep 'threaded:.*yes'`
117115
if test -n "$APACHE_THREADED_MPM"; then
118116
PHP_BUILD_THREAD_SAFE
119117
fi

0 commit comments

Comments
 (0)