summaryrefslogtreecommitdiffstats
path: root/testing/mongodb/mongodb-2.2.4-use-system-version.patch
blob: 3f9ec2d3dff31f4f1dd49f3b90b2bdbb47face29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
diff -urp mongodb-src-r2.2.4.orig/SConstruct mongodb-src-r2.2.4/SConstruct
--- mongodb-src-r2.2.4.orig/SConstruct	2013-05-02 14:59:37.226000000 -0500
+++ mongodb-src-r2.2.4/SConstruct	2013-05-02 15:04:25.164000000 -0500
@@ -249,7 +249,7 @@ def printLocalInfo():
 
 printLocalInfo()
 
-boostLibs = [ "thread" , "filesystem" , "program_options", "system" ]
+boostLibs = [ "thread" , "filesystem" , "iostreams" , "program_options", "system" ]
 
 onlyServer = len( COMMAND_LINE_TARGETS ) == 0 or ( len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) in [ "mongod" , "mongos" , "test" ] )
 nix = False
@@ -791,6 +791,28 @@ def doConfigure(myenv):
             print( "c++ compiler not installed!" )
             Exit(1)
 
+    if use_system_version_of_library("snappy"):
+        if not conf.CheckCXXHeader("snappy.h"):
+            print( "can't find snappy header" )
+            Exit(1)
+        if not conf.CheckLib("libsnappy"):
+            print( "can't find snappy library" )
+            Exit(1)
+
+    if use_system_version_of_library("pcre"):
+        if not conf.CheckCXXHeader("pcre.h"):
+            print( "can't find pcre header" )
+            Exit(1)
+        if not conf.CheckLib("libpcre"):
+            print( "can't find pcre library" )
+            Exit(1)
+        if not conf.CheckCXXHeader("pcrecpp.h"):
+            print( "can't find pcrecpp header" )
+            Exit(1)
+        if not conf.CheckLib("libpcrecpp"):
+            print( "can't find pcrecpp library" )
+            Exit(1)
+
     if use_system_version_of_library("boost"):
         if not conf.CheckCXXHeader( "boost/filesystem/operations.hpp" ):
             print( "can't find boost headers" )
Only in mongodb-src-r2.2.4: SConstruct.orig