use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. my $check0 = 0; my $check1 = 0; my $now = time; my $then = (stat('./Makefile.old'))[9]; # set number of seconds to view my $view = $then +86400 < $now ? 5:0; my $pv = sprintf "%vd", $^V; unless ($pv lt '5.8.0' || $pv gt '5.8.5') { print qq( ################################################################# ######################### WARNING ############################### # # # YOUR VERSION OF PERL = $pv HAS SERIOUS BUGS # # # # Early versions of perl 5.8.x contain bugs that cause certain # # \@_ operations to fail. See perl bug [ 23429] # # Please upgrade to at least perl 5.8.6 # # # ################################################################# ); sleep $view if $view; } unless (grep { m/-noxs/ } @ARGV) { print q{ This build requires a C compiler by default except on Windows where the Pure Perl version is mandatory. The Pure Perl version, which does not require compilation of XS code, can be used by invoking this as: perl Makefile.PL -noxs }; sleep $view if $view; } sleep $view if $view && ($check0 || $check1); print <can('signature_target') ? (SIGN => 1) : ()), 'NAME' => 'NetAddr::IP', 'VERSION_FROM' => 'IP.pm', # finds $VERSION 'PREREQ_PM' => { Test::More => 0, }, # e.g., Module::Name => 1.1 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 (ABSTRACT_FROM => 'IP.pm', AUTHOR => 'Luis E. Muñoz , Michael Robinton ') : ()), clean => { FILES => "*~ tmp* META.yml"}, ); WriteMakefile(%makeparms);