]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoscan.pl ($dir, $autoconf): New.
authorAkim Demaille <akim@epita.fr>
Mon, 22 Jan 2001 19:05:16 +0000 (19:05 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 22 Jan 2001 19:05:16 +0000 (19:05 +0000)
ChangeLog
autoscan.in
autoscan.pl
bin/autoscan.in

index e43a7a6c4a6653c7c2efb65d98b0351b15da205d..43419e53b1157d292fe2b80e424945bf41c9c74d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-01-22  Akim Demaille  <akim@epita.fr>
+
+       * autoscan.pl ($dir, $autoconf): New.
+
 2001-01-22  Akim Demaille  <akim@epita.fr>
 
        * autoscan.pl ($headers, $functions, $identifiers, $libraries):
index 33cc63e35c8f7e235507afbf1704efc12e770a17..d488c9081b3d5e3ab28ce154bccf35835878776f 100644 (file)
 require "find.pl";
 use Getopt::Long;
 
+# Find the lib files and autoconf.
 $datadir = $ENV{"AC_MACRODIR"} || "@datadir@";
+($dir = $0) =~ s,[^/]*$,,;
+$autoconf = '';
+# We test "$dir/autoconf" in case we are in the build tree, in which case
+# the names are not transformed yet.
+foreach $file ("$ENV{AUTOCONF}" || '',
+              "$dir/@autoconf-name@",
+              "$dir/autoconf",
+              "@bindir@/@autoconf-name@")
+  {
+    if (-f $file)
+      {
+       $autoconf = $file;
+       last;
+      }
+  }
+
 ($me = $0) =~ s,.*/,,;
 $verbose = 0;
 
@@ -538,7 +555,7 @@ sub check_configure_ac
       $trace_option .= " -t $macro";
     }
 
-  open (TRACES, "/home/akim/src/ace/autoconf -A $datadir $trace_option $configure_ac|") ||
+  open (TRACES, "$autoconf -A $datadir $trace_option $configure_ac|") ||
     die "$me: cannot create read traces: $!\n";
 
   while (<TRACES>)
index 33cc63e35c8f7e235507afbf1704efc12e770a17..d488c9081b3d5e3ab28ce154bccf35835878776f 100644 (file)
 require "find.pl";
 use Getopt::Long;
 
+# Find the lib files and autoconf.
 $datadir = $ENV{"AC_MACRODIR"} || "@datadir@";
+($dir = $0) =~ s,[^/]*$,,;
+$autoconf = '';
+# We test "$dir/autoconf" in case we are in the build tree, in which case
+# the names are not transformed yet.
+foreach $file ("$ENV{AUTOCONF}" || '',
+              "$dir/@autoconf-name@",
+              "$dir/autoconf",
+              "@bindir@/@autoconf-name@")
+  {
+    if (-f $file)
+      {
+       $autoconf = $file;
+       last;
+      }
+  }
+
 ($me = $0) =~ s,.*/,,;
 $verbose = 0;
 
@@ -538,7 +555,7 @@ sub check_configure_ac
       $trace_option .= " -t $macro";
     }
 
-  open (TRACES, "/home/akim/src/ace/autoconf -A $datadir $trace_option $configure_ac|") ||
+  open (TRACES, "$autoconf -A $datadir $trace_option $configure_ac|") ||
     die "$me: cannot create read traces: $!\n";
 
   while (<TRACES>)
index 33cc63e35c8f7e235507afbf1704efc12e770a17..d488c9081b3d5e3ab28ce154bccf35835878776f 100644 (file)
 require "find.pl";
 use Getopt::Long;
 
+# Find the lib files and autoconf.
 $datadir = $ENV{"AC_MACRODIR"} || "@datadir@";
+($dir = $0) =~ s,[^/]*$,,;
+$autoconf = '';
+# We test "$dir/autoconf" in case we are in the build tree, in which case
+# the names are not transformed yet.
+foreach $file ("$ENV{AUTOCONF}" || '',
+              "$dir/@autoconf-name@",
+              "$dir/autoconf",
+              "@bindir@/@autoconf-name@")
+  {
+    if (-f $file)
+      {
+       $autoconf = $file;
+       last;
+      }
+  }
+
 ($me = $0) =~ s,.*/,,;
 $verbose = 0;
 
@@ -538,7 +555,7 @@ sub check_configure_ac
       $trace_option .= " -t $macro";
     }
 
-  open (TRACES, "/home/akim/src/ace/autoconf -A $datadir $trace_option $configure_ac|") ||
+  open (TRACES, "$autoconf -A $datadir $trace_option $configure_ac|") ||
     die "$me: cannot create read traces: $!\n";
 
   while (<TRACES>)