summaryrefslogtreecommitdiff
path: root/build/buildcheck.sh
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2004-12-20 20:23:57 +0000
committerfoobar <sniper@php.net>2004-12-20 20:23:57 +0000
commitbc3f6c94d4527e35138f352928a02ad423d6374e (patch)
tree2cd7add0a1bf1a8f4ee829d4939ce5b7e67db274 /build/buildcheck.sh
parentfdaa130f3a516954c37804ac5362445485deec84 (diff)
downloadphp-git-bc3f6c94d4527e35138f352928a02ad423d6374e.tar.gz
Fix buildconf when multiple autoconf versions installed
Diffstat (limited to 'build/buildcheck.sh')
-rwxr-xr-xbuild/buildcheck.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build/buildcheck.sh b/build/buildcheck.sh
index aed6126b5e..555cb35204 100755
--- a/build/buildcheck.sh
+++ b/build/buildcheck.sh
@@ -16,7 +16,7 @@
# | Sascha Schumann <sascha@schumann.cx> |
# +----------------------------------------------------------------------+
#
-# $Id: buildcheck.sh,v 1.30 2004-01-08 17:31:49 sniper Exp $
+# $Id: buildcheck.sh,v 1.31 2004-12-20 20:23:57 sniper Exp $
#
echo "buildconf: checking installation..."
@@ -24,7 +24,8 @@ echo "buildconf: checking installation..."
stamp=$1
# autoconf 2.13 or newer
-ac_version=`autoconf --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
+autoconf=`./build/shtool path autoconf-2.13 autoconf 2> /dev/null`
+ac_version=`$autoconf --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
if test -z "$ac_version"; then
echo "buildconf: autoconf not found."
echo " You need autoconf version 2.13 or newer installed"