Improve libtool version parsing (#22122)

This commit is contained in:
Behdad Esfahbod 2009-07-21 15:39:58 -04:00
parent 16e55c7c85
commit 86dd857447
1 changed files with 1 additions and 1 deletions

View File

@ -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