diff options
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | configure.ac | 6 |
2 files changed, 10 insertions, 2 deletions
@@ -4436,6 +4436,10 @@ RCYNIC_DIR='${DESTDIR}'"${rcynic_base_dir}" # # If we can't figure out the version number, we assume 2.2 and hope # for the best; at some point we may need to do better than this. +# +# apachectl sometimes whines about ulimits, so we discard its stderr. +# If you're reading this because this test is misbehaving, well, +# try not discarding stderr. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Apache version" >&5 $as_echo_n "checking Apache version... " >&6; } @@ -4446,7 +4450,7 @@ then do if test -x $apachectl then - APACHE_VERSION=`$apachectl -v | sed -n 's=^Server version: Apache/\([0-9]*\)\.\([0-9]*\)\..*$=\1\2=p'` + APACHE_VERSION=`$apachectl -v 2>/dev/null | sed -n 's=^Server version: Apache/\([0-9]*\)\.\([0-9]*\)\..*$=\1\2=p'` break fi done diff --git a/configure.ac b/configure.ac index 2b0b5e98..308ad54a 100644 --- a/configure.ac +++ b/configure.ac @@ -263,6 +263,10 @@ RCYNIC_DIR='${DESTDIR}'"${rcynic_base_dir}" # # If we can't figure out the version number, we assume 2.2 and hope # for the best; at some point we may need to do better than this. +# +# apachectl sometimes whines about ulimits, so we discard its stderr. +# If you're reading this because this test is misbehaving, well, +# try not discarding stderr. AC_MSG_CHECKING([Apache version]) @@ -272,7 +276,7 @@ then do if test -x $apachectl then - APACHE_VERSION=`$apachectl -v | sed -n 's=^Server version: Apache/\([[0-9]]*\)\.\([[0-9]]*\)\..*$=\1\2=p'` + APACHE_VERSION=`$apachectl -v 2>/dev/null | sed -n 's=^Server version: Apache/\([[0-9]]*\)\.\([[0-9]]*\)\..*$=\1\2=p'` break fi done |