diff options
author | Guillem Jover <guillem@debian.org> | 2018-03-31 17:16:16 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-05-03 01:43:17 +0200 |
commit | 9999d4b6bdefe5ccf54ffda534cd243ea1de89a4 (patch) | |
tree | bca9a59a76e4f964033b4da8cc18e138e4fdc90b /m4 | |
parent | 5cc92fcf27b65c069a7e21da491debb0afa692a4 (diff) | |
download | dpkg-9999d4b6bdefe5ccf54ffda534cd243ea1de89a4.tar.gz |
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.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/dpkg-progs.m4 | 9 |
1 files 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]) |