summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-01-08 22:53:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-01-08 22:53:37 +0000
commit0090099565f330de60cf2c1ffb6edd34127a280b (patch)
tree2753691d1a5ad2d42f011988421b82c94a4fe362 /buildconf
parent2ed23cb50d85029b22c07ccb47e4b010f0fdd34a (diff)
downloadgnurl-0090099565f330de60cf2c1ffb6edd34127a280b.tar.gz
gnurl-0090099565f330de60cf2c1ffb6edd34127a280b.tar.bz2
gnurl-0090099565f330de60cf2c1ffb6edd34127a280b.zip
Only care about the first line of libtool --version as otherwise this script
get fooled by libtool 2, and at least libtool 1.5.2x do output the interesting version string in the first line.
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildconf b/buildconf
index 765e8190f..416cd2fa7 100755
--- a/buildconf
+++ b/buildconf
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -191,7 +191,7 @@ else
libtoolize=`findtool $LIBTOOLIZE`
fi
-lt_pversion=`$libtool --version 2>/dev/null|head -n 2|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
+lt_pversion=`$libtool --version 2>/dev/null|head -n 1|sed -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"