+2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ Fix Autoconf version required by Automake's configure.
+ Automake configure script used to tell that automake required
+ autoconf 2.60 or later, but then it checked for autoconf >= 2.62,
+ and if that was not found, it gave an error saying that Automake
+ required configure 2.61a-341 or later. This change should
+ eliminate such inconsistencies.
+ * configure.ac ($required_autoconf_version): New variable.
+ Use it throughout.
+
2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Fix unportable sed script in maintainer-check test.
# following tests, but some users were unable to figure out that their
# installation was broken since --version appeared to work.
+required_autoconf_version=2.62
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoconf is installed" >&5
$as_echo_n "checking whether autoconf is installed... " >&6; }
if test "${am_cv_autoconf_installed+set}" = set; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_autoconf_installed" >&5
$as_echo "$am_cv_autoconf_installed" >&6; }
if test "$am_cv_autoconf_installed" = no; then
- as_fn_error "Autoconf 2.60 or better is required.
+ as_fn_error "Autoconf $required_autoconf_version or better is required.
Please make sure it is installed and in your PATH." "$LINENO" 5
fi
$as_echo_n "(cached) " >&6
else
mkdir conftest
-echo 'AC''_PREREQ([2.62])' > conftest/conftest.ac
+echo 'AC'"_PREREQ([$required_autoconf_version])" > conftest/conftest.ac
if { echo "$as_me:$LINENO: cd conftest && eval $am_AUTOCONF -o /dev/null conftest.ac" >&5
(cd conftest && eval $am_AUTOCONF -o /dev/null conftest.ac) >&5 2>&5
ac_status=$?
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_autoconf_version" >&5
$as_echo "$am_cv_autoconf_version" >&6; }
if test "$am_cv_autoconf_version" = no; then
- as_fn_error "Autoconf 2.61a-341 or better is required." "$LINENO" 5
+ as_fn_error "Autoconf $required_autoconf_version or better is required." "$LINENO" 5
fi
# Test for ln. We need use it to install the versioned binaries.
# Process this file with autoconf to produce a configure script.
# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
-# 2004, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+# 2004, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# following tests, but some users were unable to figure out that their
# installation was broken since --version appeared to work.
+required_autoconf_version=2.62
AC_CACHE_CHECK([whether autoconf is installed], [am_cv_autoconf_installed],
[if AM_RUN_LOG([eval $am_AUTOCONF --version]);
then
am_cv_autoconf_installed=no
fi])
if test "$am_cv_autoconf_installed" = no; then
- AC_MSG_ERROR([Autoconf 2.60 or better is required.
+ AC_MSG_ERROR([Autoconf $required_autoconf_version or better is required.
Please make sure it is installed and in your PATH.])
fi
AC_CACHE_CHECK([whether autoconf is recent enough], [am_cv_autoconf_version],
[mkdir conftest
-echo 'AC''_PREREQ([[2.62]])' > conftest/conftest.ac
+dnl Creative quoting required to avoid spurious expansion of AC_PREREQ macro
+echo 'AC'"_PREREQ([[$required_autoconf_version]])" > conftest/conftest.ac
if AM_RUN_LOG([cd conftest && eval $am_AUTOCONF -o /dev/null conftest.ac]);
then
am_cv_autoconf_version=yes
fi
rm -rf conftest])
if test "$am_cv_autoconf_version" = no; then
- AC_MSG_ERROR([Autoconf 2.61a-341 or better is required.])
+ AC_MSG_ERROR([Autoconf $required_autoconf_version or better is required.])
fi
# Test for ln. We need use it to install the versioned binaries.