tools/automake: move file requirements to higher strictness
[openwrt/staging/stintel.git] / tools / automake / patches / 101-do-not-require-files.patch
diff --git a/tools/automake/patches/101-do-not-require-files.patch b/tools/automake/patches/101-do-not-require-files.patch
new file mode 100644 (file)
index 0000000..3a8c9fc
--- /dev/null
@@ -0,0 +1,29 @@
+--- a/bin/automake.in
++++ b/bin/automake.in
+@@ -4513,7 +4513,7 @@ sub handle_gettext ()
+           && grep ($_ eq 'intl', @subdirs));
+     }
+-  require_file ($ac_gettext_location, GNU, 'ABOUT-NLS');
++  require_file ($ac_gettext_location, GNITS, 'ABOUT-NLS');
+ }
+ # Emit makefile footer.
+@@ -5641,7 +5641,7 @@ sub check_gnu_standards ()
+           # otherwise require non-.md.
+           my $required
+            = (! -f $file && -f "$file.md") ? "$file.md" : $file;
+-          require_file ("$am_file.am", GNU, $required);
++          require_file ("$am_file.am", GNITS, $required);
+         }
+       # Accept one of these three licenses; default to COPYING.
+@@ -5655,7 +5655,7 @@ sub check_gnu_standards ()
+             last;
+           }
+       }
+-      require_file ("$am_file.am", GNU, 'COPYING')
++      require_file ("$am_file.am", GNITS, 'COPYING')
+       unless $license;
+     }