[Gc] Minor Autotools-related fixes

Petter Urkedal urkedal at nbi.dk
Sat May 16 09:24:31 PDT 2009


Issue 1.  This fixes a warning from aclocal on newer Automake versions
(mine is 1.10.2):

diff --git a/acinclude.m4 b/acinclude.m4
index 72602a0..97255c8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -17,7 +17,7 @@
 # [0-9]+[.][0-9]+(alpha[0.9]+)? 
 # in lex syntax; if there is no alpha number, GC_ALPHA_VERSION is empty
 #
-AC_DEFUN(GC_SET_VERSION, [
+AC_DEFUN([GC_SET_VERSION], [
   AC_MSG_CHECKING(GC version numbers)
   GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([[0-9]][[0-9]]*\)[[.]].*$/\1/g'`
   GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[[^.]]*[[.]]\([[0-9]][[0-9]]*\).*$/\1/g'`

Issue 2.  The libtool.m4 file in the repo is outdated and also creates
warnings.  My suggestion is to remove this file from the repo, since
current version of libtoolize (mine is 1.5.26) does not install it into
the project directory.  That is, we assume that developers who want to
regenerate configure, have Libtool in addition to Automake and Autoconf.

The Autoconf-version selection in autogen.sh can then be updated:

diff --git a/autogen.sh b/autogen.sh
index afbfc55..b3156c9 100644
--- a/autogen.sh
+++ b/autogen.sh
@@ -5,7 +5,7 @@ set -e
 # These version are ok, pre-1.7 is not.  Post 1.7 may produce a lot of
 # warnings for unrelated projects, so prefer 1.7 for now.
 am_version=
-for v in 1.7 1.9 1.8; do
+for v in 1.10 1.9 1.8 1.7; do
     if type -p &>/dev/null automake-$v; then
        am_version="-$v"
        break

Alternatively, we can remove autogen.sh and suggest that developers
instead use "autoreconf -vif" which mostly does the same job, except
that we no longer try to pick certain versions.


More information about the Gc mailing list