2006-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * tests/gettext.test: AM_PROG_GETTEXT of gettext >= 0.14.3
+ requires `config.rpath' to be present, and automake now enforces
+ this. Test this, but only if the gettext installation works and
+ is recent enough to provide this diagnosis.
+ * tests/gettext.test: Provide a dummy `config.rpath' for all
+ subsequent checks.
+ * tests/gettext2.test, tests/subcond.test: Likewise.
+
* tests/pr401.test: Replace "perl -i" with sed and mv, for
MinGW perl.
* tests/pr401b.test, tests/pr401c.test, tests/python11.test,
#! /bin/sh
-# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
cat >>configure.in <<END
AM_GNU_GETTEXT
+AM_GNU_GETTEXT_VERSION([0.14.3])
AC_OUTPUT
END
: >Makefile.am
mkdir po intl
+# config.rpath is required by versions >= 0.14.3. We try to verify
+# this requirement, but only when we find we have a working and recent
+# gettext installation.
+
+# If aclocal fails here, it may be that gettext is too old to
+# provide AM_GNU_GETTEXT_VERSION.
+if $ACLOCAL; then
+
+ # autopoint will fail if it's from an older version.
+ # If gettext is too old to provide autopoint, this will
+ # fail as well, so we're safe here.
+ if autopoint -n; then
+ AUTOMAKE_fails --add-missing
+ grep 'required.*config.rpath' stderr
+ fi
+fi
+
+: >config.rpath
+sed '/AM_GNU_GETTEXT_VERSION/d' configure.in >configure.int
+mv -f configure.int configure.in
+
$ACLOCAL
# po/ and intl/ are required
#! /bin/sh
-# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
+# config.rpath is required.
+: >config.rpath
+
# po/ is required, but intl/ isn't.
AUTOMAKE_fails --add-missing
#! /bin/sh
-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
END
mkdir po intl
+: >config.rpath
cat > Makefile.am << 'END'
if MAUDE