1 |
use ExtUtils::MakeMaker; |
2 |
use Event::MakeMaker; |
3 |
|
4 |
use 5.005; |
5 |
|
6 |
use Config; |
7 |
|
8 |
$|=1; |
9 |
|
10 |
if (eval { require Event }) { |
11 |
$EVENT = 1; |
12 |
$DEFINE .= " -DHAVE_EVENT=1"; |
13 |
print "\n*** Event version $Event::VERSION found, building Event support.\n", |
14 |
"*** Please read the INSTALL file, you might need to patch Event.\n\n"; |
15 |
} else { |
16 |
print "\n*** Event not found, not build Event support.\n\n"; |
17 |
$EVENT = 0; |
18 |
} |
19 |
|
20 |
WriteMakefile(Event::MakeMaker::event_args( |
21 |
NAME => "Coro::Event", |
22 |
VERSION_FROM => "Event.pm", |
23 |
DEFINE => $DEFINE, |
24 |
DIR => [], |
25 |
PM => { |
26 |
'Event.pm' => '$(INST_LIBDIR)/Event.pm', |
27 |
'Handle.pm' => '$(INST_LIBDIR)/Handle.pm', |
28 |
'Socket.pm' => '$(INST_LIBDIR)/Socket.pm', |
29 |
'Util.pm' => '$(INST_LIBDIR)/Util.pm', |
30 |
}, |
31 |
)); |
32 |
|
33 |
|
34 |
|