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

Comparing EV/Makefile.PL (file contents):
Revision 1.19 by root, Mon Nov 12 01:01:13 2007 UTC vs.
Revision 1.21 by root, Fri Nov 16 01:46:26 2007 UTC

1use 5.006; 1use 5.006;
2 2
3use Config; 3use Config;
4use ExtUtils::MakeMaker; 4use ExtUtils::MakeMaker;
5
6 5
7unless (-e "libev/ev_epoll.c") { 6unless (-e "libev/ev_epoll.c") {
8 print <<EOF; 7 print <<EOF;
9 8
10*** 9***
158print <<EOF; 157print <<EOF;
159 158
160 159
161*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 160*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
162 161
162Similarly to the kqueue backend above, EV can take advantage of the
163solaris 10 port interface. Support for port will be detected at runtime,
164with a safe fallback to other methods when it cannot be used.
165
166EOF
167
168if (prompt ("Enable port backend (y/n)?", (-e "/usr/include/sys/port.h") ? "y" : "n") =~ /[yY]/) {
169 $DEFINE .= " -DEV_USE_PORT";
170}
171
172print <<EOF;
173
174
175*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
176
163EV needs the functions pthread_atfork and clock_gettime. On most systems 177EV needs the functions pthread_atfork and clock_gettime. On most systems
164you need some special libraries for this (such as -lrt and -lpthread). You 178you need some special libraries for this (such as -lrt and -lpthread). You
165can specify additional libraries to provide these calls now, or accept the 179can specify additional libraries to provide these calls now, or accept the
166default. 180default.
167 181
174 188
175 189
176*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 190*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
177 191
178EOF 192EOF
193
194my @anyevent = eval { require AnyEvent; $AnyEvent::VERSION < 2.6 } ? (AnyEvent => 2.6) : ();
179 195
180WriteMakefile( 196WriteMakefile(
181 dist => { 197 dist => {
182 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 198 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
183 COMPRESS => 'gzip -9v', 199 COMPRESS => 'gzip -9v',
190 }, 206 },
191 INC => "-Ilibev", 207 INC => "-Ilibev",
192 DEFINE => "$DEFINE", 208 DEFINE => "$DEFINE",
193 NAME => "EV", 209 NAME => "EV",
194 LIBS => [$LIBS], 210 LIBS => [$LIBS],
211 PREREQ_PM => {
212 @anyevent,
213 },
195 VERSION_FROM => "EV.pm", 214 VERSION_FROM => "EV.pm",
196 PM => { 215 PM => {
197 'EV.pm' => '$(INST_LIBDIR)/EV.pm', 216 'EV.pm' => '$(INST_LIBDIR)/EV.pm',
198 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm', 217 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm',
199 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h', 218 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h',

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines