From d7bd610b4c6b7ab99ff99dd4f70db1b30b4e3f11 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 17 Jul 2020 18:42:26 -0700 Subject: Port build procedure to AIX 7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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. --- lib/freeze.mk | 8 ++++---- 1 file 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) \ -- cgit v1.2.1