summaryrefslogtreecommitdiff
path: root/build/build2.mk
diff options
context:
space:
mode:
authorJon Parise <jon@php.net>2005-04-04 07:16:01 +0000
committerJon Parise <jon@php.net>2005-04-04 07:16:01 +0000
commit3ac5ec3b7e854a08a02e977996da322bf6dca80b (patch)
tree7ec1eeb1ee7663d5456de7e59e39ff6d4ee678ec /build/build2.mk
parentb30fd67736800aded99bd432fae99bb828ae5d88 (diff)
downloadphp-git-3ac5ec3b7e854a08a02e977996da322bf6dca80b.tar.gz
Adding the ability to override the autotools executables used by the
buildconf script via the PHP_AUTOCONF and PHP_AUTOHEADER environmental variables.
Diffstat (limited to 'build/build2.mk')
-rw-r--r--build/build2.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/build2.mk b/build/build2.mk
index c361d0d425..6de26fcad8 100644
--- a/build/build2.mk
+++ b/build/build2.mk
@@ -32,6 +32,9 @@ acconfig_h_SOURCES = acconfig.h.in $(config_h_files)
targets = $(TOUCH_FILES) configure $(config_h_in)
+PHP_AUTOCONF ?= 'autoconf'
+PHP_AUTOHEADER ?= 'autoheader'
+
SUPPRESS_WARNINGS ?= 2>&1 | (egrep -v '(AC_TRY_RUN called without default to allow cross compiling|AC_PROG_CXXCPP was called before AC_PROG_CXX|defined in acinclude.m4 but never used|AC_PROG_LEX invoked multiple times|AC_DECL_YYTEXT is expanded from...|the top level)'||true)
all: $(targets)
@@ -45,7 +48,7 @@ $(config_h_in): configure acconfig.h
# correctly otherwise (timestamps are not updated)
@echo rebuilding $@
@rm -f $@
- autoheader $(SUPPRESS_WARNINGS)
+ $(PHP_AUTOHEADER) $(SUPPRESS_WARNINGS)
$(TOUCH_FILES):
touch $(TOUCH_FILES)
@@ -56,5 +59,5 @@ aclocal.m4: configure.in acinclude.m4
configure: aclocal.m4 configure.in $(config_m4_files)
@echo rebuilding $@
- autoconf $(SUPPRESS_WARNINGS)
+ $(PHP_AUTOCONF) $(SUPPRESS_WARNINGS)