]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
autoreconf: assume --force-missing automake option is supported
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 21 Sep 2012 18:59:01 +0000 (20:59 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 21 Sep 2012 19:42:19 +0000 (21:42 +0200)
According to Automake's NEWS file, it is since at least Automake 1.8,
and in autoreconf we are already assuming aclocal >= 1.8 anyway.

* bin/autoreconf.in (parse_args): Simplify a little by just assuming
the automake option '--force-missing' is supported.
($automake_supports_force_missing): Delete, no longer needed.
* NEWS: Update.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
NEWS
bin/autoreconf.in

diff --git a/NEWS b/NEWS
index ec877c31fc4612acef6289673b045f14936bc305..7db1c82fdfc38a174767ff8dbdd1f45aecbb372d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,7 +5,8 @@ GNU Autoconf NEWS - User visible changes.
 ** The use of the long-deprecated name 'configure.in' for the autoconf
    input file now elicits a warning in the 'obsolete' category.
 
-** Older versions of aclocal (< 1.8) are no longer supported by autoreconf.
+** Older version of automake and aclocal (< 1.8) are no longer supported
+   by autoreconf.
 
 ** Macros
 
index 0db8dc63f1d883dd11b9037fed65744443a77d19..75869fc0acd740efaff85c224567e142db03b10d 100644 (file)
@@ -121,8 +121,6 @@ my $install = 0;
 my $symlink = 0;
 # Does aclocal support -Wfoo?
 my $aclocal_supports_warnings = 0;
-# Does automake support --force-missing?
-my $automake_supports_force_missing = 0;
 # Does automake support -Wfoo?
 my $automake_supports_warnings = 0;
 
@@ -186,7 +184,6 @@ sub parse_args ()
   my $aclocal_help = `$aclocal --help 2>/dev/null`;
   my $automake_help = `$automake --help 2>/dev/null`;
   $aclocal_supports_warnings = $aclocal_help =~ /--warnings/;
-  $automake_supports_force_missing = $automake_help =~ /--force-missing/;
   $automake_supports_warnings = $automake_help =~ /--warnings/;
 
   # Dispatch autoreconf's option to the tools.
@@ -210,8 +207,7 @@ sub parse_args ()
       $aclocal    .= ' --force';
       $autoconf   .= ' --force';
       $autoheader .= ' --force';
-      $automake   .= ' --force-missing'
-       if $automake_supports_force_missing;
+      $automake   .= ' --force-missing';
       $autopoint  .= ' --force';
       $libtoolize .= ' --force';
     }