summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2010-06-14 18:53:02 +0000
committerStefan Fritsch <sf@apache.org>2010-06-14 18:53:02 +0000
commitca23fa130c766ce0febf610b0e02ffbcab6bdb82 (patch)
treefe0eeea3e488c918c36cb6149c0cf1b93413f149 /buildconf
parented06b71981674c609e3520e0f475d7358067fb12 (diff)
downloadhttpd-ca23fa130c766ce0febf610b0e02ffbcab6bdb82.tar.gz
prevent an error message if an old autoconf without AC_PROG_CC_C99 is used but
print a meaningful warning instead git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@954588 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf12
1 files changed, 12 insertions, 0 deletions
diff --git a/buildconf b/buildconf
index ad43fe53c9..772610343a 100755
--- a/buildconf
+++ b/buildconf
@@ -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]