2002-01-18 Tom Tromey <tromey@redhat.com>
+ * configure.in (APIVERSION): Refined definition.
+
+2002-01-18 Tom Tromey <tromey@redhat.com>
+
* missing: Updated.
* lib/missing: Accept versioned aclocal.
* m4/init.m4 (AM_INIT_AUTOMAKE): Look for versioned aclocal.
# Some tools Automake needs.
AC_REQUIRE([AM_SANITY_CHECK])dnl
AC_REQUIRE([AC_ARG_PROGRAM])dnl
-AM_MISSING_PROG(ACLOCAL, aclocal)
+AM_MISSING_PROG(ACLOCAL, "aclocal-${am__api_version}")
AM_MISSING_PROG(AUTOCONF, autoconf)
AM_MISSING_PROG(AUTOMAKE, "automake-${am__api_version}")
AM_MISSING_PROG(AUTOHEADER, autoheader)
# ----------------------------
# Automake X.Y traces this macro to ensure aclocal.m4 has been
# generated from the m4 files accompanying Automake X.Y.
-AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.5c"])
+AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version=""])
# AM_SET_CURRENT_AUTOMAKE_VERSION
# -------------------------------
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
-am__api_version="1.5c"
+am__api_version=""
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
# Some tools Automake needs.
-ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
+ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
# The API version is the base version. We must guarantee
# compatibility for all releases with the same API version.
-APIVERSION=`echo "$VERSION" | sed -e 's/^\([0-9]*\.[0-9]*\).*$/\1/'`
+# Our current rule is that:
+# * All releases, including the prereleases, in an X.Y series
+# are compatible. So 1.5.1c is compatible with 1.5.
+# * Prereleases on the trunk are all incompatible -- 1.5b and 1.5c
+# aren't the same.
+APIVERSION=`echo "$VERSION" | sed -e 's/^\([0-9]*\.[0-9]*[a-z]?\).*$/\1/'`
# A versioned directory, defined here for convenience.
# The API version is the base version. We must guarantee
# compatibility for all releases with the same API version.
-APIVERSION=`echo "$VERSION" | sed -e 's/^\([[0-9]]*\.[[0-9]]*\).*$/\1/'`
+# Our current rule is that:
+# * All releases, including the prereleases, in an X.Y series
+# are compatible. So 1.5.1c is compatible with 1.5.
+# * Prereleases on the trunk are all incompatible -- 1.5b and 1.5c
+# aren't the same.
+APIVERSION=`echo "$VERSION" | sed -e 's/^\([[0-9]]*\.[[0-9]]*[[a-z]]?\).*$/\1/'`
AC_SUBST(APIVERSION)
# A versioned directory, defined here for convenience.