… | |
… | |
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 | |
24 | EOF |
17 | EOF |
25 | |
18 | |
26 | if(0){ |
19 | if(0){ |
27 | if ($Config{cc} =~ /(?:^|\\|\/)gcc(?:|.*\.exe)$/) { |
20 | if ($Config{cc} =~ /(?:^|\\|\/)gcc(?:|.*\.exe)$/) { |
28 | $INC = "$ENV{INC} -I/gtk/include"; |
21 | $INC = "$ENV{INC} -I/gtk/include"; |
29 | $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadGC2"]; |
22 | $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadGC2"]; |
30 | } else { |
23 | } else { |
31 | $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"; |
32 | $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadVC2"]; |
25 | $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadVC2"]; |
|
|
26 | } |
33 | } |
27 | } |
34 | } |
|
|
35 | |
28 | |
36 | open my $fh, ">config.h" |
29 | open my $fh, ">config.h" |
37 | or die "config.h: $!"; |
30 | or die "config.h: $!"; |
38 | print $fh <<EOF; |
31 | print $fh <<EOF; |
39 | EOF |
32 | EOF |
… | |
… | |
65 | $ENV{MAKE} = $Config{make}; |
58 | $ENV{MAKE} = $Config{make}; |
66 | $ENV{SHELL} = $Config{sh}; |
59 | $ENV{SHELL} = $Config{sh}; |
67 | $ENV{CC} = $Config{cc}; |
60 | $ENV{CC} = $Config{cc}; |
68 | $ENV{CPPFLAGS} = "$Config{cppflags} -I$Config{archlibexp}/CORE"; |
61 | $ENV{CPPFLAGS} = "$Config{cppflags} -I$Config{archlibexp}/CORE"; |
69 | $ENV{CFLAGS} = $Config{ccflags}; |
62 | $ENV{CFLAGS} = $Config{ccflags}; |
70 | $ENV{LDFLAGS} = "$Config{ldflags} -L$Config{archlibexp}/CORE -L$Config{privlibexp}"; |
63 | $ENV{LDFLAGS} = "$Config{ldflags} $Config{ccdlflags}"; |
71 | $ENV{LINKER} = $Config{ld}; # nonstandard |
64 | $ENV{LINKER} = $Config{ld}; # nonstandard |
72 | $ENV{LIBS} = "-lperl $Config{libs}"; |
65 | $ENV{LIBS} = "-L$Config{archlibexp}/CORE -L$Config{privlibexp} -lperl $Config{libs}"; |
73 | |
66 | |
74 | system $ENV{SHELL}, -c => "./configure --prefix \Q$Config{prefixexp}\E" |
67 | system $ENV{SHELL}, -c => "./configure --prefix \Q$Config{prefixexp}\E" |
75 | and exit $? >> 8; |
68 | and exit $? >> 8; |
76 | } |
69 | } |
77 | } |
70 | } |