+2001-02-16 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * automake.in (unquote_m4_arg): New function.
+ (scan_one_configure_file): Call unquote_m4_arg on
+ AM_CONFIG_HEADER argument, so that AM_CONFIG_HEADER([foobar.h])
+ works.
+
2001-02-15 Tom Tromey <tromey@redhat.com>
* config.guess, config.sub: New versions from FSF.
+have 'make check' print tests which are skipped
+
we need a document describing automake from the end user's point of view
eg describe INSTALL_HEADER there, among other things
$config_header_line = $.;
local ($one_hdr);
- foreach $one_hdr (split (' ', $2))
+ foreach $one_hdr (split (' ', &unquote_m4_arg ($2)))
{
push (@config_fullnames, $one_hdr);
if ($one_hdr =~ /^([^:]+):(.+)$/)
return <${pat}>;
}
+# Remove one level of brackets and strip leading spaces,
+# as does m4 to function arguments.
+sub unquote_m4_arg
+{
+ $_ = shift;
+ s/^\s*//;
+
+ my @letters = split //;
+ my @result = ();
+ my $depth = 0;
+
+ foreach (@letters)
+ {
+ if ($_ eq '[')
+ {
+ ++$depth;
+ next if $depth == 1;
+ }
+ elsif ($_ eq ']')
+ {
+ --$depth;
+ next if $depth == 0;
+ # don't count orphan right brackets
+ $depth = 0 if $depth < 0;
+ }
+ push @result, $_;
+ }
+ return join '', @result;
+}
+
################################################################
# Print an error message and set exit status.