2004-10-12 Alexandre Duret-Lutz <adl@gnu.org>
+ * configure.ac: Export @am_AUTOCONF@.
+ * tests/defs.in (AUTOCONF): Define as @am_AUTOCONF@, not @AUTOCONF@,
+ so the test suite runs `autoconf' and not `missing --run autoconf'.
+ * tests/missing.test, tests/missing2.test: Arrange for missing
+ to be used in front of autoconf even if the user has exported
+ AUTOCONF. This fixes two spurious failures reported by
+ Mark D. Baushke.
+
* lib/compile: Handle output.obj in addition to output.o.
* tests/compile.test: Check for this.
TEX = @TEX@
VERSION = @VERSION@
ac_ct_STRIP = @ac_ct_STRIP@
+am_AUTOCONF = @am_AUTOCONF@
am__leading_dot = @am__leading_dot@
am__tar = @am__tar@
am__untar = @am__untar@
PACKAGE_BUGREPORT='bug-automake@gnu.org'
ac_unique_file="automake.in"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar APIVERSION pkgvdatadir PERL TEX LN MODIFICATION_DELAY GREP EGREP FGREP LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os am_AUTOCONF INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar APIVERSION pkgvdatadir PERL TEX LN MODIFICATION_DELAY GREP EGREP FGREP LIBOBJS LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
-# Save the AUTOCONF setting before AM_INIT_AUTOMAKE overrides it;
-# this way we can run Autoconf tests from configure without being
-# bothered by `missing'.
-am_AUTOCONF=${AUTOCONF-autoconf}
+# Save the AUTOCONF setting before AM_INIT_AUTOMAKE overrides it; this
+# way we can run Autoconf tests from configure (or from the test
+# suite) without being bothered by `missing'.
+am_AUTOCONF="${AUTOCONF-autoconf}"
+
am__api_version="1.9a"
# Find a good install program. We prefer a C program (faster),
s,@build_cpu@,$build_cpu,;t t
s,@build_vendor@,$build_vendor,;t t
s,@build_os@,$build_os,;t t
+s,@am_AUTOCONF@,$am_AUTOCONF,;t t
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
AC_CANONICAL_BUILD
-# Save the AUTOCONF setting before AM_INIT_AUTOMAKE overrides it;
-# this way we can run Autoconf tests from configure without being
-# bothered by `missing'.
-am_AUTOCONF=${AUTOCONF-autoconf}
+# Save the AUTOCONF setting before AM_INIT_AUTOMAKE overrides it; this
+# way we can run Autoconf tests from configure (or from the test
+# suite) without being bothered by `missing'.
+AC_SUBST([am_AUTOCONF], ["${AUTOCONF-autoconf}"])
AM_INIT_AUTOMAKE([1.8a dist-bzip2 filename-length-max=99])
TEX = @TEX@
VERSION = @VERSION@
ac_ct_STRIP = @ac_ct_STRIP@
+am_AUTOCONF = @am_AUTOCONF@
am__leading_dot = @am__leading_dot@
am__tar = @am__tar@
am__untar = @am__untar@
TEX = @TEX@
VERSION = @VERSION@
ac_ct_STRIP = @ac_ct_STRIP@
+am_AUTOCONF = @am_AUTOCONF@
am__leading_dot = @am__leading_dot@
am__tar = @am__tar@
am__untar = @am__untar@
TEX = @TEX@
VERSION = @VERSION@
ac_ct_STRIP = @ac_ct_STRIP@
+am_AUTOCONF = @am_AUTOCONF@
am__leading_dot = @am__leading_dot@
am__tar = @am__tar@
am__untar = @am__untar@
TEX = @TEX@
VERSION = @VERSION@
ac_ct_STRIP = @ac_ct_STRIP@
+am_AUTOCONF = @am_AUTOCONF@
am__leading_dot = @am__leading_dot@
am__tar = @am__tar@
am__untar = @am__untar@
TEX = @TEX@
VERSION = @VERSION@
ac_ct_STRIP = @ac_ct_STRIP@
+am_AUTOCONF = @am_AUTOCONF@
am__leading_dot = @am__leading_dot@
am__tar = @am__tar@
am__untar = @am__untar@
TEX = @TEX@
VERSION = @VERSION@
ac_ct_STRIP = @ac_ct_STRIP@
+am_AUTOCONF = @am_AUTOCONF@
am__leading_dot = @am__leading_dot@
am__tar = @am__tar@
am__untar = @am__untar@
TEX = @TEX@
VERSION = @VERSION@
ac_ct_STRIP = @ac_ct_STRIP@
+am_AUTOCONF = @am_AUTOCONF@
am__leading_dot = @am__leading_dot@
am__tar = @am__tar@
am__untar = @am__untar@
# User can override various tools used.
test -z "$PERL" && PERL='@PERL@'
test -z "$MAKE" && MAKE=make
-test -z "$AUTOCONF" && AUTOCONF="@AUTOCONF@"
+test -z "$AUTOCONF" && AUTOCONF="@am_AUTOCONF@"
test -z "$AUTOHEADER" && AUTOHEADER="@AUTOHEADER@"
test -z "$AUTOUPDATE" && AUTOUPDATE=autoupdate
test -z "$MISSING" && MISSING=`pwd`/../lib/missing
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE --add-missing
-./configure
+
+# Make sure we do use missing, even if the user exported AUTOCONF.
+# (We cannot export this new value, because it would be used by Automake
+# when tracing, and missing is no good for this.)
+MYAUTOCONF="`pwd`/missing --run $AUTOCONF"
+unset AUTOCONF
+
+./configure AUTOCONF="$MYAUTOCONF"
$MAKE
$sleep
# Hopefully the install version of Autoconf cannot compete with this one...
# Run again, but without missing, to ensure that timestamps were updated.
export AUTOMAKE ACLOCAL
-./configure
+./configure AUTOCONF="$MYAUTOCONF"
$MAKE
-# Make sure $MAKE fail when timestamps aren't updated and missing is not used.
+# Make sure $MAKE fails when timestamps aren't updated and missing is not used.
$sleep
touch aclocal.m4
$MAKE && exit 1
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE --add-missing
-./configure
+
+# See missing.test for explanations about this.
+MYAUTOCONF="`pwd`/missing --run $AUTOCONF"
+unset AUTOCONF
+
+./configure AUTOCONF="$MYAUTOCONF"
+
$MAKE
$sleep
# Hopefully the install version of Autoconf cannot compete with this one...
# Run again, but without missing, to ensure that timestamps were updated.
export AUTOMAKE ACLOCAL
-./configure
+./configure AUTOCONF="$MYAUTOCONF"
$MAKE
# Make sure $MAKE fail when timestamps aren't updated and missing is not used.