autoconf
[Top][All Lists]
Advanced

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

autoscan - make missing macro output readable


From: Paul Martinolich
Subject: autoscan - make missing macro output readable
Date: Fri, 16 Feb 2001 09:58:23 -0600

The autoscan from autoconf-2.49c has ugly output for the
missing macro warning.

$ ../../devel/bin/autoscan.orig
warning: missing AC_TYPE_PID_T wanted by: 
libsdptk/src/PGS_IO_Gen_Temp_Reference.c:675 libsdptk/src/PGS_SMF_Comp.c:5336 
libsdptk/src/PGS_SMF_Comm.c:139 libsdptk/smfcompile/PGS_SMF_Comp.c:5336

The patch below makes it look better:

$ ../../devel/bin/autoscan     
warning: missing AC_TYPE_PID_T wanted by: 
        libsdptk/src/PGS_IO_Gen_Temp_Reference.c:675
        libsdptk/src/PGS_SMF_Comp.c:5336
        libsdptk/src/PGS_SMF_Comm.c:139
        libsdptk/smfcompile/PGS_SMF_Comp.c:5336
Paul


--- autoscan.orig       Fri Feb 16 09:40:31 2001
+++ autoscan    Fri Feb 16 09:51:36 2001
@@ -600,6 +600,7 @@
   my ($trace_option) = '';
   my ($word);
   my ($macro);
+  my ($need);
 
   foreach $macro (sort keys %needed_macros)
     {
@@ -640,6 +641,10 @@
 
   foreach $macro (sort keys %needed_macros)
     {
-      print STDERR "warning: missing $macro wanted by: 
@{$needed_macros{$macro}}\n";
+      print STDERR "warning: missing $macro wanted by: \n";
+      foreach $need (@{$needed_macros{$macro}})
+        {
+          print STDERR "\t$need\n";
+        }
     }
 }



reply via email to

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