have a Makefile. Fixes depdist.test.
* tests/Makefile.am (XFAIL_TESTS): Removed depdist.test.
* tests/depdist.test: Look for config/depcomp.
* tests/Makefile.am (TESTS): Added depdist.test.
(XFAIL_TESTS): Likewise.
* tests/depdist.test: New file. From Eric Magnien.
2001-07-21 Tom Tromey <tromey@redhat.com>
+ * automake.in (handle_dist): Handle case where aux dir doesn't
+ have a Makefile. Fixes depdist.test.
+ * tests/Makefile.am (XFAIL_TESTS): Removed depdist.test.
+ * tests/depdist.test: Look for config/depcomp.
+
+ * tests/Makefile.am (TESTS): Added depdist.test.
+ (XFAIL_TESTS): Likewise.
+ * tests/depdist.test: New file. From Eric Magnien.
+
* tests/ccnoco.test: Removed `configure.2' test; in autocon 2.50
AC_PROG_CC_C_O does require AC_PROG_CC.
return if $cygnus_mode;
# Look for common files that should be included in distribution.
+ # If the aux dir is set, and it does not have a Makefile.am, then
+ # we check for these files there as well.
+ my $check_aux = 0;
+ my $auxdir = '';
+ if ($relative_dir eq '.'
+ && $config_aux_dir_set_in_configure_in)
+ {
+ ($auxdir = $config_aux_dir) =~ s,^\$\(top_srcdir\)/,,;
+ if (! &is_make_dir ($auxdir))
+ {
+ $check_aux = 1;
+ }
+ }
foreach my $cfile (@common_files)
{
if (-f ($relative_dir . "/" . $cfile))
{
&push_dist_common ($cfile);
}
+
+ # Don't use `elsif' here because a file might meaningfully
+ # appear in both directories.
+ if ($check_aux && -f ($auxdir . '/' . $cfile))
+ {
+ &push_dist_common ($auxdir . '/' . $cfile);
+ }
}
# We might copy elements from $configure_dist_common to
depacl2.test \
depcomp.test \
depcomp2.test \
+depdist.test \
depend.test \
depend2.test \
depend3.test \
depacl2.test \
depcomp.test \
depcomp2.test \
+depdist.test \
depend.test \
depend2.test \
depend3.test \
--- /dev/null
+#! /bin/sh
+
+# Make sure depcomp is found for the distribution.
+# From Eric Magnien.
+
+. $srcdir/defs || exit 1
+
+rm -f configure.in
+
+mkdir config
+for i in *; do
+ if test $i != "config"; then
+ mv $i config
+ fi
+done
+
+cat > configure.in << 'END'
+AC_INIT(subdir/foo.c)
+AC_CONFIG_AUX_DIR(config)
+AM_INIT_AUTOMAKE(nonesuch, nonesuch)
+AC_PROG_CC
+AC_OUTPUT(subdir/Makefile Makefile)
+END
+
+cat > Makefile.am << 'END'
+SUBDIRS = subdir
+END
+
+mkdir subdir
+: > subdir/foo.c
+
+cat > subdir/Makefile.am << 'END'
+bin_PROGRAMS = foo
+foo_SOURCES = foo.c
+END
+
+set -e
+
+$ACLOCAL
+$AUTOMAKE --add-missing
+$AUTOCONF
+grep config/depcomp Makefile.in