]> granicus.if.org Git - php/commitdiff
Fix buildconf when multiple autoconf versions installed
authorfoobar <sniper@php.net>
Mon, 20 Dec 2004 20:23:57 +0000 (20:23 +0000)
committerfoobar <sniper@php.net>
Mon, 20 Dec 2004 20:23:57 +0000 (20:23 +0000)
build/build2.mk
build/buildcheck.sh

index 9b3d538d196a4991b6870a1ad37cb90efa45e653..f114be3adc0783ece303b0f2ba8076e9fd9bc3b8 100644 (file)
@@ -46,7 +46,8 @@ $(config_h_in): configure acconfig.h
 # correctly otherwise (timestamps are not updated)
        @echo rebuilding $@
        @rm -f $@
-       @autoheader 2>&1 | $(SUPPRESS_WARNINGS)
+       @autoheader=`./build/shtool path autoheader-2.13 autoheader`; \
+       $$autoheader 2>&1 | $(SUPPRESS_WARNINGS)
 
 $(TOUCH_FILES):
        touch $(TOUCH_FILES)
@@ -61,4 +62,5 @@ aclocal.m4: configure.in acinclude.m4
 
 configure: aclocal.m4 configure.in $(config_m4_files)
        @echo rebuilding $@
-       @autoconf 2>&1 | $(SUPPRESS_WARNINGS)
+       @autoconf=`./build/shtool path autoconf-2.13 autoconf`; \
+       $$autoconf 2>&1 | $(SUPPRESS_WARNINGS)
index aed6126b5e30d2aedf0cfb7ad4f32cb0f65f4456..555cb3520410332dd0261fe7c6e16ed204a0bf0d 100755 (executable)
@@ -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"