]> granicus.if.org Git - curl/commitdiff
Adjusted libtool version parsing due to libtool --version now also
authorYang Tse <yangsita@gmail.com>
Sat, 6 Jun 2009 13:22:15 +0000 (13:22 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 6 Jun 2009 13:22:15 +0000 (13:22 +0000)
reporting package name in parentheses which confused this script.

buildconf

index d19717863c8b859ccbfc2aa52d51fdde93e16ad8..c05ee99fcdf183c277bf3424b593b8e581e90bdd 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -191,7 +191,7 @@ else
   libtoolize=`findtool $LIBTOOLIZE`
 fi
 
-lt_pversion=`$libtool --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
+lt_pversion=`$libtool --version 2>/dev/null|head -n 1|sed -e 's/(.*)//' -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
 if test -z "$lt_pversion"; then
   echo "buildconf: libtool not found."
   echo "            You need libtool version $LIBTOOL_WANTED_VERSION or newer installed"