* autoscan.pl ($dir, $autoconf): New.

This commit is contained in:
Akim Demaille 2001-01-22 19:05:16 +00:00
parent c3aa22ab53
commit 2b4643604b
4 changed files with 58 additions and 3 deletions

View File

@ -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):

View File

@ -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>)

View File

@ -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>)

View File

@ -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>)