]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
authorAlexandre Duret-Lutz <adl@gnu.org>
Fri, 14 Mar 2003 21:46:57 +0000 (21:46 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Fri, 14 Mar 2003 21:46:57 +0000 (21:46 +0000)
subdirectories.  Makefile.in depends on that variable.

ChangeLog
automake.in

index 89270809b268a1700d3c6ffd2c0eea746728abef..8a35c2b09b5940d241bf03fdb95756a7e818e2b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-14  Jim Meyering  <jim@meyering.net>
+
+       * automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
+       subdirectories.  Makefile.in depends on that variable.
+
 2003-03-13  Alexandre Duret-Lutz  <adl@gnu.org>
 
        * m4/init.m4: Remove a leftover comment from the pre-1.7 era.
index 20c4c15f0937217d18a3540200f9e160ea7288f5..4f9df1e907b75aa2a001bfce50928385bb4a8134 100755 (executable)
@@ -4356,6 +4356,13 @@ sub scan_aclocal_m4
 {
     my $regen_aclocal = 0;
 
+    if (-f 'aclocal.m4')
+    {
+       # When using aclocal.m4, define this variable even in subdirectories,
+       # because every Makefile.in depends on $(ACLOCAL_M4).
+       &define_variable ("ACLOCAL_M4", '$(top_srcdir)/aclocal.m4', INTERNAL);
+    }
+
     return (0, ())
       unless $relative_dir eq '.';
 
@@ -4364,7 +4371,6 @@ sub scan_aclocal_m4
 
     if (-f 'aclocal.m4')
     {
-       &define_variable ("ACLOCAL_M4", '$(top_srcdir)/aclocal.m4', INTERNAL);
        &push_dist_common ('aclocal.m4');
 
        my $aclocal = new Automake::XFile "< aclocal.m4";