From 917976da22e3e1e424c2de6c1116dcc7876b083d Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 14 Nov 2007 14:20:08 +0100 Subject: [PATCH] Collectd.pm: Check for ithread support. Abort if perl has been compiled without ithread support (i.e. $Config{'useithreads'} is not defined). Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- bindings/perl/Collectd.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/perl/Collectd.pm b/bindings/perl/Collectd.pm index fd5632a4..1d26d207 100644 --- a/bindings/perl/Collectd.pm +++ b/bindings/perl/Collectd.pm @@ -22,6 +22,14 @@ package Collectd; use strict; use warnings; +use Config; + +BEGIN { + if (! $Config{'useithreads'}) { + die "Perl does not support ithreads!"; + } +} + require Exporter; our @ISA = qw( Exporter ); -- 2.30.2