From: Anthony Minessale Date: Mon, 14 May 2007 13:54:52 +0000 (+0000) Subject: deal with extra _x in autoconf version X-Git-Tag: v1.0-beta1~318 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ddb459c03bea1c4eda8e07541d9c3064ae5f282;p=thirdparty%2Ffreeswitch.git deal with extra _x in autoconf version git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5170 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/bootstrap.sh b/bootstrap.sh index 556b245e5f..1940390311 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -33,6 +33,7 @@ echo "bootstrap: autoconf version $ac_version (ok)" fi # automake 1.7 or newer + am_version=`${AUTOMAKE:-automake} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;s/[- ].*//g;q'` if test -z "$am_version"; then echo "bootstrap: automake not found." @@ -40,6 +41,8 @@ echo " You need automake version 1.7 or newer installed" echo " to build FreeSWITCH from SVN." exit 1 fi +IFS=_; set $am_version; IFS=' ' +am_version=$1 IFS=.; set $am_version; IFS=' ' if test "$1" = "1" -a "$2" -lt "7"; then echo "bootstrap: automake version $am_version found."