summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-10-06 12:57:12 +0200
committerYang Tse <yangsita@gmail.com>2011-10-06 12:57:12 +0200
commit7afccf7a1ebb211905de6abd415fce416058a126 (patch)
tree0f27198ea9df8b8072c549f0b316d93a3cfd3d16 /buildconf
parent4a57bf6d101fed17c9488f0a8f81c0e082123a80 (diff)
downloadcurl-7afccf7a1ebb211905de6abd415fce416058a126.tar.gz
buildconf: warn about autoconf 2.67 and 2.68 generating bad/unusable scripts
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf14
1 files changed, 12 insertions, 2 deletions
diff --git a/buildconf b/buildconf
index dda2a1d9c..bdd171216 100755
--- a/buildconf
+++ b/buildconf
@@ -89,7 +89,9 @@ if test ! -f configure.ac ||
fi
#--------------------------------------------------------------------------
-# autoconf 2.57 or newer
+# autoconf 2.57 or newer. Unpatched version 2.67 does not generate proper
+# configure script. Unpatched version 2.68 is simply unusable, we should
+# disallow 2.68 usage.
#
need_autoconf="2.57"
ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|head -n 1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
@@ -108,7 +110,15 @@ if test "$1" = "2" -a "$2" -lt "57" || test "$1" -lt "2"; then
exit 1
fi
-echo "buildconf: autoconf version $ac_version (ok)"
+if test "$1" = "2" -a "$2" -eq "67"; then
+ echo "buildconf: autoconf version $ac_version (BAD)"
+ echo " Unpatched version generates broken configure script."
+elif test "$1" = "2" -a "$2" -eq "68"; then
+ echo "buildconf: autoconf version $ac_version (BAD)"
+ echo " Unpatched version generates unusable configure script."
+else
+ echo "buildconf: autoconf version $ac_version (ok)"
+fi
am4te_version=`${AUTOM4TE:-autom4te} --version 2>/dev/null|head -n 1| sed -e 's/autom4te\(.*\)/\1/' -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
if test -z "$am4te_version"; then