From 6c8c5b89582af9fa8b3347275f72069e1c97d293 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 12 Mar 2007 17:54:14 +0000 Subject: [PATCH] test for at least automake 1.9, as we need at least that git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4571 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- bootstrap.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index c9f9ab1bde..c2161a9b2a 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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