… | |
… | |
29 | |
29 | |
30 | autoconf::run_script() |
30 | autoconf::run_script() |
31 | and die "\nconfigure failed, check it's output above and autoconf/config.log\n\n"; |
31 | and die "\nconfigure failed, check it's output above and autoconf/config.log\n\n"; |
32 | } |
32 | } |
33 | |
33 | |
|
|
34 | if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { |
|
|
35 | print <<EOF; |
|
|
36 | |
|
|
37 | *** |
|
|
38 | *** WARNING: |
|
|
39 | *** |
|
|
40 | *** Your perl uses it's own memory allocator (-Dusemymalloc=y), |
|
|
41 | *** which is known not to be threadsafe on GNU/Linux and probably |
|
|
42 | *** other platforms (even when not used concurrently, it trashes |
|
|
43 | *** the data structures of the system malloc running concurrently), |
|
|
44 | *** for perls up to 5.8.8 and possibly later versions. |
|
|
45 | *** |
|
|
46 | *** If you are unsure wether your perl has been fixed, your system |
|
|
47 | *** is safe for other reasons, or you experience spurious segfaults, |
|
|
48 | *** please compile your perl with -Dusemymalloc=n. |
|
|
49 | *** |
|
|
50 | |
|
|
51 | EOF |
|
|
52 | } |
|
|
53 | |
34 | my $mm = MM->new({ |
54 | my $mm = MM->new({ |
35 | dist => { |
55 | dist => { |
36 | PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
56 | PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
37 | COMPRESS => 'gzip -9v', |
57 | COMPRESS => 'gzip -9v', |
38 | SUFFIX => '.gz', |
58 | SUFFIX => '.gz', |
39 | }, |
59 | }, |
40 | NAME => "IO::AIO", |
60 | NAME => "IO::AIO", |
41 | VERSION_FROM => "AIO.pm", |
61 | VERSION_FROM => "AIO.pm", |
42 | LIBS => ['-lpthread -lrt', '-lpthread', '-lpthreads', ''], |
62 | LIBS => ['-lpthread -lrt', '-lpthread', '-lpthreads', ''], |
|
|
63 | PM => { |
|
|
64 | 'AIO.pm' => '$(INST_LIBDIR)/IO/AIO.pm', |
|
|
65 | }, |
43 | clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, |
66 | clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, |
44 | }); |
67 | }); |
45 | |
68 | |
46 | $mm->flush; |
69 | $mm->flush; |
47 | |
70 | |