… | |
… | |
66 | print <<EOF; |
66 | print <<EOF; |
67 | |
67 | |
68 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
68 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
69 | |
69 | |
70 | |
70 | |
71 | EV can use various backends with various portability issue. The select |
71 | EV can use various backends with various portability issues. The select |
72 | 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 |
73 | 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 |
74 | 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 |
75 | 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 |
76 | OS, via the next question. I highly recommend keeping it in. |
76 | OS, via the next question. I highly recommend keeping it in. |
… | |
… | |
185 | required by EV) now, or accept the default. |
185 | required by EV) now, or accept the default. |
186 | |
186 | |
187 | EOF |
187 | EOF |
188 | |
188 | |
189 | my $solaris_libs = $^O =~ /solaris/i ? "-lsocket -lnsl" : ""; |
189 | my $solaris_libs = $^O =~ /solaris/i ? "-lsocket -lnsl" : ""; |
190 | my $librt = $^O =~ /linux/i ? "-lpthread" : "-lpthread -lrt"; |
190 | #my $librt = $^O =~ /linux/i ? "-lpthread" : "-lpthread -lrt"; |
|
|
191 | my $librt = "-lpthread -lrt"; |
191 | my $LIBS = prompt "Extra libraries for pthread_atfork and clock_gettime?", "$librt $solaris_libs"; |
192 | my $LIBS = prompt "Extra libraries for pthread_atfork and clock_gettime?", "$librt $solaris_libs"; |
192 | |
193 | |
193 | |
194 | |
194 | print <<EOF; |
195 | print <<EOF; |
195 | |
196 | |
… | |
… | |
243 | print <<EOF; |
244 | print <<EOF; |
244 | |
245 | |
245 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
246 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
246 | |
247 | |
247 | |
248 | |
248 | EOF |
249 | Very rarely, people want to tweak EV even more, e.g. to exclude |
|
|
250 | or include certain watcher types or backends. This cna be done by adding |
|
|
251 | extra -D options here, or via the EV_EXTRA_DEFS environment variable. |
|
|
252 | Normal persons just press enter. |
249 | |
253 | |
|
|
254 | EOF |
|
|
255 | |
|
|
256 | $DEFINE .= " " . prompt "Any extra -D options?", "$ENV{EV_EXTRA_DEFS}"; |
|
|
257 | |
|
|
258 | print <<EOF; |
|
|
259 | |
|
|
260 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
261 | |
|
|
262 | |
|
|
263 | EOF |
|
|
264 | |
250 | my @anyevent = eval { require AnyEvent; $AnyEvent::VERSION < 2.6 } ? (AnyEvent => 2.6) : (); |
265 | my @anyevent = eval { require AnyEvent; $AnyEvent::VERSION < 5.29 } ? (AnyEvent => 5.29) : (); |
251 | |
266 | |
252 | WriteMakefile( |
267 | WriteMakefile( |
253 | dist => { |
268 | dist => { |
254 | PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
269 | PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
255 | COMPRESS => 'gzip -9v', |
270 | COMPRESS => 'gzip -9v', |