You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2010/06/14 20:53:02 UTC

svn commit: r954588 - in /httpd/httpd/trunk: buildconf configure.in

Author: sf
Date: Mon Jun 14 18:53:02 2010
New Revision: 954588

URL: http://svn.apache.org/viewvc?rev=954588&view=rev
Log:
prevent an error message if an old autoconf without AC_PROG_CC_C99 is used but
print a meaningful warning instead

Modified:
    httpd/httpd/trunk/buildconf
    httpd/httpd/trunk/configure.in

Modified: httpd/httpd/trunk/buildconf
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/buildconf?rev=954588&r1=954587&r2=954588&view=diff
==============================================================================
--- httpd/httpd/trunk/buildconf (original)
+++ httpd/httpd/trunk/buildconf Mon Jun 14 18:53:02 2010
@@ -19,6 +19,18 @@
 # buildconf: Build the support scripts needed to compile from a
 #            checked-out version of the source code.
 
+# version check for AC_PROG_CC_C99
+ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
+case "$ac_version" in
+# versions older than 2.50 are denied by AC_PREREQ
+2.5*)
+    echo WARNING: You are using an outdated version of autoconf.
+    echo WARNING: This may lead to less than optimal performance of httpd.
+    echo WARNING: You should use autoconf 2.60 or newer.
+    sleep 1
+    ;;
+esac
+
 # set a couple of defaults for where we should be looking for our support libs.
 # can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
 

Modified: httpd/httpd/trunk/configure.in
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/configure.in?rev=954588&r1=954587&r2=954588&view=diff
==============================================================================
--- httpd/httpd/trunk/configure.in (original)
+++ httpd/httpd/trunk/configure.in Mon Jun 14 18:53:02 2010
@@ -171,7 +171,7 @@ AC_PROG_CC
 AC_PROG_CPP
 
 dnl Try to get c99 support for variadic macros
-AC_PROG_CC_C99
+ifdef([AC_PROG_CC_C99], [AC_PROG_CC_C99])
 
 if test "x${cache_file}" = "x/dev/null"; then
   # Likewise, ensure that CC and CPP are passed through to the pcre