… | |
… | |
98 | supporting it. Support for kqueue will be detected at runtime, with a |
98 | supporting it. Support for kqueue will be detected at runtime, with a |
99 | safe fallback to other methods when it cannot be used. |
99 | safe fallback to other methods when it cannot be used. |
100 | |
100 | |
101 | EOF |
101 | EOF |
102 | |
102 | |
103 | if (prompt ("Enable kqueue backend (y/n)?", (-e "/usr/include/sys/event.h-disabled") ? "y" : "n") =~ /[yY]/) { |
103 | if (prompt ("Enable kqueue backend (y/n)?", (-e "/usr/include/sys/event.h") ? "y" : "n") =~ /[yY]/) { |
104 | $DEFINE .= " -DEV_USE_KQUEUE"; |
104 | $DEFINE .= " -DEV_USE_KQUEUE"; |
105 | } |
105 | } |
106 | |
106 | |
107 | print <<EOF; |
107 | print <<EOF; |
108 | |
108 | |
… | |
… | |
132 | COMPRESS => 'gzip -9v', |
132 | COMPRESS => 'gzip -9v', |
133 | SUFFIX => '.gz', |
133 | SUFFIX => '.gz', |
134 | }, |
134 | }, |
135 | depend => { |
135 | depend => { |
136 | "EV.c" => "EV/EVAPI.h " |
136 | "EV.c" => "EV/EVAPI.h " |
137 | . "libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c " |
137 | . "libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c libev/ev_kqueue.c libev/ev_poll.c " |
138 | . "libev/event.h libev/event.c libev/evdns.h libev/evdns.c", |
138 | . "libev/event.h libev/event.c evdns.h evdns.c libev/ev_vars.h libev/ev_wrap.h", |
139 | }, |
139 | }, |
140 | INC => "-Ilibev", |
140 | INC => "-Ilibev", |
141 | DEFINE => "$DEFINE", |
141 | DEFINE => "$DEFINE", |
142 | NAME => "EV", |
142 | NAME => "EV", |
143 | LIBS => [$LIBS], |
143 | LIBS => [$LIBS], |
144 | VERSION_FROM => "EV.pm", |
144 | VERSION_FROM => "EV.pm", |
145 | PM => { |
145 | PM => { |
146 | 'EV.pm' => '$(INST_LIBDIR)/EV.pm', |
146 | 'EV.pm' => '$(INST_LIBDIR)/EV.pm', |
147 | 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm', |
|
|
148 | 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm', |
147 | 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm', |
149 | 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h', |
148 | 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h', |
150 | 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm', |
149 | 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm', |
151 | 'libev/ev.h' => '$(INST_LIBDIR)/EV/ev.h', |
150 | 'libev/ev.h' => '$(INST_LIBDIR)/EV/ev.h', |
152 | }, |
151 | }, |