2002-09-24 Alexandre Duret-Lutz <duret_g@epita.fr>
+ * automake.in (read_am_file): Prefix included files with
+ $(top_srcdir) or $(srcdir) in DIST_COMMON. Fixes
+ subdircond2.test, and subdircond3.test on OSF1.
+
* tests/defs.in (SHELL): Set it.
* lib/am/distdir.am (distcleancheck): Mention `in build directory'
{
push (@include_stack, "\$\(top_srcdir\)/$path");
# Distribute any included file.
- my $distname = backname ($relative_dir) . '/' . $path;
- push_dist_common ($distname);
+
+ # Always use the $(top_srcdir) prefix in DIST_COMMON,
+ # otherwise OSF make will implicitely copy the included
+ # file in the build tree during `make distdir' to satisfy
+ # the dependency.
+ # (subdircond2.test and subdircond3.test will fail.)
+ push_dist_common ("\$\(top_srcdir\)/$path");
}
else
{
$path =~ s/\$\(srcdir\)\///;
push (@include_stack, "\$\(srcdir\)/$path");
- push_dist_common ($path);
+ # Always use the $(srcdir) prefix in DIST_COMMON,
+ # otherwise OSF make will implicitely copy the included
+ # file in the build tree during `make distdir' to satisfy
+ # the dependency.
+ # (subdircond2.test and subdircond3.test will fail.)
+ push_dist_common ("\$\(srcdir\)/$path");
$path = $relative_dir . "/" . $path;
}
&read_am_file ($path);