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.56 by root, Sat Sep 6 19:03:28 2014 UTC

5use ExtUtils::MakeMaker; 5use ExtUtils::MakeMaker;
6 6
7sub have_inc($) { 7sub have_inc($) {
8 scalar grep -r "$_/$_[0]", $Config{usrinc}, split / /, $Config{incpth} 8 scalar grep -r "$_/$_[0]", $Config{usrinc}, split / /, $Config{incpth}
9} 9}
10
11my $DEFINE;
10 12
11unless (-e "libev/ev_epoll.c") { 13unless (-e "libev/ev_epoll.c") {
12 print <<EOF; 14 print <<EOF;
13 15
14*** 16***
48will otherwise be autodetected at both compile- and runtime. (this setting 50will otherwise be autodetected at both compile- and runtime. (this setting
49currently affects the use of nanosleep over select as well). 51currently affects the use of nanosleep over select as well).
50 52
51EOF 53EOF
52 54
53my $DEFINE .= " -DEV_USE_MONOTONIC=" . (0 + (prompt ("Enable optional support for CLOCK_MONOTONIC (y/n)?", "y") =~ /[yY]/)); 55unless (prompt ("Enable optional support for CLOCK_MONOTONIC (y/n)?", "y") =~ /[yY]/) {
56 $DEFINE .= " -DEV_USE_MONOTONIC=0";
57}
54 58
55print <<EOF; 59print <<EOF;
56 60
57*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 61*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
58 62

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines