ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Coro-Mysql/Makefile.PL
(Generate patch)

Comparing cvsroot/Coro-Mysql/Makefile.PL (file contents):
Revision 1.1 by root, Mon May 18 15:19:38 2009 UTC vs.
Revision 1.3 by root, Thu Feb 17 02:05:14 2011 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3print <<EOF; 3print <<EOF;
4 4
5** 5**
6** This module *MUST* be linked against exactly the same libmysqlclient 6** This module *MUST* be dynamically linked against exactly the same
7** libmysqlclient as your DBD::mysql module (also dynamically).
7** as your DBD::mysql module. Otherwise it will die quickly when used. 8** Otherwise it will die quickly when used.
9** If desperate, you could also try linking against the DBD::mysql
10** shared object itself.
8** 11**
9** To adjust include and library path, edit the Makefile.PL, near the end. 12** To adjust include and library path, edit the Makefile.PL, near the end.
10** 13**
11 14
12EOF 15EOF
13 16
14WriteMakefile( 17my %wm = (
15 dist => { 18 dist => {
16 PREOP => 'pod2text Mysql.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 19 PREOP => 'pod2text Mysql.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
17 COMPRESS => 'gzip -9v', 20 COMPRESS => 'gzip -9v',
18 SUFFIX => '.gz', 21 SUFFIX => '.gz',
19 }, 22 },
29 32
30 INC => '-I/usr/include/mysql', 33 INC => '-I/usr/include/mysql',
31 LIBS => ['-L/usr/lib -lmysqlclient'], 34 LIBS => ['-L/usr/lib -lmysqlclient'],
32); 35);
33 36
37if (eval "require EV::MakeMaker; require Coro::MakeMaker; 1") {
38 %wm = Coro::MakeMaker::coro_args (EV::MakeMaker::ev_args (%wm));
39 $wm{DEFINE} .= " -DHAVE_EV=1";
40} else {
41 print <<EOF;
42
43**
44** Especially fast with EV!
45**
46** This module is especially fast when used together with EV as
47** the event loop - but you don't have EV installed. Too bad,
48** but I work with any event loop, including EV, using my
49** generic code, so no sweat. If you plan to use EV, better
50** install it before this module.
51**
52
53EOF
54}
55
56WriteMakefile %wm;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines