use strict;
use Config;
eval 'use ExtUtils::MakeMaker::Coverage';
require 5.005;
# create a typemap for Perl 5.6
if ($] < 5.008) {
print TYPEMAP "const char *\t\tT_PV\n";
close(TYPEMAP);
}
# create a lib/ dir in order to avoid warnings in Test::Distribution
mkdir "lib", 0755;
# virtual paths given to EU::MM
# detect when to use Win32::EvenLog
my (@extra_params, @extra_prereqs);
my $use_eventlog = eval "use Win32::EventLog; 1";
if ($use_eventlog) {
print " * Win32::EventLog detected.\n";
my $name = "PerlLog";
push @extra_prereqs,
# recreate the DLL from its uuencoded form if it's not here
# read the uuencoded data
or die "fatal: Can't read file '$name\_dll.uu': $!";
close(UU);
# write the DLL
or die "fatal: Can't write DLL '$name.dll': $!";
binmode(DLL);
close(DLL);
}
}
elsif ($^O =~ /Win32/) {
print <<"NOTICE"
*** You're running on a Win32 system, but you lack the Win32::EventLog\a
}
# detect when being built in Perl core
if (grep { $_ eq 'PERL_CORE=1' } @ARGV) {
push @extra_params,
MAN3PODS => {}; # Pods will be built by installman.
}
else {
push @extra_params,
DEFINE => '-DUSE_PPPORT_H';
}
# on pre-5.6 Perls, add warnings::compat to the prereq modules
NAME => 'Sys::Syslog',
LICENSE => 'perl',
AUTHOR => 'Sebastien Aperghis-Tramoni <sebastien@aperghis.net>',
VERSION_FROM => 'Syslog.pm',
ABSTRACT_FROM => 'Syslog.pm',
INSTALLDIRS => 'perl',
XSPROTOARG => '-noprototypes',
PM => \%virtual_path,
PREREQ_PM => {
# run prereqs
'Carp' => 0,
'Fcntl' => 0,
'File::Basename' => 0,
'File::Spec' => 0,
'POSIX' => 0,
'Socket' => 0,
'XSLoader' => 0,
'Test::More' => 0,
},
PL_FILES => {},
.'PerlLog.h typemap *.bak *.bin *.rc win32/PerlLog_dll' },
);
# find a default value for _PATH_LOG
my $_PATH_LOG;
# permissions.
}
# Mac OS X puts it at a different path.
}
}
}
else {
$_PATH_LOG = "";
}
# if possible, generate the code that handles the constants with
# ExtUtils::Constant, otherwise use cached copy in fallback/
my @levels = qw(
);
my @facilities = (
# standard facilities
qw(
),
# Mac OS X specific facilities
# modern BSD specific facilities
# IRIX specific facilities
);
my @options = qw(
);
my @others_macros = (
qw(LOG_FACMASK),
);
NAME => 'Sys::Syslog',
);
close(MACROS);
}
else {
}
}