From: Stefano Lattarini Date: Sat, 17 Nov 2012 18:57:02 +0000 (+0100) Subject: build: fix rebuild rules for Makefile.in and aclocal.m4 X-Git-Tag: v1.12b~23^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f584fa4f117c5d745b0b7b4f57686f2f83424b0;p=thirdparty%2Fautomake.git build: fix rebuild rules for Makefile.in and aclocal.m4 They have been broken after our removal of the 'perllibdir' hack in yesterday's commit v1.12.4-45-g4872dfe. * configure.ac: Rather then redefining AUTOMAKE and ACLOCAL to explicitly override the perllibdir, the acdir and the libdir, use the ready-made t/wrap/{aclocal,automake}-$APIVERSION scripts. * NEWS: Document the fix. Signed-off-by: Stefano Lattarini --- diff --git a/NEWS b/NEWS index 438ec6807..e1fcd2727 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -New in 1.12.5: +New in 1.12.6: * WARNING: Future backward-incompatibilities! @@ -61,6 +61,17 @@ New in 1.12.5: giving more useful warnings than a bare "command not found" from a make recipe would. +Bugs fixed in 1.12.6: + +* Bugs introduced in 1.12.5: + + - The maintainer rebuild rules for Makefiles and aclocal.m4 in Automake's + own build system works correctly again. + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +New in 1.12.5: + * Vala support: - The AM_PROG_VALAC macro has been enhanced to takes two further diff --git a/configure.ac b/configure.ac index 7f3dc3310..7f126c4aa 100644 --- a/configure.ac +++ b/configure.ac @@ -63,10 +63,12 @@ AC_SUBST([amdir], ["\${pkgvdatadir}/am"]) AC_SUBST([automake_acdir], ["\${datadir}/aclocal-$APIVERSION"]) AC_SUBST([system_acdir], ["\${datadir}/aclocal"]) -# $AUTOMAKE and $ACLOCAL are always run after a "cd $top_srcdir", -# hence '.' is really what we want for perllibdir, libdir, and acdir. -ACLOCAL="perllibdir=\"`pwd`/lib$PATH_SEPARATOR./lib\" \"`pwd`/aclocal\" --acdir=m4 -I m4" -AUTOMAKE="perllibdir=\"`pwd`/lib$PATH_SEPARATOR./lib\" \"`pwd`/automake\" --libdir=lib" +# Our build system is bootstrapped with the bleeding-edge versions of +# aclocal and automake, hence the remake rules must use those versions +# as well. The extra quoting is to cater to cases when the build +# directory contains whitespace or shell metacharacters. +ACLOCAL="\"`pwd`/t/wrap/aclocal-$APIVERSION\"" +AUTOMAKE="\"`pwd`/t/wrap/automake-$APIVERSION\"" AC_PATH_PROG([PERL], [perl]) if test -z "$PERL"; then