ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/BDB/Makefile.PL
Revision: 1.5
Committed: Sun Jul 8 13:41:03 2007 UTC (16 years, 10 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-0_5, rel-1_0
Changes since 1.4: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

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