… | |
… | |
237 | EOF |
237 | EOF |
238 | |
238 | |
239 | my $can_signalfd = -e "/usr/include/sys/signalfd.h"; |
239 | my $can_signalfd = -e "/usr/include/sys/signalfd.h"; |
240 | $can_signalfd = $ENV{EV_SIGNALFD} if exists $ENV{EV_SIGNALFD}; |
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]/)); |
241 | $DEFINE .= " -DEV_USE_SIGNALFD=" . (0 + (prompt ("Enable linux signalfd support (y/n)?", $can_signalfd ? "y" : "n") =~ /[yY]/)); |
|
|
242 | |
|
|
243 | print <<EOF; |
|
|
244 | |
|
|
245 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
246 | |
|
|
247 | |
|
|
248 | Very rarely, people want to tweak EV even more, e.g. to exclude |
|
|
249 | or incldue certain watcher types or backends. Thisc na be done by adding |
|
|
250 | extra -D options here, or via the EV_EXTRA_DEFS environment variable. |
|
|
251 | Normal persons just press enter. |
|
|
252 | |
|
|
253 | EOF |
|
|
254 | |
|
|
255 | $DEFINE .= " " . prompt "Any extra -D options?", $ENV{EV_EXTRA_DEFS}; |
242 | |
256 | |
243 | print <<EOF; |
257 | print <<EOF; |
244 | |
258 | |
245 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
259 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
246 | |
260 | |