]> Savannah Git Hosting - gnulib.git/commitdiff
perl: require the "warnings" module
authorJim Meyering <meyering@fb.com>
Sun, 12 Jan 2020 02:59:42 +0000 (18:59 -0800)
committerJim Meyering <meyering@fb.com>
Sun, 12 Jan 2020 02:59:42 +0000 (18:59 -0800)
* m4/perl.m4: Also "use warnings", so we reject the perl found
on at least one IRIX 6.5 system. Reported by Bruno Haible in
https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html

ChangeLog
m4/perl.m4

index 1193d2209dd8f939454edf2d440e692f01aa4d79..9d90e3c30c35fe69ae27f4555eb1ea7d92fd077d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-01-11  Jim Meyering  <meyering@fb.com>
+
+       perl: require the "warnings" module
+       * m4/perl.m4: Also "use warnings", so we reject the perl found
+       on at least one IRIX 6.5 system. Reported by Bruno Haible in
+       https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
+
 2020-01-10  Bruno Haible  <bruno@clisp.org>
 
        Fix major regression from 2020-01-04.
index 1bde84c29f9848646a94a42be119365d36f34896..0003fcc0b0c0eedb58d125f139995087fe2d6eb6 100644 (file)
@@ -1,4 +1,4 @@
-# serial 9
+# serial 10
 
 dnl From Jim Meyering.
 dnl Find a new-enough version of Perl.
@@ -29,7 +29,7 @@ AC_DEFUN([gl_PERL],
   for perl in $candidate_perl_names; do
     # Run test in a subshell; some versions of sh will print an error if
     # an executable is not found, even if stderr is redirected.
-    if ( $perl -e 'require 5.005; use File::Compare' ) > /dev/null 2>&1; then
+    if ( $perl -e 'require 5.005; use File::Compare; use warnings;' ) > /dev/null 2>&1; then
       PERL=$perl
       found=yes
       break