… | |
… | |
221 | EOF |
221 | EOF |
222 | |
222 | |
223 | my $can_eventfd = -e "/usr/include/sys/eventfd.h"; |
223 | my $can_eventfd = -e "/usr/include/sys/eventfd.h"; |
224 | $can_eventfd = $ENV{EV_EVENTFD} if exists $ENV{EV_EVENTFD}; |
224 | $can_eventfd = $ENV{EV_EVENTFD} if exists $ENV{EV_EVENTFD}; |
225 | $DEFINE .= " -DEV_USE_EVENTFD=" . (0 + (prompt ("Enable linux eventfd support (y/n)?", $can_eventfd ? "y" : "n") =~ /[yY]/)); |
225 | $DEFINE .= " -DEV_USE_EVENTFD=" . (0 + (prompt ("Enable linux eventfd support (y/n)?", $can_eventfd ? "y" : "n") =~ /[yY]/)); |
|
|
226 | |
|
|
227 | print <<EOF; |
|
|
228 | |
|
|
229 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
230 | |
|
|
231 | |
|
|
232 | Another sometimes useful bit of functionality is the Linux signalfd, which |
|
|
233 | is useful for faster signal handling (don't care). Kernel support for |
|
|
234 | this will be probed at runtime, but your libc must contain the necessary |
|
|
235 | wrapper and include files. Glibc 2.9 and later should have this wrapper. |
|
|
236 | |
|
|
237 | EOF |
|
|
238 | |
|
|
239 | my $can_signalfd = -e "/usr/include/sys/signalfd.h"; |
|
|
240 | $can_signalfd = $ENV{EV_SIGNALFD} if exists $ENV{EV_SIGNALFD}; |
|
|
241 | $DEFINE .= " -DEV_USE_SIGNALFD=" . (0 + (prompt ("Enable linux signalfd support (y/n)?", $can_signalfd ? "y" : "n") =~ /[yY]/)); |
226 | |
242 | |
227 | print <<EOF; |
243 | print <<EOF; |
228 | |
244 | |
229 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
245 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
230 | |
246 | |