2004-11-17 Alexandre Duret-Lutz <adl@gnu.org>
+ * aclocal.in (%file_seen): Rename as ...
+ (%file_added): ... this, and move it close to add_file(), the only
+ function that uses it.
+
* aclocal.in (version): Remove initial blank line and reproduce
the layout of automake --version. From Art Haas.
# Which macros have been seen.
my %macro_seen = ();
-# Which files have been seen.
-my %file_seen = ();
-
# Remember the order into which we scanned the files.
# It's important to output the contents of aclocal.m4 in the opposite order.
# (Definitions in first files we have scanned should override those from
&scan_configure_dep (File::Spec->rel2abs ($_, $dirname)) foreach (@ilist);
}
-# Add a file to output.
+# add_file ($FILE)
+# ----------------
+# Add $FILE to output.
+my %file_added = (); # files which have already been added.
sub add_file ($)
{
my ($file) = @_;
# Only add a file once.
- return if ($file_seen{$file});
- $file_seen{$file} = 1;
+ return if ($file_added{$file});
+ $file_added{$file} = 1;
scan_configure_dep $file;
}