diff options
author | Eliot Horowitz <ehorowitz@shopwiki.com> | 2009-03-12 09:30:14 -0400 |
---|---|---|
committer | Eliot Horowitz <ehorowitz@shopwiki.com> | 2009-03-12 09:30:14 -0400 |
commit | 503fec523d155d8111ea933579ff0e4466a39aaf (patch) | |
tree | 1062c29b2b7eaeab8ab27e7aa6b70a11f2e0fecf /SConstruct | |
parent | 26be29395e34ade6c62dba4024c4dbcb7f39b59f (diff) | |
download | mongo-503fec523d155d8111ea933579ff0e4466a39aaf.tar.gz |
build mongosniff anywhere pcap is installed
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 38148b4e69d..c318912e061 100644 --- a/SConstruct +++ b/SConstruct @@ -408,6 +408,8 @@ def doConfigure( myenv , needJava=True , needPcre=True , shell=False ): myCheckLib( "pcrecpp" , True ) myCheckLib( "pcre" , True ) + myenv["_HAVEPCAP"] = myCheckLib( "pcap" ) + if shell: haveReadLine = False if darwin: @@ -546,7 +548,7 @@ perftest = testEnv.Program( "perftest", "dbtests/perf/perftest.cpp" ) clientTests += [ clientEnv.Program( "clientTest" , [ "client/examples/clientTest.cpp" ] ) ] # --- sniffer --- -if nix and darwin: +if darwin or clientEnv["_HAVEPCAP"]: sniffEnv = clientEnv.Clone() sniffEnv.Append( LIBS=[ "pcap" ] ) sniffEnv.Program( "mongosniff" , "tools/sniffer.cpp" ) |