From: Ruben Kerkhof Date: Sat, 13 Aug 2016 09:13:13 +0000 (+0200) Subject: configure.ac: check for ExtUtils::MakeMaker X-Git-Tag: collectd-5.6.0~50 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=20f17fde07f125cf84c2019177fc52c5cf608d85;p=collectd.git configure.ac: check for ExtUtils::MakeMaker The perl bindings need this module so perl can generate Makefile.pl. Fixes #1886 --- diff --git a/configure.ac b/configure.ac index 8dda7104..2d4c6810 100644 --- a/configure.ac +++ b/configure.ac @@ -6314,6 +6314,18 @@ AC_ARG_WITH(perl-bindings, [AS_HELP_STRING([--with-perl-bindings@<:@=OPTIONS@:>@ with_perl_bindings="no (no perl interpreter found)" fi ]) + +if test "x$with_perl_bindings" = "xyes" +then + AC_MSG_CHECKING([for the ExtUtils::MakeMaker module]) + if $PERL -MExtUtils::MakeMaker -e '' 2>/dev/null; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + with_perl_bindings="no (ExtUtils::MakeMaker not found)" + fi +fi + if test "x$with_perl_bindings" = "xyes" then PERL_BINDINGS="perl"