From: Behdad Esfahbod Date: Tue, 21 Jul 2009 19:39:58 +0000 (-0400) Subject: Improve libtool version parsing (#22122) X-Git-Tag: 2.7.1~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=86dd857447f69cf89fd47259055b150f62519c17;p=fontconfig.git Improve libtool version parsing (#22122) --- diff --git a/autogen.sh b/autogen.sh index c3d11ca..820c457 100755 --- a/autogen.sh +++ b/autogen.sh @@ -29,7 +29,7 @@ DIE=0 have_libtool=false if $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then - libtool_version=`$LIBTOOLIZE --version | sed 's/^[^0-9]*\([0-9].[0-9.]*\).*/\1/'` + libtool_version=`$LIBTOOLIZE --version | sed 's/^.* \([0-9][.][0-9.]*\)[^ ]*$/\1/'` case $libtool_version in 1.4*|1.5*|1.6*|1.7*|2*) have_libtool=true