is not empty. This fixes a failure reported by Patrick Welche.
* lib/am/distdir.am: Add note about tar's `-o' option and empty
directories.
+2003-10-25 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * tests/output7.test: Populate sub/ with a dummy file, so that it
+ is not empty. This fixes a failure reported by Patrick Welche.
+ * lib/am/distdir.am: Add note about tar's `-o' option and empty
+ directories.
+
2003-10-24 Didier Cassirame <faded@free.fr> (tiny change)
* lib/ylwrap: Typo in regex.
## Note that we don't use GNU tar's `-z' option. One reason (but not
## the only reason) is that some versions of tar (e.g., OSF1)
## interpret `-z' differently.
+##
+## The -o option of GNU tar used to exclude empty directories. This
+## behavior was fixed in tar 1.12 (released on 1997-04-25). But older
+## versions of tar are still used (for instance NetBSD 1.6.1 ships
+## with tar 1.11.2). We do not do anything specific w.r.t. this
+## incompatibility since packages where empty directories need to be
+## present in the archive are really unusual.
if %?TOPDIR_P%
EOF
cat >mk/sub.am <<'EOF'
+EXTRA_DIST = foo
all-local:
@echo in--sub
EOF
SUBDIRS = mk sub
EOF
+# We have to distribute something in foo, because some versions
+# of tar do not archive empty directories when passed the `o'
+# flags. (This was fixed in GNU tar 1.12, but older
+# versions are still used: NetBSD 1.6.1 ships with tar 1.11.2).
+#
+# If sub/ is missing from the archive, config.status will fail
+# to compute $ac_abs_srcdir during a VPATH build: config.status
+# is able to create sub/ in the build tree, but it assumes the
+# directory already exists in the source tree.
+echo bar > sub/foo
+
$ACLOCAL
$AUTOCONF
$AUTOMAKE