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