39 |
$ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos'); |
$ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos'); |
40 |
} |
} |
41 |
|
|
42 |
|
use Autom4te::ChannelDefs; |
43 |
|
use Autom4te::Channels; |
44 |
use Autom4te::Configure_ac; |
use Autom4te::Configure_ac; |
45 |
use Autom4te::FileUtils; |
use Autom4te::FileUtils; |
46 |
use Autom4te::General; |
use Autom4te::General; |
78 |
-m, --make when applicable, re-run ./configure && make |
-m, --make when applicable, re-run ./configure && make |
79 |
-W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax] |
-W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax] |
80 |
|
|
81 |
Warning categories include: |
" . Autom4te::ChannelDefs::usage . " |
|
\`cross\' cross compilation issues |
|
|
\`obsolete\' obsolete constructs |
|
|
\`portability\' portability issues |
|
|
\`syntax\' dubious syntactic constructs |
|
|
\`all\' all the warnings |
|
|
\`no-CATEGORY\' turn off the warnings on CATEGORY |
|
|
\`none\' turn off all the warnings |
|
|
\`error\' warnings are error |
|
82 |
|
|
83 |
The environment variable \`WARNINGS\' is honored. Some subtools might |
The environment variable \`WARNINGS\' is honored. Some subtools might |
84 |
support other warning types, using \`all' is encouraged. |
support other warning types, using \`all' is encouraged. |
121 |
my @prepend_include; |
my @prepend_include; |
122 |
my @include; |
my @include; |
123 |
|
|
124 |
# List of warnings. |
# List of command line warning requests. |
125 |
my @warning; |
my @warning; |
126 |
|
|
127 |
# Rerun `./configure && make'? |
# Rerun `./configure && make'? |
149 |
# Split the warnings as a list of elements instead of a list of |
# Split the warnings as a list of elements instead of a list of |
150 |
# lists. |
# lists. |
151 |
@warning = map { split /,/ } @warning; |
@warning = map { split /,/ } @warning; |
152 |
|
parse_WARNINGS; |
153 |
|
parse_warnings '--warnings', @warning; |
154 |
|
|
155 |
# Even if the user specified a configure.ac, trim to get the |
# Even if the user specified a configure.ac, trim to get the |
156 |
# directory, and look for configure.ac again. Because (i) the code |
# directory, and look for configure.ac again. Because (i) the code |
214 |
# --warnings; |
# --warnings; |
215 |
if (@warning) |
if (@warning) |
216 |
{ |
{ |
217 |
$autoconf .= ' --warnings=' . join (',', @warning); |
my $warn = ' --warnings=' . join (',', @warning); |
218 |
$autoheader .= ' --warnings=' . join (',', @warning); |
$autoconf .= $warn; |
219 |
$automake .= ' --warnings=' . join (',', @warning) |
$autoheader .= $warn; |
220 |
|
$automake .= $warn |
221 |
if `$automake --help` =~ /--warnings/; |
if `$automake --help` =~ /--warnings/; |
222 |
} |
} |
223 |
} |
} |