automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

17-fyi-trace-sep.patch


From: Akim Demaille
Subject: 17-fyi-trace-sep.patch
Date: Sat, 20 Oct 2001 13:17:25 +0200

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * automake.in (scan_autoconf_traces): Use an unlikely to be used
        separator between trace arguments, in particular not `:' as it is
        within AC_CONFIG_FILES's $1.
        
        
Index: automake.in
--- automake.in Sat, 20 Oct 2001 12:00:19 +0200 akim
+++ automake.in Sat, 20 Oct 2001 13:00:48 +0200 akim
@@ -4444,13 +4444,15 @@ sub scan_autoconf_traces ($)
 {
   my ($filename) = @_;
 
+  my @traced = ('AC_CONFIG_FILES', 'AC_LIBSOURCE', 'AC_SUBST',
+               'AM_CONDITIONAL', 'AM_INIT_AUTOMAKE');
+
   my $traces = "$ENV{amtraces} ";
 
-  $traces .= ' --trace=AC_CONFIG_FILES';
-  $traces .= ' --trace=AC_LIBSOURCE';
-  $traces .= ' --trace=AC_SUBST';
-  $traces .= ' --trace=AM_CONDITIONAL';
-  $traces .= ' --trace=AM_INIT_AUTOMAKE';
+  # Use a separator unlikely to be used, not `:', the default, which
+  # has a precise meaning for AC_CONFIG_FILES and so on.
+  $traces .= join (' ',
+                  map { "--trace=$_" . ':\$f::\$l::\$n::\${::}%' } @traced);
 
   my $tracefh = new Automake::XFile ("$traces |");
   verbose "reading $traces";
@@ -4458,7 +4460,7 @@ sub scan_autoconf_traces ($)
   while ($_ = $tracefh->getline)
     {
       chomp;
-      my ($file, $line, @args) = split /:/;
+      my ($file, $line, @args) = split /::/;
       my $macro = $args[0];
       my $here = "$file:$line";
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]