summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-07-17 18:42:26 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-07-17 18:43:38 -0700
commitd7bd610b4c6b7ab99ff99dd4f70db1b30b4e3f11 (patch)
tree06f7d195e15a8519ccde59b1a8636d1fb1e02e8f
parent0c39ab024f015f271933e6d627d602421c2458df (diff)
downloadautoconf-d7bd610b4c6b7ab99ff99dd4f70db1b30b4e3f11.tar.gz
Port build procedure to AIX 7.1
* lib/freeze.mk (MY_AUTOM4TE, build_libdir, m4f_dependencies): Prefer ‘$(top_build_prefix)’ to ‘$(top_builddir)/’. The difference matters on AIX 7.1, where ‘make’ doesn’t know that bin/autom4te and ./bin/autom4te are the same file, and gets confused about dependencies without this change. ‘$(top_build_prefix)bin/autom4te’ expands to ‘bin/automake’ whereas ‘$(top_builddir)/bin/autom4te’ expands to ‘./bin/automake’, and the former works where the latter doesn’t.
-rw-r--r--lib/freeze.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/freeze.mk b/lib/freeze.mk
index f067cf13..ee1d6fcd 100644
--- a/lib/freeze.mk
+++ b/lib/freeze.mk
@@ -31,8 +31,8 @@ AUTOM4TE_CFG = lib/autom4te.cfg
# apply to us.
MY_AUTOM4TE = \
autom4te_perllibdir='$(top_srcdir)'/lib \
- AUTOM4TE_CFG='$(AUTOM4TE_CFG)' $(top_builddir)/bin/autom4te \
- -B '$(top_builddir)'/lib -B '$(top_srcdir)'/lib # keep ` '
+ AUTOM4TE_CFG='$(AUTOM4TE_CFG)' $(top_build_prefix)bin/autom4te \
+ -B '$(top_build_prefix)'lib -B '$(top_srcdir)'/lib # keep ` '
# When processing the file with diversion disabled, there must be no
# output but comments and empty lines.
@@ -55,9 +55,9 @@ MY_AUTOM4TE = \
# Some day we should explain to Automake how to use autom4te to compute
# the dependencies...
src_libdir = $(top_srcdir)/lib
-build_libdir = $(top_builddir)/lib
+build_libdir = $(top_build_prefix)lib
-m4f_dependencies = $(top_builddir)/bin/autom4te $(AUTOM4TE_CFG)
+m4f_dependencies = $(top_build_prefix)bin/autom4te $(AUTOM4TE_CFG)
m4sugar_m4f_dependencies = \
$(m4f_dependencies) \