Safer libtoolize version check

This commit is contained in:
Rasmus Lerdorf 2004-12-30 15:53:57 +00:00
parent 4cf9d27072
commit b1db6ed28d

View File

@ -16,7 +16,7 @@
# | Sascha Schumann <sascha@schumann.cx> |
# +----------------------------------------------------------------------+
#
# $Id: buildcheck.sh,v 1.31 2004-12-20 20:23:57 sniper Exp $
# $Id: buildcheck.sh,v 1.32 2004-12-30 15:53:57 rasmus Exp $
#
echo "buildconf: checking installation..."
@ -54,7 +54,7 @@ fi
# libtoolize 1.4.3 or newer
# Prefer glibtoolize over libtoolize for Mac OS X compatibility
libtoolize=`./build/shtool path glibtoolize libtoolize 2> /dev/null`
lt_pversion=`$libtoolize --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//'`
lt_pversion=`$libtoolize --version 2>/dev/null|head -n 1|awk -F' ' '{print $NF}'`
if test "$lt_pversion" = ""; then
echo "buildconf: libtool not found."
echo " You need libtool version 1.4.3 or newer installed"