1# See bottom of file for license and copyright information
2package Foswiki::Configure::Checkers::HttpCompress;
3
4use strict;
5use warnings;
6
7use Foswiki::Configure::Checker ();
8our @ISA = ('Foswiki::Configure::Checker');
9
10use Foswiki::Configure::Dependency ();
11
12sub check_current_value {
13    my ($this, $reporter) = @_;
14
15    return unless $Foswiki::cfg{HttpCompress};
16    my %mod = (
17        name => 'Compress::Zlib',
18        usage => 'Used for compressing and decompressing data',
19        minimumVersion => 0
20        );
21    Foswiki::Configure::Dependency::checkPerlModules( \%mod );
22    if (!$mod{ok}) {
23        $reporter->ERROR($mod{check_result});
24    } else {
25        $reporter->NOTE($mod{check_result});
26    }
27}
28
291;
30__END__
31Foswiki - The Free and Open Source Wiki, http://foswiki.org/
32
33Copyright (C) 2008-2010 Foswiki Contributors. Foswiki Contributors
34are listed in the AUTHORS file in the root of this distribution.
35NOTE: Please extend that file, not this notice.
36
37This program is free software; you can redistribute it and/or
38modify it under the terms of the GNU General Public License
39as published by the Free Software Foundation; either version 2
40of the License, or (at your option) any later version. For
41more details read LICENSE in the root of this distribution.
42
43This program is distributed in the hope that it will be useful,
44but WITHOUT ANY WARRANTY; without even the implied warranty of
45MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
46
47As per the GPL, removal of this notice is prohibited.
48