summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2003-01-13 10:27:50 +0000
committerSascha Schumann <sas@php.net>2003-01-13 10:27:50 +0000
commit726eb90bd5da4534af0dac085718732e93b3f2ca (patch)
treef912986b2c87a18f7aa1caf54c8047995ef6cf6c
parentab71e2cbaa97c50e12a855d5033652768f184be3 (diff)
downloadphp-git-726eb90bd5da4534af0dac085718732e93b3f2ca.tar.gz
which is not portable. use our bundled shtool instead.
-rwxr-xr-xbuild/buildcheck.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/buildcheck.sh b/build/buildcheck.sh
index 88d361c7ec..e1344da347 100755
--- a/build/buildcheck.sh
+++ b/build/buildcheck.sh
@@ -16,7 +16,7 @@
# | Sascha Schumann <sascha@schumann.cx> |
# +----------------------------------------------------------------------+
#
-# $Id: buildcheck.sh,v 1.21 2002-10-30 11:42:22 sas Exp $
+# $Id: buildcheck.sh,v 1.22 2003-01-13 10:27:50 sas Exp $
#
echo "buildconf: checking installation..."
@@ -72,8 +72,8 @@ fi
# libtool 1.4 or newer
# Prefer glibtool over libtool for Mac OS X compatibility
-libtool=`which glibtool 2> /dev/null`
-if test ! -f "$libtool"; then libtool=`which libtool`; fi
+libtool=`./build/shtool path glibtool 2> /dev/null`
+if test ! -f "$libtool"; then libtool=`./build/shtool path libtool`; fi
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."
@@ -94,7 +94,7 @@ echo " to build PHP from CVS."
exit 1
fi
-am_prefix=`which automake | sed -e 's#/[^/]*/[^/]*$##'`
+am_prefix=`./build/shtool path automake | sed -e 's#/[^/]*/[^/]*$##'`
lt_prefix=`echo $libtool | sed -e 's#/[^/]*/[^/]*$##'`
if test "$am_prefix" != "$lt_prefix"; then
echo "WARNING: automake and libtool are installed in different"