From d6276889a04a5502c1f9d80ffc9f0ae5f7b628e0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 21 May 2022 16:55:53 -0700 Subject: [PATCH 1/2] build: be more careful about Perl Problem reported by Serge Belyshev for Coreutils (Bug#52844). I observed the same problem with current Grep on Fedora 35 without Perl installed. * configure.ac (HAVE_PERL): Rely on latest Gnulib gl_PERL, which sets gl_cv_prog_perl. --- configure.ac | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index c85651c..5941b88 100644 --- a/configure.ac +++ b/configure.ac @@ -68,11 +68,7 @@ gl_INIT AC_DEFINE([GNULIB_NO_VLA], [1], [Define to 1 to disable use of VLAs]) # The test suite needs to know if we have a working perl. -# FIXME: this is suboptimal. Ideally, we would be able to call gl_PERL -# with an ACTION-IF-NOT-FOUND argument ... -cu_have_perl=yes -case $PERL in *"/missing "*) cu_have_perl=no;; esac -AM_CONDITIONAL([HAVE_PERL], [test $cu_have_perl = yes]) +AM_CONDITIONAL([HAVE_PERL], [test "$gl_cv_prog_perl" != no]) # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found]) # ------------------------------------------------ -- 2.34.1