57 |
`--force' option. |
`--force' option. |
58 |
|
|
59 |
Operation modes: |
Operation modes: |
60 |
-h, --help print this help, then exit |
-h, --help print this help, then exit |
61 |
-V, --version print version number, then exit |
-V, --version print version number, then exit |
62 |
-v, --verbose verbosely report processing |
-v, --verbose verbosely report processing |
63 |
-d, --debug don't remove temporary files |
-d, --debug don't remove temporary files |
64 |
-f, --force consider all files obsolete |
-f, --force consider all files obsolete |
65 |
-i, --install copy missing auxiliary files |
-i, --install copy missing auxiliary files |
66 |
-s, --symlink with -i, install symbolic links instead of copies |
-s, --symlink with -i, install symbolic links instead of copies |
67 |
|
-W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax] |
68 |
|
|
69 |
|
Warning categories include: |
70 |
|
\`cross\' cross compilation issues |
71 |
|
\`obsolete\' obsolete constructs |
72 |
|
\`portability\' portability issues |
73 |
|
\`syntax\' dubious syntactic constructs |
74 |
|
\`all\' all the warnings |
75 |
|
\`no-CATEGORY\' turn off the warnings on CATEGORY |
76 |
|
\`none\' turn off all the warnings |
77 |
|
\`error\' warnings are error |
78 |
|
|
79 |
|
The environment variable \`WARNINGS\' is honored. Some subtools might |
80 |
|
support other warning types, using \`all' is encouraged. |
81 |
|
|
82 |
Library directories: |
Library directories: |
83 |
-B, --prepend-include=DIR prepend directory DIR to search path |
-B, --prepend-include=DIR prepend directory DIR to search path |
118 |
# The directory where autoreconf was run. |
# The directory where autoreconf was run. |
119 |
my $cwd = cwd; |
my $cwd = cwd; |
120 |
|
|
121 |
|
# List of warnings. |
122 |
|
my @warning; |
123 |
|
|
124 |
|
|
125 |
## ---------- ## |
## ---------- ## |
134 |
{ |
{ |
135 |
my $srcdir; |
my $srcdir; |
136 |
|
|
137 |
getopt ('I|include=s' => \@include, |
getopt ("W|warnings=s" => \@warning, |
138 |
'B|prepend-include=s' => \@prepend_include, |
'I|include=s' => \@include, |
139 |
'i|install' => \$install, |
'B|prepend-include=s' => \@prepend_include, |
140 |
's|symlink' => \$symlink); |
'i|install' => \$install, |
141 |
|
's|symlink' => \$symlink); |
142 |
|
|
143 |
|
# Split the warnings as a list of elements instead of a list of |
144 |
|
# lists. |
145 |
|
@warning = map { split /,/ } @warning; |
146 |
|
|
147 |
# Even if the user specified a configure.ac, trim to get the |
# Even if the user specified a configure.ac, trim to get the |
148 |
# directory, and look for configure.ac again. Because (i) the code |
# directory, and look for configure.ac again. Because (i) the code |
199 |
$aclocal .= ' --verbose'; |
$aclocal .= ' --verbose'; |
200 |
$libtoolize .= ' --debug'; |
$libtoolize .= ' --debug'; |
201 |
} |
} |
202 |
|
# --warnings; |
203 |
|
if (@warning) |
204 |
|
{ |
205 |
|
$autoconf .= ' --warnings=' . join (',', @warning); |
206 |
|
$autoheader .= ' --warnings=' . join (',', @warning); |
207 |
|
$automake .= ' --warnings=' . join (',', @warning) |
208 |
|
if `$automake --help` =~ /--warnings/; |
209 |
|
} |
210 |
} |
} |
211 |
|
|
212 |
|
|