automake: skip over not existing m4 macro directories, don't fail
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 10 Dec 2010 16:01:33 +0000 (16:01 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 10 Dec 2010 16:01:33 +0000 (16:01 +0000)
SVN-Revision: 24424

tools/automake/patches/100-aclocal-skip-not-existing-directories.patch [new file with mode: 0644]

diff --git a/tools/automake/patches/100-aclocal-skip-not-existing-directories.patch b/tools/automake/patches/100-aclocal-skip-not-existing-directories.patch
new file mode 100644 (file)
index 0000000..1df3030
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/aclocal.in
++++ b/aclocal.in
+@@ -311,7 +311,8 @@ sub scan_m4_dirs ($@)
+     {
+       if (! opendir (DIR, $m4dir))
+       {
+-        fatal "couldn't open directory `$m4dir': $!";
++        msg ('override', "warning: skipping not existing directory `$m4dir'");
++        next;
+       }
+       # We reverse the directory contents so that foo2.m4 gets