… | |
… | |
66 | print <<EOF; |
66 | print <<EOF; |
67 | |
67 | |
68 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
68 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
69 | |
69 | |
70 | |
70 | |
71 | Another useful bit of functionality is the Linux eventfd, which is useful |
|
|
72 | for faster signal handling (don't care) and intra-thread communications |
|
|
73 | (mostly useful for embedding). Kernel support for this will be probed at |
|
|
74 | runtime, but your libc must contain the necessary wrapper. Glibc 2.7 and |
|
|
75 | later should have this wrapper. |
|
|
76 | |
|
|
77 | EOF |
|
|
78 | |
|
|
79 | $DEFINE .= " -DEV_USE_EVENTFD=" . (0 + (prompt ("Enable linux eventfd support (y/n)?", (-e "/usr/include/sys/eventfd.h") || $ENV{EV_EVENTFD} ? "y" : "n") =~ /[yY]/)); |
|
|
80 | |
|
|
81 | print <<EOF; |
|
|
82 | |
|
|
83 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
84 | |
|
|
85 | |
|
|
86 | EV can use various backends with various portability issue. The select |
71 | EV can use various backends with various portability issue. The select |
87 | backend is the most portable and makes for a good fallback, but it can be |
72 | backend is the most portable and makes for a good fallback, but it can be |
88 | limited to a low number of file descriptors and/or might not compile. If |
73 | limited to a low number of file descriptors and/or might not compile. If |
89 | you have problems with compiling ev_select.c, you might try to play around |
74 | you have problems with compiling ev_select.c, you might try to play around |
90 | with disabling it here, or forcing it to use the fd_set provided by your |
75 | with disabling it here, or forcing it to use the fd_set provided by your |
… | |
… | |
216 | EOF |
201 | EOF |
217 | |
202 | |
218 | my $can_inotify = -e "/usr/include/sys/inotify.h"; |
203 | my $can_inotify = -e "/usr/include/sys/inotify.h"; |
219 | |
204 | |
220 | $DEFINE .= " -DEV_USE_INOTIFY=" . (0 + (prompt ("Enable inotify support (y/n)?", $can_inotify ? "y" : "n") =~ /[yY]/)); |
205 | $DEFINE .= " -DEV_USE_INOTIFY=" . (0 + (prompt ("Enable inotify support (y/n)?", $can_inotify ? "y" : "n") =~ /[yY]/)); |
|
|
206 | |
|
|
207 | print <<EOF; |
|
|
208 | |
|
|
209 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
210 | |
|
|
211 | |
|
|
212 | Another useful bit of functionality is the Linux eventfd, which is useful |
|
|
213 | for faster signal handling (don't care) and intra-thread communications |
|
|
214 | (more relevant). Kernel support for this will be probed at runtime, but |
|
|
215 | your libc must contain the necessary wrapper. Glibc 2.7 and later should |
|
|
216 | have this wrapper. |
|
|
217 | |
|
|
218 | EOF |
|
|
219 | |
|
|
220 | $DEFINE .= " -DEV_USE_EVENTFD=" . (0 + (prompt ("Enable linux eventfd support (y/n)?", (-e "/usr/include/sys/eventfd.h") || $ENV{EV_EVENTFD} ? "y" : "n") =~ /[yY]/)); |
221 | |
221 | |
222 | print <<EOF; |
222 | print <<EOF; |
223 | |
223 | |
224 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
224 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
225 | |
225 | |