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

Comparing EV/Makefile.PL (file contents):
Revision 1.18 by root, Fri Nov 9 19:33:51 2007 UTC vs.
Revision 1.19 by root, Mon Nov 12 01:01:13 2007 UTC

64EOF 64EOF
65 65
66if (prompt ("Prefer clock_gettime (CLOCK_REALTIME) over gettimeofday (y/n)?", "y") !~ /[yY]/) { 66if (prompt ("Prefer clock_gettime (CLOCK_REALTIME) over gettimeofday (y/n)?", "y") !~ /[yY]/) {
67 $DEFINE .= " -DEV_USE_REALTIME=0"; 67 $DEFINE .= " -DEV_USE_REALTIME=0";
68} 68}
69
70print <<EOF;
71
72
73*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
74
75EV can use various backends with various portability issue. The select
76backend is the most portable and makes for a good fallback, but it can be
77limited to a low number of file descriptors and/or might not compile. If
78you have problems with compiling ev_select., you might try to play around
79with disabling it here, or forcing it to use the fd_set provided by your
80OS, via the next question. I highly recommend keeping it in.
81
82EOF
83
84if (prompt ("Enable select backend (y/n)?", "y") =~ /[yY]/) {
85 $DEFINE .= " -DEV_USE_SELECT";
86
87 print <<EOF;
88
89
90*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
91
92The select backend can operate in two modes. One uses the system-provided
93fd_set and is usually limited to 1024 file descriptors (64 on windows),
94the other requires your header files to define NFDBITS and declare a
95suitable fd_mask type. If you run into problems compiling ev_select.c, you
96can try forcing the use of the system fd_set here.
97
98EOF
99
100 if (prompt ("Force use of system fd_set for select backend (y/n)?", "n") =~ /[yY]/) {
101 $DEFINE .= " -DEV_SELECT_USE_FD_SET";
102 }
103}
104
105print <<EOF;
106
107
108*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
109
110The second very portable backend is poll(2). It does not exist on windows
111and various versions of Mac OS X (and on the other versions it simply
112doesn't work), but works basically everywhere else. It is recommended to use
113the default here unless you run into compile problems in ev_poll.c.
114
115EOF
116
117if (prompt ("Enable poll backend (y/n)?", (-e "/usr/include/poll.h") ? "y" : "n") =~ /[yY]/) {
118 $DEFINE .= " -DEV_USE_POLL";
119}
69 120
70print <<EOF; 121print <<EOF;
71 122
72 123
73*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 124*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
89print <<EOF; 140print <<EOF;
90 141
91 142
92*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 143*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
93 144
94Similarly to the epoll backend above, EV can take advantage of kqueue on 145Similarly to the epoll backend above, EV can take advantage of kqueue
95many BSD systems (it seems to be broken on Mac OS X though). The kqueue 146on many BSD systems (it seems to be broken on Mac OS X though, but what
96backend has not been tested, however, so it is disabled by default. Please 147isn't broken on that shoddy platform... ah yes, the cash gushing by apple,
97test (and preferably fix) the kqueue backend when you have a machine 148selling defective software works perfectly there). Support for kqueue will
98supporting it. Support for kqueue will be detected at runtime, with a 149be detected at runtime, with a safe fallback to other methods when it
99safe fallback to other methods when it cannot be used. 150cannot be used.
100 151
101EOF 152EOF
102 153
103if (prompt ("Enable kqueue backend (y/n)?", (-e "/usr/include/sys/event.h") ? "y" : "n") =~ /[yY]/) { 154if (prompt ("Enable kqueue backend (y/n)?", (-e "/usr/include/sys/event.h") ? "y" : "n") =~ /[yY]/) {
104 $DEFINE .= " -DEV_USE_KQUEUE"; 155 $DEFINE .= " -DEV_USE_KQUEUE";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines