From 0be8165a5965c73f6d2e6dc56c4cf5be1ef3de0d Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 4 Sep 2008 15:55:30 +0200 Subject: [PATCH] configure: Get the check for libperl in sync with the way it's used. * Define PERL_NO_GET_CONTEXT. * Use the API functions without the Perl_ prefix. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- configure.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 040ccda5..d4b98455 100644 --- a/configure.in +++ b/configure.in @@ -1657,13 +1657,14 @@ then AC_LINK_IFELSE( AC_LANG_PROGRAM( [[ +#define PERL_NO_GET_CONTEXT #include #include #include ]], [[ - PerlInterpreter *perl = NULL; - Perl_load_module (perl, PERL_LOADMOD_NOIMPORT, + dTHX; + load_module (PERL_LOADMOD_NOIMPORT, newSVpv ("Collectd::Plugin::FooBar", 24), Nullsv); ]]), -- 2.11.0