THRIFT-858. build:  Have bootstrap.sh check for a suitable autoconf version before running

Patch: Michael Lum

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987186 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bootstrap.sh b/bootstrap.sh
index 74ecdb8..0b2b1bc 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -19,6 +19,13 @@
 # under the License.
 #
 
+have_ac_version=`autoconf --version | head -1 | cut -d' ' -f4`
+desired_ac_version=2.65
+if [ `expr $have_ac_version \>= $desired_ac_version` -eq "0" ]; then
+  echo "Must have autoconf $desired_ac_version of higher."
+  exit 1
+fi
+
 ./cleanup.sh
 
 autoscan || exit 1