ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/Makefile.PL
(Generate patch)

Comparing EV/Makefile.PL (file contents):
Revision 1.64 by root, Tue Nov 19 13:08:54 2019 UTC vs.
Revision 1.68 by root, Tue Feb 18 18:26:47 2020 UTC

113 113
114 114
115The second very portable backend is poll(2). It does not exist on windows 115The second very portable backend is poll(2). It does not exist on windows
116and various versions of Mac OS X (and on the other versions it simply 116and various versions of Mac OS X (and on the other versions it simply
117doesn't work), but works basically everywhere else. It is recommended to use 117doesn't work), but works basically everywhere else. It is recommended to use
118the default here unless you run into compile problems in ev_poll.c. 118the default here unless you run into compilation problems in ev_poll.c.
119 119
120EOF 120EOF
121 121
122$DEFINE .= " -DEV_USE_POLL=" . (0 + (prompt ("Enable poll backend (y/n)?", (have_inc "poll.h") ? "y" : "n") =~ /[yY]/)); 122$DEFINE .= " -DEV_USE_POLL=" . (0 + (prompt ("Enable poll backend (y/n)?", (have_inc "poll.h") ? "y" : "n") =~ /[yY]/));
123 123
339print <<EOF; 339print <<EOF;
340 340
341*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 341*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
342 342
343 343
344Linux kernels can notify userspace about realtime clock timejumps
345using timerfd. Libev by default will try to take advantage of this if
346possible. You can completely disable the detection and use of timerfd for
347this purpose by answering 'n' here. Support for timerfd will otherwise be
348autodetected at both compile- and runtime.
349
350EOF
351
352unless (prompt ("Enable optional support for timerfd to detect timejumps (y/n)?", "y") =~ /[yY]/) {
353 $DEFINE .= " -DEV_USE_TIMERFD=0";
354}
355
356print <<EOF;
357
358*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
359
360
344Libev contains numerous internal assert() invocations to check for 361Libev contains numerous internal assert() invocations to check for
345consistency and user errors. These are normally enabled, but most 362consistency and user errors. These are normally enabled, but most
346perl builds disable this error reporting mechanism by default. You 363perl builds disable this error reporting mechanism by default. You
347can re-enable these asserts here. Enabling them might help you catch 364can re-enable these asserts here. Enabling them might help you catch
348programming bugs earlier, but might cause a small slowdown. Also, failures 365programming bugs earlier, but might cause a small slowdown. Also, failures
354 371
355EOF 372EOF
356 373
357my $enable_assertions = 0; 374my $enable_assertions = 0;
358$enable_assertions = 0 + (prompt ("Make sure assertions are enabled? (y/n)?", $enable_assertions ? "y" : "n") =~ /[yY]/); 375$enable_assertions = 0 + (prompt ("Make sure assertions are enabled? (y/n)?", $enable_assertions ? "y" : "n") =~ /[yY]/);
359$DEFINE .= " -DEV_ENABLE_ASERTIONS=1" if $enable_assertions; 376$DEFINE .= " -DEV_ENABLE_ASSERTIONS=1" if $enable_assertions;
360 377
361print <<EOF; 378print <<EOF;
362 379
363*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 380*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
364 381
365 382
366Very rarely, people want to tweak EV even more, e.g. to exclude 383Very rarely, people want to tweak EV even more, e.g. to exclude
367or include certain watcher types or backends. This can be done by adding 384or include certain watcher types or backends. This can be done by adding
368extra -D options here, or via the EV_EXTRA_DEFS environment variable. 385extra -D options here, or via the EV_EXTRA_DEFS environment variable.
369 386
370For example, if you run into compile problems because of missing memory 387For example, if you run into compilation problems because of missing memory
371fences (or you just want extra performance), you can tell EV to not support 388fences (or you just want extra performance), you can tell EV to not support
372smp and threads via -DEV_NO_THREADS. 389smp and threads via -DEV_NO_THREADS.
373 390
374Normal persons just press enter. 391Most people would just press enter.
375 392
376EOF 393EOF
377 394
378$DEFINE .= " " . prompt "Any extra -D options?", "$ENV{EV_EXTRA_DEFS}"; 395$DEFINE .= " " . prompt "Any extra -D options?", "$ENV{EV_EXTRA_DEFS}";
379 396

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines