2008-10-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Document AS_VERSION_COMPARE.
+ * doc/autoconf.texi (Programming in M4sh): Document
+ AS_VERSION_COMPARE.
+ * NEWS: Update.
+
Do not write to testsuite log fd before initialization.
* lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
Define fds only when initializing the log fd so early error
** The following m4sugar macros are new:
m4_default_quoted
+** The following m4sh macros are documented now:
+ AS_VERSION_COMPARE.
+
\f
* Major changes in Autoconf 2.63 (2008-09-09) [stable]
Released by Eric Blake, based on git versions 2.62.*.
@var{file} is absolute, etc.).
@end defmac
+@defmac AS_VERSION_COMPARE (@var{version-1}, @var{version-2}, @
+ @ovar{action-if-less}, @ovar{action-if-equal}, @ovar{action-if-greater})
+@asindex{VERSION_COMPARE}
+Compare two strings @var{version-1} and @var{version-2}, possibly
+containing shell variables, as version strings, and expand
+@var{action-if-less}, @var{action-if-equal}, or @var{action-if-greater}
+depending upon the result.
+The algorithm to compare is similar to the one used by strverscmp in
+glibc (@pxref{String/Array Comparison, , String/Array Comparison, libc,
+The @acronym{GNU} C Library}).
+@end defmac
+
@node File Descriptor Macros
@section File Descriptor Macros