… | |
… | |
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 libev/evdns.h libev/evdns.c", |
139 | }, |
139 | }, |
140 | INC => "-Ilibev", |
140 | INC => "-Ilibev", |
141 | DEFINE => "$DEFINE", |
141 | DEFINE => "$DEFINE", |
142 | NAME => "EV", |
142 | NAME => "EV", |