… | |
… | |
7 | scalar grep -r "$_/$_[0]", $Config{usrinc}, split / /, $Config{incpth} |
7 | scalar grep -r "$_/$_[0]", $Config{usrinc}, split / /, $Config{incpth} |
8 | } |
8 | } |
9 | |
9 | |
10 | my $DEFINE; |
10 | my $DEFINE; |
11 | |
11 | |
12 | unless (-e "libev/ev_epoll.c") { |
12 | unless (-e "libev/ev_linuxaio.c") { |
13 | print <<EOF; |
13 | print <<EOF; |
14 | |
14 | |
15 | *** |
15 | *** |
16 | *** ERROR: libev is missing or damaged. If you used a CVS check-out of EV, |
16 | *** ERROR: libev is missing or damaged. If you used a CVS check-out of EV, |
17 | *** you also have to check-out the "libev" module from the same CVS |
17 | *** you also have to check-out the "libev" module from the same CVS |
… | |
… | |
297 | print <<EOF; |
297 | print <<EOF; |
298 | |
298 | |
299 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
299 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
300 | |
300 | |
301 | |
301 | |
|
|
302 | Libev contains numerous internal assert() invocations to check for |
|
|
303 | consistency and user errors. These are normally enabled, but most |
|
|
304 | perl builds disable this error reporting mechanism by default. You |
|
|
305 | can re-enable these asserts here. Enabling them might help you catch |
|
|
306 | programming bugs earlier, but might cause a small slowdown. Also, failures |
|
|
307 | will be reported by aboritng your program, instead of throwing a perl |
|
|
308 | exception. |
|
|
309 | |
|
|
310 | If unsure, enable this if you only use this perl installation for |
|
|
311 | development, and leave it off for use in production environments. |
|
|
312 | |
|
|
313 | EOF |
|
|
314 | |
|
|
315 | my $enable_assertions = 0; |
|
|
316 | $enable_assertions = 0 + (prompt ("Make sure assertions are enabled? (y/n)?", $enable_assertions ? "y" : "n") =~ /[yY]/); |
|
|
317 | $DEFINE .= " -DEV_ENABLE_ASERTIONS=1" if $enable_assertions; |
|
|
318 | |
|
|
319 | print <<EOF; |
|
|
320 | |
|
|
321 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
322 | |
|
|
323 | |
302 | Very rarely, people want to tweak EV even more, e.g. to exclude |
324 | Very rarely, people want to tweak EV even more, e.g. to exclude |
303 | or include certain watcher types or backends. This can be done by adding |
325 | or include certain watcher types or backends. This can be done by adding |
304 | extra -D options here, or via the EV_EXTRA_DEFS environment variable. |
326 | extra -D options here, or via the EV_EXTRA_DEFS environment variable. |
305 | |
327 | |
306 | For example, if you run into compile problems because of missing memory |
328 | For example, if you run into compile problems because of missing memory |
… | |
… | |
328 | COMPRESS => 'gzip -9v', |
350 | COMPRESS => 'gzip -9v', |
329 | SUFFIX => '.gz', |
351 | SUFFIX => '.gz', |
330 | }, |
352 | }, |
331 | depend => { |
353 | depend => { |
332 | "EV.c" => "EV/EVAPI.h " |
354 | "EV.c" => "EV/EVAPI.h " |
333 | . "libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c libev/ev_kqueue.c libev/ev_poll.c " |
355 | . "libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c libev/ev_kqueue.c libev/ev_poll.c libev/ev_linuxaio.c " |
334 | . "libev/ev_vars.h libev/ev_wrap.h", |
356 | . "libev/ev_vars.h libev/ev_wrap.h", |
335 | }, |
357 | }, |
336 | INC => "-Ilibev", |
358 | INC => "-Ilibev", |
337 | DEFINE => "$DEFINE", |
359 | DEFINE => "$DEFINE", |
338 | NAME => "EV", |
360 | NAME => "EV", |
… | |
… | |
355 | 'EV/MakeMaker.pm' => '$(INST_MAN3DIR)/EV::MakeMaker.$(MAN3EXT)', |
377 | 'EV/MakeMaker.pm' => '$(INST_MAN3DIR)/EV::MakeMaker.$(MAN3EXT)', |
356 | 'libev/ev.pod' => '$(INST_MAN3DIR)/EV::libev.$(MAN3EXT)', |
378 | 'libev/ev.pod' => '$(INST_MAN3DIR)/EV::libev.$(MAN3EXT)', |
357 | }, |
379 | }, |
358 | ); |
380 | ); |
359 | |
381 | |
360 | |
|
|