freebsd-ports/devel/automake14/files/patch-aclocal.in
Ade Lovett 1e4e9a3717 Fix missed patch, resulting in aclocal looking for itself in the wrong
place after the upgrade.

Submitted by:	marcus
2004-05-14 16:43:10 +00:00

39 lines
1.3 KiB
Text

--- aclocal.in.orig Thu Jul 25 09:51:42 2002
+++ aclocal.in Fri May 14 09:40:13 2004
@@ -36,3 +36,4 @@
# Note also that the versioned directory is handled later.
-$acdir = "@datadir@/aclocal";
+$acdir = "@datadir@/aclocal14";
+$acdir_x11 = '%%X11BASE%%/share/aclocal';
$default_acdir = $acdir;
@@ -111,2 +112,3 @@
local (@dirlist) = &parse_arguments (@ARGV);
+unshift @dirlist, $acdir_x11 if -d "$acdir_x11/.";
&scan_m4_files (@dirlist);
@@ -200,8 +202,2 @@
- # Search the versioned directory near the end, and then the
- # unversioned directory last. Only do this if the user didn't
- # override acdir.
- push (@dirlist, "$acdir-$APIVERSION")
- if $acdir eq $default_acdir;
-
# By default $(datadir)/aclocal doesn't exist. We don't want to
@@ -296,2 +292,3 @@
+ local (@skipinolist) = ();
local ($m4dir);
@@ -301,3 +298,3 @@
|| die "aclocal: couldn't open directory \`$m4dir': $!\n";
- local ($file, $fullfile, $expr);
+ local ($file, $fullfile, $ino, $expr);
foreach $file (sort grep (! /^\./, readdir (DIR)))
@@ -311,2 +308,8 @@
$fullfile = $m4dir . '/' . $file;
+
+ # Do not scan a file more than once.
+ $ino = (stat($fullfile))[1];
+ next if grep($ino eq $_, @skipinolist);
+ push @skipinolist, $ino;
+
$file_contents{$fullfile} = &scan_file ($fullfile);