44 |
my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@'; |
my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@'; |
45 |
local $config_h; |
local $config_h; |
46 |
my $config_h_in; |
my $config_h_in; |
47 |
|
my @prepend_include; |
48 |
my @include; |
my @include; |
49 |
my @warning; |
my @warning; |
50 |
|
|
73 |
\`error\' warnings are error |
\`error\' warnings are error |
74 |
|
|
75 |
Library directories: |
Library directories: |
76 |
-I, --include=DIR look for files in DIR (cumulative) |
-B, --prepend-include=DIR prepend directory DIR to search path |
77 |
|
-I, --include=DIR append directory DIR to search path |
78 |
|
|
79 |
Report bugs to <bug-autoconf\@gnu.org>. |
Report bugs to <bug-autoconf\@gnu.org>. |
80 |
END |
END |
105 |
my $srcdir; |
my $srcdir; |
106 |
|
|
107 |
getopt ('I|include|A|autoconf-dir|m|macrodir|l|localdir=s' => \@include, |
getopt ('I|include|A|autoconf-dir|m|macrodir|l|localdir=s' => \@include, |
108 |
|
'B|prepend-include=s' => \@prepend_include, |
109 |
'W|warning=s' => \@warning); |
'W|warning=s' => \@warning); |
110 |
|
|
111 |
if (! @ARGV) |
if (! @ARGV) |
126 |
parse_args; |
parse_args; |
127 |
|
|
128 |
# Preach. |
# Preach. |
129 |
my $config_h_top = find_file ("config.h.top?", @include); |
my $config_h_top = find_file ("config.h.top?", |
130 |
my $config_h_bot = find_file ("config.h.bot?", @include); |
reverse(@prepend_include), @include); |
131 |
my $acconfig_h = find_file ("acconfig.h?", @include); |
my $config_h_bot = find_file ("config.h.bot?", |
132 |
|
reverse(@prepend_include), @include); |
133 |
|
my $acconfig_h = find_file ("acconfig.h?", |
134 |
|
reverse(@prepend_include), @include); |
135 |
if ($config_h_top || $config_h_bot || $acconfig_h) |
if ($config_h_top || $config_h_bot || $acconfig_h) |
136 |
{ |
{ |
137 |
my $msg = << "END"; |
my $msg = << "END"; |
156 |
# Set up autoconf. |
# Set up autoconf. |
157 |
my $autoconf = "$autom4te --language=autoconf "; |
my $autoconf = "$autom4te --language=autoconf "; |
158 |
$autoconf .= join (' ', map { "--include=$_" } @include); |
$autoconf .= join (' ', map { "--include=$_" } @include); |
159 |
|
$autoconf .= join (' ', map { "--prepend-include=$_" } @prepend_include); |
160 |
$autoconf .= ' --debug' if $debug; |
$autoconf .= ' --debug' if $debug; |
161 |
$autoconf .= ' --force' if $force; |
$autoconf .= ' --force' if $force; |
162 |
$autoconf .= ' --verbose' if $verbose; |
$autoconf .= ' --verbose' if $verbose; |