From 6b9d15b8bcb3c009374ccb21dc2c2be2333133d7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 11 Jan 2020 18:59:42 -0800 Subject: [PATCH] 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 --- ChangeLog | 7 +++++++ m4/perl.m4 | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1193d2209d..9d90e3c30c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2020-01-11 Jim Meyering + + 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 Fix major regression from 2020-01-04. diff --git a/m4/perl.m4 b/m4/perl.m4 index 1bde84c29f..0003fcc0b0 100644 --- a/m4/perl.m4 +++ b/m4/perl.m4 @@ -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 -- 2.39.5