I'm pretty sure users will be confused about this error message --
I even was.  I think the one below would be a bit better.

One open issue with this is that the multiline warning isn't nicely
prefixed with everywhere:
| aclocal.m4:17: error: this file was generated for autoconf 2.60.
| To regenerate, remove `aclocal.m4' and rerun `aclocal';
| make sure the `autom4te' from the right Autoconf package is found.
| aclocal.m4:17: the top level

But IMVHO it's still better to accept that than to wait for
m4_fatal_multiline and get a flood of bug reports.

OK?

Cheers,
Ralf

2006-10-14  Ralf Wildenhues  <[EMAIL PROTECTED]>

        * aclocal.in (write_aclocal): Improve warning for mismatched
        Autoconf version.

Index: aclocal.in
===================================================================
RCS file: /cvs/automake/automake/aclocal.in,v
retrieving revision 1.139
diff -u -r1.139 aclocal.in
--- aclocal.in  4 Aug 2006 08:42:54 -0000       1.139
+++ aclocal.in  14 Oct 2006 04:21:11 -0000
@@ -783,7 +783,9 @@
       # 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], [63])])
+[m4_fatal([this file was generated for autoconf $ac_version.
+To regenerate, remove `aclocal.m4' and rerun `aclocal';
+make sure the `autom4te' from the right Autoconf package is found.], [63])])
 
 $output";
     }


Reply via email to