+2008-12-18 Eric Blake <ebb9@byu.net>
+
+ Document m4_version_prereq.
+ * doc/autoconf.texi (Number processing Macros)
+ <m4_version_prereq>: Add documentation.
+ * NEWS: Mention it.
+ Reported by Bruno Haible.
+
2008-12-10 Jim Meyering <meyering@redhat.com>
AC_HEADER_ASSERT: don't say assertions are disabled when they're not
m4_map_args_pair m4_set_map
** The following m4sugar macros are documented now:
- m4_copy m4_dumpdefs m4_rename
+ m4_copy m4_dumpdefs m4_rename m4_version_prereq
** The m4sugar macro m4_expand has been taught to handle unterminated
comments and shell case statements. As a result, it is used
@end example
@end defmac
+@defmac m4_version_prereq (@var{version}, @ovar{if-new-enough}, @
+ @dvar{if-old, m4_fatal})
+@msindex{version_prereq}
+Compares @var{version} against the version of Autoconf currently
+running. If the running version is at @var{version} or newer, expand
+@var{if-new-enough}, but if @var{version} is larger than the version
+currently executing, expand @var{if-old}, which defaults to printing an
+error message and exiting m4sugar with status 63. When given only one
+argument, this behaves like @code{AC_PREREQ} (@pxref{Versioning}).
+Remember that the autoconf philosophy favors feature checks over version
+checks.
+@end defmac
@node Set manipulation Macros
@subsection Set manipulation in M4