# to use the setup at home, simply add to httpd.conf:
# SetEnv SWISH_BINARY_PATH /usr/local/bin/swish-e
# adjust to the real path

# on daedalus (the production server) we cannot modify the config file
# so we do it here
BEGIN {
    require Sys::Hostname;
    my $hostname = Sys::Hostname::hostname();

    if ($hostname && $hostname eq 'daedalus.apache.org') {
        $ENV{SWISH_BINARY_PATH} = "/home/stas/bin/swish-e";

        unshift @INC,
            qw(
               /home/stas/lib/perl5/5.00503
               /home/stas/lib/perl5/site_perl/5.005
               /home/stas/lib/perl5/site_perl/
               /home/stas/lib/perl5/site_perl/
               /home/stas/lib/perl5/
              );

    }
}

1;
