diff options
author | Andrew Morrow <acm@10gen.com> | 2013-06-03 14:33:18 -0400 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2013-06-03 20:57:46 -0400 |
commit | 2e7d108efe4a00b012d8489eae6e9565584a0529 (patch) | |
tree | 003ba665bfd23355a66d45ec2dacd362bd5e5b7f /SConstruct | |
parent | ec4e8f3ea794c6769d90083fc3c32fc25e66ded2 (diff) | |
download | mongo-2e7d108efe4a00b012d8489eae6e9565584a0529.tar.gz |
SERVER-6951 SERVER-9656 SERVER-9849 Handle third_party libraries consistently
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 9945d46ce80..c2dbed8fc52 100644 --- a/SConstruct +++ b/SConstruct @@ -245,8 +245,11 @@ add_option( "use-system-boost", "use system version of boost libraries", 0, True add_option( "use-system-snappy", "use system version of snappy library", 0, True ) add_option( "use-system-sm", "use system version of spidermonkey library", 0, True ) + add_option( "use-system-v8", "use system version of v8 library", 0, True ) +add_option( "use-system-stemmer", "use system version of stemmer", 0, True ) + add_option( "use-system-all" , "use all system libraries", 0 , True ) add_option( "use-cpu-profiler", @@ -805,6 +808,9 @@ env.Prepend(CPPPATH=['$BUILD_DIR/third_party/s2']) if not use_system_version_of_library("stemmer"): env.Prepend(CPPPATH=['$BUILD_DIR/third_party/libstemmer_c/include']) +if not use_system_version_of_library("snappy"): + env.Prepend(CPPPATH=['$BUILD_DIR/third_party/snappy']) + env.Append( CPPPATH=['$EXTRACPPPATH'], LIBPATH=['$EXTRALIBPATH'] ) @@ -1129,6 +1135,24 @@ def doConfigure(myenv): conf = Configure(myenv) + if use_system_version_of_library("pcre"): + if not conf.CheckLib("pcre"): + print( "Can't find pcre library" ) + Exit(1) + if not conf.CheckLib("pcrecpp"): + print( "Can't find prcecpp library" ) + Exit(1) + + if use_system_version_of_library("snappy"): + if not conf.CheckLib("snappy"): + print( "Can't find snappy library" ) + Exit(1) + + if use_system_version_of_library("stemmer"): + if not conf.CheckLib("stemmer"): + print( "Can't find stemmer library" ) + Exit(1) + if use_system_version_of_library("boost"): if not conf.CheckCXXHeader( "boost/filesystem/operations.hpp" ): print( "can't find boost headers" ) |