]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* automake.in (read_am_file): File computation of path to
authorAlexandre Duret-Lutz <adl@gnu.org>
Thu, 22 Aug 2002 22:57:52 +0000 (22:57 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Thu, 22 Aug 2002 22:57:52 +0000 (22:57 +0000)
included file, when $(top_srcdir) is not used.
* tests/include2.test: Augment.

ChangeLog
automake.in
tests/include2.test

index 4a91a8531bf2ec7521f0d3ec24cdabffcc675277..5b20c7210d536cacc96cf569b67f626420f611b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
+
+       * automake.in (read_am_file): File computation of path to
+       included file, when $(top_srcdir) is not used.
+       * tests/include2.test: Augment.
+
 2002-08-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * automake.in (set_strictness): Never enable 'portability'
index b1497528dbf24a84813bae058d470ea4fff0ef27..757898a48cb96e26bae7d603711df1726672fc86 100755 (executable)
@@ -7527,8 +7527,7 @@ sub read_am_file ($)
              {
                 $path =~ s/\$\(srcdir\)\///;
                 push (@include_stack, "\$\(srcdir\)/$path");
-               push_dist_common (($relative_dir eq '.')
-                                 ? $path : ($relative_dir . '/' . $path));
+               push_dist_common ($path);
                $path = $relative_dir . "/" . $path;
              }
             &read_am_file ($path);
index b04306e39f4aea9fdfc1b5a8e106726079ec4692..3d311278675b1247f706d5e5ea7895f54e687b38 100755 (executable)
@@ -1,33 +1,34 @@
 #! /bin/sh
 
-# Make sure header in parent directory is included.
+# Make sure included files in parent directory are distributed.
 
 . $srcdir/defs || exit 1
 
+set -e
+
 cat >> configure.in << 'END'
 AC_CONFIG_FILES([sub/Makefile])
+AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
 SUBDIRS = sub
+test: distdir
+       test -f $(distdir)/foo
+       test -f $(distdir)/bar
 END
 
 : > foo
+: > bar
 
 mkdir sub
 cat > sub/Makefile.am << 'END'
 include $(top_srcdir)/foo
+include ../bar
 END
 
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-
-# Also make sure include file is distributed.
-(sed -n -e '/^DIST_COMMON =.*\\$/ {
-   :loop
-   p
-   n
-   /\\$/ b loop
-   p
-   n
-   }' -e '/^DIST_COMMON =/ p' sub/Makefile.in | fgrep ../foo)
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+./configure
+$MAKE test