+2001-11-09 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * lib/am/distdir.am (distdir): Also look for directory in build
+ directory first. (See 2001-05-14.)
+ * tests/Makefile.am (TESTS): Add extra5.test.
+ * tests/extra5.test: New file.
+ From Dean Povey.
+
2001-11-09 Alexandre Duret-Lutz <duret_g@epita.fr>
Fix for distcommon2.test:
are no longer shipped, since Autoconf 2.52 provides them (both as AM_
and AC_).
* `#line' of Lex and Yacc files are properly set.
+* EXTRA_DIST can contain generated directories.
* Fixed CDPATH portability problems, in particular for MacOS X.
* Fixed handling of nobase_ targets.
* Fixed support of implicit rules leading to .lo objects.
Dave Morrison dave@bnl.gov
David A. Swierczek swiercze@mr.med.ge.com
David Zaroski cz253@cleveland.Freenet.Edu
+Dean Povey dpovey@wedgetail.com
Derek R. Price derek.price@openavenue.com
Dieter Baron dillo@stieltjes.smc.univie.ac.at
Dmitry Mikhin dmitrym@acres.com.au
##
## Always look for the file in the build directory first. That way
## for something like yacc output we will correctly pick up the latest
-## version.
+## version. Also check for directories in the build directory first,
+## so one can ship generated directories.
##
- if test -f $$file; then d=.; else d=$(srcdir); fi; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
##
## Make the subdirectory for the file. This is going to make `dist'
## really crawl, but it seems like the only way to do it, given that
extra.test \
extra3.test \
extra4.test \
+extra5.test \
flibs.test \
fnoc.test \
fo.test \
extra.test \
extra3.test \
extra4.test \
+extra5.test \
flibs.test \
fnoc.test \
fo.test \
distdir: $(DISTFILES)
@for file in $(DISTFILES); do \
- if test -f $$file; then d=.; else d=$(srcdir); fi; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
$(mkinstalldirs) "$(distdir)/$$dir"; \
--- /dev/null
+#! /bin/sh
+
+# Check to make sure EXTRA_DIST can contain a directory from $buildir.
+# From Dean Povey.
+
+. $srcdir/defs || exit 1
+
+echo AC_OUTPUT >> configure.in
+
+cat > Makefile.am << 'END'
+EXTRA_DIST=foo
+
+foo:
+ mkdir foo
+ touch foo/bar
+END
+
+set -e
+
+$ACLOCAL
+$AUTOMAKE
+$AUTOCONF
+mkdir build
+cd build
+../configure
+make distdir