Allow standard beta version numbers.
* configure.in: Declare version 2.14a.
* acgeneral.m4 (AC_UNGNITS): New macro which transform version
numbers to pure digits (2.14a to 2.14.0.1, 2.15z to 2.15.0.26
etc.).
(AC_PREREQ): Normalize argument and AC_ACVERSION via AC_UNGNITS.
+1999-10-31 Akim Demaille <akim@epita.fr>
+
+ Allow standard beta version numbers.
+
+ * configure.in: Declare version 2.14a.
+ * acgeneral.m4 (AC_UNGNITS): New macro which transform version
+ numbers to pure digits (2.14a to 2.14.0.1, 2.15z to 2.15.0.26
+ etc.).
+ (AC_PREREQ): Normalize argument and AC_ACVERSION via AC_UNGNITS.
+
1999-10-31 Akim Demaille <akim@epita.fr>
Fix the --version of all the executables.
-* Major changes in release 2.14.1 -*- outline -*-
+* Major changes in release 2.14a -*- outline -*-
** config.status
- much faster on most architectures
[m4_compare(m4_quote(m4_shift($1)),
m4_quote(m4_shift($2)))])])])])
-dnl Complain and exit if the Autoconf version is less than VERSION.
+
+dnl AC_UNGNITS(VERSION)
+dnl -------------------
+dnl Replace .a, .b etc. by .0.1, .0.2 in VERSION. For instance, version
+dnl 2.14a is understood as 2.14.0.1 for version comparison.
+dnl This macro is absolutely not robust to active macro, it expects
+dnl reasonable version numbers.
+dnl Warning: Valid up to `z', no double letters.
+define(AC_UNGNITS,
+[translit(patsubst(patsubst(patsubst([$1],
+ [\([abcdefghi]\)], [.0.\1]),
+ [\([jklmnopqrs]\)], [.0.1\1]),
+ [\([tuvwxyz]\)], [.0.2\1]),
+ abcdefghijklmnopqrstuvwxyz,
+ 12345678901234567890123456)])
+
+
dnl AC_PREREQ(VERSION)
+dnl ------------------
+dnl Complain and exit if the Autoconf version is less than VERSION.
define(AC_PREREQ,
-[ifelse(m4_compare(m4_split([$1], [\.]),
- m4_split(AC_ACVERSION, [\.])), -1,
+[ifelse(m4_compare(m4_split(AC_UNGNITS([$1]), [\.]),
+ m4_split(AC_UNGNITS(AC_ACVERSION), [\.])), -1,
[AC_FATAL(Autoconf version $1 or higher is required for this script)])])
+
+
dnl ### Getting the canonical system type
dnl Process this file with autoconf to produce a configure script.
AC_INIT(acgeneral.m4)
-AM_INIT_AUTOMAKE(autoconf, 2.14.1)
+AM_INIT_AUTOMAKE(autoconf, 2.14a)
dnl We use a path for GNU m4 so even if users have another m4 first in
dnl their path, the installer can configure with a path that has GNU m4
[m4_compare(m4_quote(m4_shift($1)),
m4_quote(m4_shift($2)))])])])])
-dnl Complain and exit if the Autoconf version is less than VERSION.
+
+dnl AC_UNGNITS(VERSION)
+dnl -------------------
+dnl Replace .a, .b etc. by .0.1, .0.2 in VERSION. For instance, version
+dnl 2.14a is understood as 2.14.0.1 for version comparison.
+dnl This macro is absolutely not robust to active macro, it expects
+dnl reasonable version numbers.
+dnl Warning: Valid up to `z', no double letters.
+define(AC_UNGNITS,
+[translit(patsubst(patsubst(patsubst([$1],
+ [\([abcdefghi]\)], [.0.\1]),
+ [\([jklmnopqrs]\)], [.0.1\1]),
+ [\([tuvwxyz]\)], [.0.2\1]),
+ abcdefghijklmnopqrstuvwxyz,
+ 12345678901234567890123456)])
+
+
dnl AC_PREREQ(VERSION)
+dnl ------------------
+dnl Complain and exit if the Autoconf version is less than VERSION.
define(AC_PREREQ,
-[ifelse(m4_compare(m4_split([$1], [\.]),
- m4_split(AC_ACVERSION, [\.])), -1,
+[ifelse(m4_compare(m4_split(AC_UNGNITS([$1]), [\.]),
+ m4_split(AC_UNGNITS(AC_ACVERSION), [\.])), -1,
[AC_FATAL(Autoconf version $1 or higher is required for this script)])])
+
+
dnl ### Getting the canonical system type