ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/Makefile.PL
(Generate patch)

Comparing EV/Makefile.PL (file contents):
Revision 1.55 by root, Sat Sep 6 18:42:18 2014 UTC vs.
Revision 1.57 by root, Sat Jun 20 11:11:01 2015 UTC

1use 5.008002;
2
3use strict qw(vars subs); 1use strict qw(vars subs);
2use Canary::Stability EV => 1, 5.008002;
4use Config; 3use Config;
5use ExtUtils::MakeMaker; 4use ExtUtils::MakeMaker;
6 5
7sub have_inc($) { 6sub have_inc($) {
8 scalar grep -r "$_/$_[0]", $Config{usrinc}, split / /, $Config{incpth} 7 scalar grep -r "$_/$_[0]", $Config{usrinc}, split / /, $Config{incpth}
9} 8}
9
10my $DEFINE;
10 11
11unless (-e "libev/ev_epoll.c") { 12unless (-e "libev/ev_epoll.c") {
12 print <<EOF; 13 print <<EOF;
13 14
14*** 15***
48will otherwise be autodetected at both compile- and runtime. (this setting 49will otherwise be autodetected at both compile- and runtime. (this setting
49currently affects the use of nanosleep over select as well). 50currently affects the use of nanosleep over select as well).
50 51
51EOF 52EOF
52 53
53my $DEFINE .= " -DEV_USE_MONOTONIC=" . (0 + (prompt ("Enable optional support for CLOCK_MONOTONIC (y/n)?", "y") =~ /[yY]/)); 54unless (prompt ("Enable optional support for CLOCK_MONOTONIC (y/n)?", "y") =~ /[yY]/) {
55 $DEFINE .= " -DEV_USE_MONOTONIC=0";
56}
54 57
55print <<EOF; 58print <<EOF;
56 59
57*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 60*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
58 61
294 LIBS => [$LIBS], 297 LIBS => [$LIBS],
295 PREREQ_PM => { 298 PREREQ_PM => {
296 @anyevent, 299 @anyevent,
297 "common::sense" => 0, 300 "common::sense" => 0,
298 }, 301 },
302 CONFIGURE_REQUIRES => { "ExtUtils::MakeMaker" => 6.52, "Canary::Stability" => 0 },
299 VERSION_FROM => "EV.pm", 303 VERSION_FROM => "EV.pm",
300 PM => { 304 PM => {
301 'EV.pm' => '$(INST_LIB)/EV.pm', 305 'EV.pm' => '$(INST_LIB)/EV.pm',
302 'EV/EVAPI.h' => '$(INST_LIB)/EV/EVAPI.h', 306 'EV/EVAPI.h' => '$(INST_LIB)/EV/EVAPI.h',
303 'EV/MakeMaker.pm' => '$(INST_LIB)/EV/MakeMaker.pm', 307 'EV/MakeMaker.pm' => '$(INST_LIB)/EV/MakeMaker.pm',

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines