summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-15 07:47:13 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-15 07:47:13 +0000
commitbea9152aa811d85301b7a8ed5edb44593aadaf61 (patch)
treeea5303f59eee6939440ac0443d9cff7b338c64a0 /buildconf
parentf788f988ea728f7a474a22f94d50ba2a891940cd (diff)
downloadcurl-bea9152aa811d85301b7a8ed5edb44593aadaf61.tar.gz
Check for a GNU version of m4, since autoconf won't run nicely without one.
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf14
1 files changed, 14 insertions, 0 deletions
diff --git a/buildconf b/buildconf
index ee2721885..29abf2704 100755
--- a/buildconf
+++ b/buildconf
@@ -138,6 +138,20 @@ fi
echo "buildconf: libtool version $lt_version (ok)"
+#--------------------------------------------------------------------------
+# m4 check
+#
+m4=`${M4:-m4} --version 2>/dev/null|head -1`;
+m4_version=`echo $m4 | sed -e 's/^.* \([0-9]\)/\1/' -e 's/[a-z]* *$//'`
+
+if { echo $m4 | grep "GNU" >/dev/null 2>&1; } then
+ echo "buildconf: GNU m4 version $m4_version (ok)"
+else
+ echo "buildconf: m4 version $m4 found. You need a GNU m4 installed!"
+ exit 1
+fi
+
+
# ------------------------------------------------------------
# run the correct scripts now