… | |
… | |
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 | |
… | |
… | |
244 | |
245 | |
245 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
246 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
246 | |
247 | |
247 | |
248 | |
248 | Very rarely, people want to tweak EV even more, e.g. to exclude |
249 | 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 | or include certain watcher types or backends. This can be done by adding |
250 | extra -D options here, or via the EV_EXTRA_DEFS environment variable. |
251 | extra -D options here, or via the EV_EXTRA_DEFS environment variable. |
|
|
252 | |
|
|
253 | For example, if you run into compile problems because of missing memory |
|
|
254 | fences (or you just want extra performance), you can tell EV to not support |
|
|
255 | smp and threads via -DEV_NO_THREADS. |
|
|
256 | |
251 | Normal persons just press enter. |
257 | Normal persons just press enter. |
252 | |
258 | |
253 | EOF |
259 | EOF |
254 | |
260 | |
255 | $DEFINE .= " " . prompt "Any extra -D options?", $ENV{EV_EXTRA_DEFS}; |
261 | $DEFINE .= " " . prompt "Any extra -D options?", "$ENV{EV_EXTRA_DEFS}"; |
256 | |
262 | |
257 | print <<EOF; |
263 | print <<EOF; |
258 | |
264 | |
259 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
265 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
260 | |
266 | |