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

Comparing EV/Makefile.PL (file contents):
Revision 1.47 by root, Mon Nov 22 06:28:26 2010 UTC vs.
Revision 1.50 by root, Thu Dec 30 07:43:03 2010 UTC

185required by EV) now, or accept the default. 185required by EV) now, or accept the default.
186 186
187EOF 187EOF
188 188
189my $solaris_libs = $^O =~ /solaris/i ? "-lsocket -lnsl" : ""; 189my $solaris_libs = $^O =~ /solaris/i ? "-lsocket -lnsl" : "";
190my $librt = $^O =~ /linux/i ? "-lpthread" : "-lpthread -lrt"; 190#my $librt = $^O =~ /linux/i ? "-lpthread" : "-lpthread -lrt";
191my $librt = "-lpthread -lrt";
191my $LIBS = prompt "Extra libraries for pthread_atfork and clock_gettime?", "$librt $solaris_libs"; 192my $LIBS = prompt "Extra libraries for pthread_atfork and clock_gettime?", "$librt $solaris_libs";
192 193
193 194
194print <<EOF; 195print <<EOF;
195 196
237EOF 238EOF
238 239
239my $can_signalfd = -e "/usr/include/sys/signalfd.h"; 240my $can_signalfd = -e "/usr/include/sys/signalfd.h";
240$can_signalfd = $ENV{EV_SIGNALFD} if exists $ENV{EV_SIGNALFD}; 241$can_signalfd = $ENV{EV_SIGNALFD} if exists $ENV{EV_SIGNALFD};
241$DEFINE .= " -DEV_USE_SIGNALFD=" . (0 + (prompt ("Enable linux signalfd support (y/n)?", $can_signalfd ? "y" : "n") =~ /[yY]/)); 242$DEFINE .= " -DEV_USE_SIGNALFD=" . (0 + (prompt ("Enable linux signalfd support (y/n)?", $can_signalfd ? "y" : "n") =~ /[yY]/));
243
244print <<EOF;
245
246*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
247
248
249Very rarely, people want to tweak EV even more, e.g. to exclude
250or incldue certain watcher types or backends. Thisc na be done by adding
251extra -D options here, or via the EV_EXTRA_DEFS environment variable.
252Normal persons just press enter.
253
254EOF
255
256$DEFINE .= " " . prompt "Any extra -D options?", "$ENV{EV_EXTRA_DEFS}";
242 257
243print <<EOF; 258print <<EOF;
244 259
245*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 260*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
246 261

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines