* aclocal.in (write_aclocal): Warn about autoconf
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 23 Jun 2007 08:30:46 +0000 (08:30 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 23 Jun 2007 08:30:46 +0000 (08:30 +0000)
incompatibilities instead of making them fatal.
* tests/missing4.test: Adjust.
* NEWS: Update.
Problem reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-automake/2007-06/msg00010.html>.

ChangeLog
NEWS
aclocal.in
aclocal.m4
tests/missing4.test

index 6d9a87e..0730b31 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * aclocal.in (write_aclocal): Warn about autoconf
+       incompatibilities instead of making them fatal.
+       * tests/missing4.test: Adjust.
+       * NEWS: Update.
+       Problem reported by Bruno Haible in
+       <http://lists.gnu.org/archive/html/bug-automake/2007-06/msg00010.html>.
+
 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
 
        * doc/automake.texi, lib/Automake/Rule.pm: Fix typos.
diff --git a/NEWS b/NEWS
index 95b6cfe..1a504a1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,11 @@
 New in 1.10a:
  
+* Changes to aclocal:
+
+  - The autoconf version check implemented by aclocal in aclocal.m4
+    (and new in Automake 1.10) is degraded to a warning.  This helps
+    in the common case where the Autoconf versions used are compatible.
+
 * Languages changes:
 
   - subdir-object mode works now with Fortran (F77, FC, preprocessed
index 3e4ab88..9847b96 100644 (file)
@@ -783,9 +783,10 @@ sub write_aclocal ($@)
       # use it in the header below.  autom4te will output the name of
       # the file in the diagnostic anyway.
       $output = "m4_if(m4_PACKAGE_VERSION, [$ac_version],,
-[m4_fatal([this file was generated for autoconf $ac_version.
-You have another version of autoconf.  If you want to use that,
-you should regenerate the build system entirely.], [63])])
+[m4_warning([this file was generated for autoconf $ac_version.
+You have another version of autoconf.  It may work, but is not guaranteed to.
+If you have problems, you may need to regenerate the build system entirely.
+To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
 $output";
     }
index 26404ee..7ae7e5b 100644 (file)
 # PARTICULAR PURPOSE.
 
 m4_if(m4_PACKAGE_VERSION, [2.61],,
-[m4_fatal([this file was generated for autoconf 2.61.
-You have another version of autoconf.  If you want to use that,
-you should regenerate the build system entirely.], [63])])
+[m4_warning([this file was generated for autoconf 2.61.
+You have another version of autoconf.  It may work, but is not guaranteed to.
+If you have problems, you may need to regenerate the build system entirely.
+To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
 m4_include([m4/amversion.m4])
 m4_include([m4/auxdir.m4])
index 32f0fb2..42ffbf7 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2006  Free Software Foundation, Inc.
+# Copyright (C) 2006, 2007  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -42,14 +42,12 @@ mv aclocal.tmp aclocal.m4
 
 $MAKE 2>stderr
 cat stderr
-grep 'WARNING:.*automake.*probably too old' stderr
-grep 'WARNING:.*autoconf.*probably too old' stderr
-test 2 = `grep -c 'aclocal.m4:.*this file was generated for' stderr`
+grep 'You have another version of autoconf' stderr
+grep -c 'aclocal.m4:.*this file was generated for' stderr
 
 $MAKE 2>stderr
 cat stderr
-grep 'WARNING:.*automake.*probably too old' stderr && exit 1
-grep 'WARNING:.*autoconf.*probably too old' stderr && exit 1
+grep 'You have another version of autoconf' stderr && exit 1
 grep 'aclocal.m4:.*this file was generated for' stderr && exit 1
 
 :