Latest libtools output a multiline version info. Deal with that

This commit is contained in:
Marko Karppinen 2002-01-24 23:31:45 +00:00
parent 449b53e34a
commit 99d36a7557

View File

@ -16,7 +16,7 @@
# | Sascha Schumann <sascha@schumann.cx> |
# +----------------------------------------------------------------------+
#
# $Id: buildcheck.sh,v 1.13 2001-12-11 15:28:53 sebastian Exp $
# $Id: buildcheck.sh,v 1.14 2002-01-24 23:31:45 markonen Exp $
#
echo "buildconf: checking installation..."
@ -61,7 +61,7 @@ fi
# libtool 1.4 or newer
libtool=`which libtool`
if test ! -f "$libtool"; then libtool=`which glibtool`; fi
lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/^[^0-9]*//' -e 's/[- ].*//'`
lt_pversion=`$libtool --version 2>/dev/null|sed -n -e 's/^[^0-9]*//' -e 1's/[- ].*//p'`
if test "$lt_pversion" = ""; then
echo "buildconf: libtool not found."
echo " You need libtool version 1.4 or newer installed"