1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

I fell over a new libtool that starts with a newline so we need to fetch

the two first lines to get the version string. The good news is that older
libtools have an empty line after the first so I think this works fine all
over...
This commit is contained in:
Daniel Stenberg 2006-09-04 08:53:28 +00:00
parent c41dfc2501
commit 1e9f5845ab

View File

@ -140,7 +140,7 @@ else
libtoolize=`findtool $LIBTOOLIZE` libtoolize=`findtool $LIBTOOLIZE`
fi 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 2|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
if test -z "$lt_pversion"; then if test -z "$lt_pversion"; then
echo "buildconf: libtool not found." echo "buildconf: libtool not found."
echo " You need libtool version $LIBTOOL_WANTED_VERSION or newer installed" echo " You need libtool version $LIBTOOL_WANTED_VERSION or newer installed"