summaryrefslogtreecommitdiff
path: root/tools/automake
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-20 15:19:22 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-20 15:19:22 +0000
commit122069cabaca3992da6cb97afd91a291970c00b8 (patch)
tree36dea1ce43a6f7ed52e6d83d46c3039a8f82cc75 /tools/automake
parentfccdc995da93d2bcfe5683dd24e2abdf171007ba (diff)
downloadmtk-20170518-122069cabaca3992da6cb97afd91a291970c00b8.zip
mtk-20170518-122069cabaca3992da6cb97afd91a291970c00b8.tar.gz
mtk-20170518-122069cabaca3992da6cb97afd91a291970c00b8.tar.bz2
automake: further relocation fixes
SVN-Revision: 29828
Diffstat (limited to 'tools/automake')
-rw-r--r--tools/automake/patches/000-relocatable.patch11
-rw-r--r--tools/automake/patches/100-aclocal-skip-not-existing-directories.patch2
2 files changed, 12 insertions, 1 deletions
diff --git a/tools/automake/patches/000-relocatable.patch b/tools/automake/patches/000-relocatable.patch
index 36a56c0..3255b97 100644
--- a/tools/automake/patches/000-relocatable.patch
+++ b/tools/automake/patches/000-relocatable.patch
@@ -10,6 +10,17 @@
unshift @INC, (split '@PATH_SEPARATOR@', $perllibdir);
}
+@@ -57,8 +58,8 @@ $perl_threads = 0;
+ # @system_includes can be augmented with the `dirlist' file. Also
+ # --acdir will reset both @automake_includes and @system_includes.
+ my @user_includes = ();
+-my @automake_includes = ("@datadir@/aclocal-$APIVERSION");
+-my @system_includes = ('@datadir@/aclocal');
++my @automake_includes = ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . "/../host/share/aclocal-$APIVERSION" : "@datadir@/aclocal-$APIVERSION");
++my @system_includes = ($ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/aclocal' : '@datadir@/aclocal');
+
+ # Whether we should copy M4 file in $user_includes[0].
+ my $install = 0;
--- a/automake.in
+++ b/automake.in
@@ -31,7 +31,8 @@ package Language;
diff --git a/tools/automake/patches/100-aclocal-skip-not-existing-directories.patch b/tools/automake/patches/100-aclocal-skip-not-existing-directories.patch
index c049b83..cc1f49d 100644
--- a/tools/automake/patches/100-aclocal-skip-not-existing-directories.patch
+++ b/tools/automake/patches/100-aclocal-skip-not-existing-directories.patch
@@ -1,6 +1,6 @@
--- a/aclocal.in
+++ b/aclocal.in
-@@ -309,6 +309,12 @@ sub scan_m4_dirs ($@)
+@@ -310,6 +310,12 @@ sub scan_m4_dirs ($@)
foreach my $m4dir (@dirlist)
{