From: Christos Zoulas Date: Sun, 20 Jul 2014 09:46:28 +0000 (-0400) Subject: force the autoconf version instead of just reporting it. X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=3bc2cb4409c7467b7302436f7a0bc4ac86942837;p=am-utils-6.2.git force the autoconf version instead of just reporting it. --- diff --git a/bootstrap b/bootstrap index 3cfc47ed..a370d191 100755 --- a/bootstrap +++ b/bootstrap @@ -5,6 +5,16 @@ # this is not meant to go into the distributions # Erez Zadok +validateversion() { + local v="$(autoreconf --version 2>&1 | head -1)" + case "$v" in + *2.69) ;; + *) echo "am-utils requires autoconf 2.69, you have:" + echo " $v" + exit 1;; + esac +} + # test cwd test -f ../amd/amd.c && cd .. if [ ! -f amd/amd.c ]; then @@ -39,8 +49,7 @@ test -f acinclude.m4 && mv -f acinclude.m4 acinclude.m4.old # generate the rest of the scripts echo "AMU: autoreconf..." -# show version -autoreconf --version 2>&1 | head -1 +validateversion if autoreconf -f -i; then : else