]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
test for at least automake 1.9, as we need at least that
authorMichael Jerris <mike@jerris.com>
Mon, 12 Mar 2007 17:54:14 +0000 (17:54 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 12 Mar 2007 17:54:14 +0000 (17:54 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4571 d0543943-73ff-0310-b7d9-9358b9ac24b2

bootstrap.sh

index c9f9ab1bdeb3b26ce9bfe7aac8bfda418f4d6e42..c2161a9b2a8ffe9f06f627b2c525d7c59ea2d2b7 100755 (executable)
@@ -25,6 +25,24 @@ else
 echo "bootstrap: autoconf version $ac_version (ok)"
 fi
 
+# automake 1.9 or newer
+am_version=`${AUTOMAKE:-automake} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
+if test -z "$am_version"; then
+echo "bootstrap: automake not found."
+echo "           You need automake version 1.9 or newer installed"
+echo "           to build FreeSWITCH from SVN."
+exit 1
+fi
+IFS=.; set $am_version; IFS=' '
+if test "$1" = "1" -a "$2" -lt "9"; then
+echo "bootstrap: automake version $am_version found."
+echo "           You need automake version 1.9 or newer installed"
+echo "           to build FreeSWITCH from SVN."
+exit 1
+else
+echo "bootstrap: automake version $am_version (ok)"
+fi
+
 # Sample libtool --version outputs:
 # ltmain.sh (GNU libtool) 1.3.3 (1.385.2.181 1999/07/02 15:49:11)
 # ltmain.sh (GNU libtool 1.1361 2004/01/02 23:10:52) 1.5a