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