]> granicus.if.org Git - php/commitdiff
MFH
authorSascha Schumann <sas@php.net>
Tue, 1 Jul 2003 04:25:32 +0000 (04:25 +0000)
committerSascha Schumann <sas@php.net>
Tue, 1 Jul 2003 04:25:32 +0000 (04:25 +0000)
(jason) Prevent lines following the version output from confusing
the version test

build/buildcheck.sh

index f537b1bf2ff629bf99f0244f662f451c6c927787..c0a09593a9637b516598287524926f5604a71adf 100755 (executable)
@@ -16,7 +16,7 @@
 #  |          Sascha Schumann <sascha@schumann.cx>                        |
 #  +----------------------------------------------------------------------+
 #
-# $Id: buildcheck.sh,v 1.21.2.4 2003-06-27 00:19:26 sas Exp $ 
+# $Id: buildcheck.sh,v 1.21.2.5 2003-07-01 04:25:32 sas Exp $ 
 #
 
 echo "buildconf: checking installation..."
@@ -53,7 +53,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|sed -e 's/^[^0-9]*//'`
+lt_pversion=`$libtoolize --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//'`
 if test "$lt_pversion" = ""; then
 echo "buildconf: libtool not found."
 echo "           You need libtool version 1.4.3 or newer installed"