… | |
… | |
2 | |
2 | |
3 | use Config; |
3 | use Config; |
4 | |
4 | |
5 | require "autoconf.pm"; |
5 | require "autoconf.pm"; |
6 | |
6 | |
|
|
7 | if ($^O =~ /win32/i or $^O =~ /mswin/) { |
|
|
8 | |
|
|
9 | # configuration on windows is hardcoded - as always |
|
|
10 | |
|
|
11 | die "your platform is not standards-compliant, you have to port this module first\n";#d# |
|
|
12 | |
|
|
13 | } else { |
|
|
14 | |
7 | if ($^O =~ /freebsd/i) { |
15 | if ($^O =~ /freebsd/i) { |
8 | print <<EOF; |
16 | print <<EOF; |
9 | |
17 | |
10 | This package seems to deadlock or otherwise misbehave under FreeBSD. As |
18 | This package seems to deadlock or otherwise misbehave under FreeBSD. As |
11 | documentation on FreeBSD threading is sorely lacking and confusing, I'll |
19 | documentation on FreeBSD threading is sorely lacking and confusing, I'll |
12 | just call FreeBSD broken with regards to threading. |
20 | just call FreeBSD broken with regards to threading. |
13 | |
21 | |
… | |
… | |
15 | |
23 | |
16 | Some people had luck with using OPTIMIZE=-O instead of -O2, so you might |
24 | Some people had luck with using OPTIMIZE=-O instead of -O2, so you might |
17 | want to try that. |
25 | want to try that. |
18 | |
26 | |
19 | EOF |
27 | EOF |
|
|
28 | } |
|
|
29 | |
|
|
30 | autoconf::run_script() |
|
|
31 | and die "\nconfigure failed, check it's output above and autoconf/config.log\n\n"; |
20 | } |
32 | } |
21 | |
|
|
22 | autoconf::run_script() |
|
|
23 | and die "\nconfigure failed, check it's output above and autoconf/config.log\n\n"; |
|
|
24 | |
33 | |
25 | my $mm = MM->new({ |
34 | my $mm = MM->new({ |
26 | dist => { |
35 | dist => { |
27 | PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
36 | PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
28 | COMPRESS => 'gzip -9v', |
37 | COMPRESS => 'gzip -9v', |