From: Sebastian Harl Date: Thu, 4 Sep 2008 13:55:30 +0000 (+0200) Subject: configure: Get the check for libperl in sync with the way it's used. X-Git-Tag: collectd-4.5.0~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0be8165a5965c73f6d2e6dc56c4cf5be1ef3de0d;p=collectd.git 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 --- 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); ]]),