From 9999d4b6bdefe5ccf54ffda534cd243ea1de89a4 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 31 Mar 2018 17:16:16 +0200 Subject: build: Make PERL_MIN_VERSION also a configure output variable We need to rename the m4 macro to avoid infinite loops. We will need this output variable for the CPAN support. --- m4/dpkg-progs.m4 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/m4/dpkg-progs.m4 b/m4/dpkg-progs.m4 index f5abeefbc..3793fc4fd 100644 --- a/m4/dpkg-progs.m4 +++ b/m4/dpkg-progs.m4 @@ -7,18 +7,19 @@ # Locate perl interpreter in the path AC_DEFUN([DPKG_PROG_PERL], [ AC_ARG_VAR([PERL], [Perl interpreter])dnl - m4_define([PERL_MIN_VERSION], [5.20.2]) - AC_CACHE_CHECK([for perl >= PERL_MIN_VERSION], [ac_cv_path_PERL], [ + m4_define([_PERL_MIN_VERSION], [5.20.2]) + AC_SUBST([PERL_MIN_VERSION], [_PERL_MIN_VERSION]) + AC_CACHE_CHECK([for perl >= _PERL_MIN_VERSION], [ac_cv_path_PERL], [ AC_PATH_PROGS_FEATURE_CHECK([PERL], [perl], [ perlcheck=$(test -x $ac_path_PERL && \ $ac_path_PERL -MConfig -Mversion -e \ - 'my $r = qv("v$Config{version}") >= qv("PERL_MIN_VERSION"); + 'my $r = qv("v$Config{version}") >= qv("_PERL_MIN_VERSION"); print "yes" if $r') AS_IF([test "x$perlcheck" = "xyes"], [ ac_cv_path_PERL=$ac_path_PERL ac_path_PERL_found=: ]) ], [ - AC_MSG_ERROR([cannot find perl >= PERL_MIN_VERSION]) + AC_MSG_ERROR([cannot find perl >= _PERL_MIN_VERSION]) ]) ]) AC_SUBST([PERL], [$ac_cv_path_PERL]) -- cgit v1.2.3