+2001-05-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * automake.in ($pkgdata_dir): New.
+ (&require_file_internal): Use it.
+
2001-05-03 Akim Demaille <akim@epita.fr>
Case insensitive FS choke on Automake/ vs automake.
my $PACKAGE = "@PACKAGE@";
my $prefix = "@prefix@";
my $am_dir = "@datadir@/@PACKAGE@/am";
+my $pkgdata_dir = "@datadir@/@PACKAGE@";
# String constants.
my $IGNORE_PATTERN = '^##([^#].*)?$';
$suppress = 0;
$trailer = "; cannot run `libtoolize': $!";
}
- elsif (-f ($am_dir . '/' . $file))
+ elsif (-f ("$pkgdata_dir/$file"))
{
# Install the missing file. Symlink if we
# can, copy if we must. Note: delete the file
unlink ($errfile) if -f $errfile;
if ($symlink_exists && ! $copy_missing)
{
- if (! symlink ($am_dir . '/' . $file, $errfile))
+ if (! symlink ("$pkgdata_dir/$file", $errfile))
{
$suppress = 0;
$trailer = "; error while making link: $!";
}
}
- elsif (system ('cp', $am_dir . '/' . $file, $errfile))
+ elsif (system ('cp', "$pkgdata_dir/$file", $errfile))
{
$suppress = 0;
$trailer = "\n error while copying";