/[autoconf]/autoconf/bin/autoreconf.in
ViewVC logotype

Diff of /autoconf/bin/autoreconf.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.116 by akim, Thu Aug 21 06:55:42 2003 UTC revision 1.117 by akim, Thu Aug 21 16:17:33 2003 UTC
# Line 39  BEGIN Line 39  BEGIN
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;
# Line 76  Operation modes: Line 78  Operation modes:
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.
# Line 127  my $aclocal_supports_force = 0; Line 121  my $aclocal_supports_force = 0;
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'?
# Line 155  sub parse_args () Line 149  sub parse_args ()
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
# Line 218  sub parse_args () Line 214  sub parse_args ()
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  }  }

Legend:
Removed from v.1.116  
changed lines
  Added in v.1.117

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26