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

Comparing IO-AIO/Makefile.PL (file contents):
Revision 1.35 by root, Sun Aug 12 05:21:35 2018 UTC vs.
Revision 1.38 by root, Sat Aug 25 19:55:48 2018 UTC

9 9
10 print STDERR <<EOF; 10 print STDERR <<EOF;
11 11
12*** 12***
13*** Your platform is not standards compliant. To get this module working, you need to 13*** Your platform is not standards compliant. To get this module working, you need to
14*** download and install win32 pthread (http://sourceware.org/pthreads-win32/) 14*** download and install win32 pthread (http://sourceware.org/pthreads-win32/).
15*** in /gtk/{lib,include}
16*** also, the windows SDK is expected to be installed in /sdk
17*** and visual C is expected to be installed in /vc98
18***
19*** Alternatively, set the INC and LIBS environment variables
20*** accordingly before running Makefile.PL, or you can
21*** pass INC and LIBS arguments to Makefile.PL itself.
22*** 15***
23 16
24EOF 17EOF
25 18
19 if(0){
26 if ($Config{cc} =~ /(?:^|\\|\/)gcc(?:|.*\.exe)$/) { 20 if ($Config{cc} =~ /(?:^|\\|\/)gcc(?:|.*\.exe)$/) {
27 $INC = "$ENV{INC} -I/gtk/include"; 21 $INC = "$ENV{INC} -I/gtk/include";
28 $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadGC2"]; 22 $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadGC2"];
29 } else { 23 } else {
30 $INC = "$ENV{INC} -I/sdk/include -I/vc98/include -I/gtk/include"; 24 $INC = "$ENV{INC} -I/sdk/include -I/vc98/include -I/gtk/include";
31 $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadVC2"]; 25 $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadVC2"];
26 }
32 } 27 }
33 28
34 open my $fh, ">config.h" 29 open my $fh, ">config.h"
35 or die "config.h: $!"; 30 or die "config.h: $!";
36 print $fh <<EOF; 31 print $fh <<EOF;
63 $ENV{MAKE} = $Config{make}; 58 $ENV{MAKE} = $Config{make};
64 $ENV{SHELL} = $Config{sh}; 59 $ENV{SHELL} = $Config{sh};
65 $ENV{CC} = $Config{cc}; 60 $ENV{CC} = $Config{cc};
66 $ENV{CPPFLAGS} = "$Config{cppflags} -I$Config{archlibexp}/CORE"; 61 $ENV{CPPFLAGS} = "$Config{cppflags} -I$Config{archlibexp}/CORE";
67 $ENV{CFLAGS} = $Config{ccflags}; 62 $ENV{CFLAGS} = $Config{ccflags};
68 $ENV{LDFLAGS} = "$Config{ldflags} -L$Config{archlibexp}/CORE -L$Config{privlibexp}"; 63 $ENV{LDFLAGS} = "$Config{ldflags} $Config{ccdlflags}";
69 $ENV{LINKER} = $Config{ld}; # nonstandard 64 $ENV{LINKER} = $Config{ld}; # nonstandard
70 $ENV{LIBS} = "-lperl"; 65 $ENV{LIBS} = "-L$Config{archlibexp}/CORE -L$Config{privlibexp} -lperl $Config{perllibs}";
71 66
72 system $ENV{SHELL}, -c => "./configure --prefix \Q$Config{prefixexp}\E" 67 system $ENV{SHELL}, -c => "./configure --prefix \Q$Config{prefixexp}\E"
73 and exit $? >> 8; 68 and exit $? >> 8;
74 } 69 }
75} 70}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines