0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

Merge branch 'master' of git@github.com:mongodb/mongo

This commit is contained in:
Aaron 2009-03-12 11:02:07 -04:00
commit 23fff16385
2 changed files with 9 additions and 3 deletions

View File

@ -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" )

View File

@ -280,13 +280,17 @@ namespace mongo {
use this to log things just there.
*/
#if defined(_WIN32)
#define DEV if( 0 )
#define WIN if( 1 )
#else
#define DEV if( 0 )
#define WIN if( 0 )
#endif
#if defined(_DEBUG)
#define DEV if( 1 )
#else
#define DEV if( 0 )
#endif
#define DEBUGGING if( 0 )
extern unsigned occasion;