… | |
… | |
2 | |
2 | |
3 | use Config; |
3 | use Config; |
4 | |
4 | |
5 | require "autoconf.pm"; |
5 | require "autoconf.pm"; |
6 | |
6 | |
7 | if ($^O =~ /freebsd/i) { |
7 | if ($^O =~ /win32/i or $^O =~ /mswin/) { |
8 | print <<EOF; |
|
|
9 | |
8 | |
10 | This package seems to deadlock under FreeBSD. As documentation on FreeBSD |
9 | # configuration on windows is hardcoded - as always |
11 | threading is sorely lacking and confusing, I'll just call FreeBSD broken |
|
|
12 | with regards to threading. |
|
|
13 | |
10 | |
14 | If you get it to work, tell me how (maybe you need to specify magical link |
11 | die "your platform is not standards-compliant, you have to port this module first\n";#d# |
15 | flags despite man pthread telling me otherwise, maybe yo need special |
12 | |
16 | library, maybe you need magical preprocessor symbols, maybe you need to |
13 | } else { |
17 | recompile or re-link perl with threads enabled (a bad idea) - I have no |
14 | |
18 | idea, and I no longer care). |
15 | if ($^O =~ /freebsd/i) { |
|
|
16 | print <<EOF; |
|
|
17 | |
|
|
18 | This package seems to deadlock or otherwise misbehave under FreeBSD. As |
|
|
19 | documentation on FreeBSD threading is sorely lacking and confusing, I'll |
|
|
20 | just call FreeBSD broken with regards to threading. |
|
|
21 | |
|
|
22 | If you find out whats wrong, please tell me. |
|
|
23 | |
|
|
24 | Some people had luck with using OPTIMIZE=-O instead of -O2, so you might |
|
|
25 | want to try that. |
19 | |
26 | |
20 | 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"; |
21 | } |
32 | } |
22 | |
|
|
23 | autoconf::run_script(); |
|
|
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', |