Blame SOURCES/mongodb-2.4.5-use-system-version.patch

6b52aa
diff -Nur mongodb-src-r2.4.4.orig/SConstruct mongodb-src-r2.4.4/SConstruct
6b52aa
--- mongodb-src-r2.4.4.orig/SConstruct	2013-06-16 20:57:58.272022055 +0200
6b52aa
+++ mongodb-src-r2.4.4/SConstruct	2013-06-28 20:37:15.266916910 +0200
6b52aa
@@ -246,7 +246,7 @@
6b52aa
 
6b52aa
 printLocalInfo()
6b52aa
 
6b52aa
-boostLibs = [ "thread" , "filesystem" , "program_options", "system" ]
6b52aa
+boostLibs = [ "thread" , "filesystem" , "iostreams" , "program_options", "system" ]
6b52aa
 
6b52aa
 onlyServer = len( COMMAND_LINE_TARGETS ) == 0 or ( len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) in [ "mongod" , "mongos" , "test" ] )
6b52aa
 nix = False
6b52aa
@@ -805,6 +805,28 @@
6b52aa
             print( "c++ compiler not installed!" )
6b52aa
             Exit(1)
6b52aa
 
6b52aa
+    if use_system_version_of_library("snappy"):
6b52aa
+        if not conf.CheckCXXHeader("snappy.h"):
6b52aa
+            print( "can't find snappy header" )
6b52aa
+            Exit(1)
6b52aa
+        if not conf.CheckLib("libsnappy"):
6b52aa
+            print( "can't find snappy library" )
6b52aa
+            Exit(1)
6b52aa
+
6b52aa
+    if use_system_version_of_library("pcre"):
6b52aa
+        if not conf.CheckCXXHeader("pcre.h"):
6b52aa
+            print( "can't find pcre header" )
6b52aa
+            Exit(1)
6b52aa
+        if not conf.CheckLib("libpcre"):
6b52aa
+            print( "can't find pcre library" )
6b52aa
+            Exit(1)
6b52aa
+        if not conf.CheckCXXHeader("pcrecpp.h"):
6b52aa
+            print( "can't find pcrecpp header" )
6b52aa
+            Exit(1)
6b52aa
+        if not conf.CheckLib("libpcrecpp"):
6b52aa
+            print( "can't find pcrecpp library" )
6b52aa
+            Exit(1)
6b52aa
+
6b52aa
     if use_system_version_of_library("boost"):
6b52aa
         if not conf.CheckCXXHeader( "boost/filesystem/operations.hpp" ):
6b52aa
             print( "can't find boost headers" )