Code

configure: Get the check for libperl in sync with the way it's used.
authorSebastian Harl <sh@tokkee.org>
Thu, 4 Sep 2008 13:55:30 +0000 (15:55 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Fri, 5 Sep 2008 07:58:18 +0000 (09:58 +0200)
 * Define PERL_NO_GET_CONTEXT.
 * Use the API functions without the Perl_ prefix.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
configure.in

index 040ccda500c199bec002005d8b7987764ea008af..d4b9845537d1b280667711fa36fcaf8312cd89fd 100644 (file)
@@ -1657,13 +1657,14 @@ then
     AC_LINK_IFELSE(
       AC_LANG_PROGRAM(
       [[
+#define PERL_NO_GET_CONTEXT
 #include <EXTERN.h>
 #include <perl.h>
 #include <XSUB.h>
       ]],
       [[
-       PerlInterpreter *perl = NULL;
-       Perl_load_module (perl, PERL_LOADMOD_NOIMPORT,
+       dTHX;
+       load_module (PERL_LOADMOD_NOIMPORT,
                         newSVpv ("Collectd::Plugin::FooBar", 24),
                         Nullsv);
       ]]),