ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/BDB/Makefile.PL
Revision: 1.12
Committed: Wed Dec 18 02:52:34 2013 UTC (10 years, 4 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-1_92, HEAD
Changes since 1.11: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 use ExtUtils::MakeMaker;
2
3 use 5.008008;
4 use Config;
5
6 if ($^O =~ /win32/i or $^O =~ /mswin/) {
7
8 # configuration on windows is hardcoded - as always
9
10 warn "your platform is not standards-compliant, you have to port this module first\n";
11 warn "using some hardcoded config that will not work on your system\n";
12 warn "hint: edit the Makefile.PL\n\n";
13
14 $INC = "-I/Perl/lib/CORE -I/sdk/include -I/vc98/include -I/gtk/include -I/gtk/include/pango-1.0 -I/gtk/include/glib-2.0 -I/gtk/lib/glib-2.0/include/ -I/gtk/include/freetype2";
15 $LIBS = ["-L/gtk/lib -ldb45 -lpthreadVC2"];
16 } else {
17 $INC = "";
18 $LIBS = ['-lpthread -ldb'],
19 }
20
21 if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") {
22 print <<EOF;
23
24 ***
25 *** WARNING:
26 ***
27 *** Your perl uses it's own memory allocator (-Dusemymalloc=y),
28 *** which is known not to be threadsafe on GNU/Linux and probably
29 *** other platforms (even when not used concurrently, it trashes
30 *** the data structures of the system malloc running concurrently),
31 *** for perls up to 5.8.8 and possibly later versions.
32 ***
33 *** If you are unsure wether your perl has been fixed, your system
34 *** is safe for other reasons, or you experience spurious segfaults,
35 *** please compile your perl with -Dusemymalloc=n.
36 ***
37
38 EOF
39 }
40
41 my $mm = MM->new({
42 dist => {
43 PREOP => 'pod2text BDB.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
44 COMPRESS => 'gzip -9v',
45 SUFFIX => '.gz',
46 },
47 NAME => "BDB",
48 VERSION_FROM => "BDB.pm",
49 INC => $INC,
50 LIBS => $LIBS,
51 PREREQ_PM => {
52 common::sense => 0,
53 },
54 PM => {
55 'BDB.pm' => '$(INST_LIB)/BDB.pm',
56 },
57 });
58
59 $mm->flush;
60