autoconf-patches
[Top][All Lists]
Advanced

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

21-autoscan-autoconf.patch


From: Akim Demaille
Subject: 21-autoscan-autoconf.patch
Date: Mon, 22 Jan 2001 01:36:57 +0100

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * autoscan.pl ($dir, $autoconf): New.

Index: autoscan.pl
--- autoscan.pl Mon, 22 Jan 2001 01:21:08 +0100 akim (ace/13_autoscan.p 1.24 
666)
+++ autoscan.pl Mon, 22 Jan 2001 01:33:20 +0100 akim (ace/13_autoscan.p 1.24 
666)
@@ -22,7 +22,24 @@
 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>)



reply via email to

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