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

Comparing EV/Makefile.PL (file contents):
Revision 1.46 by root, Sun Oct 31 10:33:01 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
243print <<EOF; 244print <<EOF;
244 245
245*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 246*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
246 247
247 248
248EOF 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.
249 253
254EOF
255
256$DEFINE .= " " . prompt "Any extra -D options?", "$ENV{EV_EXTRA_DEFS}";
257
258print <<EOF;
259
260*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
261
262
263EOF
264
250my @anyevent = eval { require AnyEvent; $AnyEvent::VERSION < 2.6 } ? (AnyEvent => 2.6) : (); 265my @anyevent = eval { require AnyEvent; $AnyEvent::VERSION < 5.29 } ? (AnyEvent => 5.29) : ();
251 266
252WriteMakefile( 267WriteMakefile(
253 dist => { 268 dist => {
254 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 269 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
255 COMPRESS => 'gzip -9v', 270 COMPRESS => 'gzip -9v',

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines