@@ -956,7 +956,7 @@ def doConfigure( myenv , needPcre=True , shell=False ):
956956
957957 # 'tcmalloc' needs to be the last library linked. Please, add new libraries before this
958958 # point.
959- if ( GetOption ( "heapcheck" ) is not None ) and ( not shell ) :
959+ if has_option ( "heapcheck" ) and not shell :
960960 if ( not debugBuild ) and ( not debugLogging ):
961961 print ( "--heapcheck needs --d or --dd" )
962962 Exit ( 1 )
@@ -972,7 +972,7 @@ def doConfigure( myenv , needPcre=True , shell=False ):
972972 # FIXME doConfigure() is being called twice, in the case of the shell. So if it is called
973973 # with shell==True, it'd be on its second call and it would need to rearrange the libraries'
974974 # order. The following removes tcmalloc from the LIB's list and reinserts it at the end.
975- if ( GetOption ( "heapcheck" ) is not None ) and ( shell ) :
975+ if has_option ( "heapcheck" ) and shell :
976976 removeIfInList ( myenv ["LIBS" ] , "tcmalloc" )
977977 myenv .Append ( LIBS = "tcmalloc" )
978978
@@ -1090,7 +1090,7 @@ mongos = env.Program( "mongos" , commonFiles + coreDbFiles + coreServerFiles + s
10901090
10911091# c++ library
10921092clientLibName = str ( env .Library ( "mongoclient" , allClientFiles )[0 ] )
1093- if GetOption ( "sharedclient" ):
1093+ if has_option ( "sharedclient" ):
10941094 sharedClientLibName = str ( env .SharedLibrary ( "mongoclient" , allClientFiles )[0 ] )
10951095env .Library ( "mongotestfiles" , commonFiles + coreDbFiles + coreServerFiles + serverOnlyFiles + ["client/gridfs.cpp" ])
10961096env .Library ( "mongoshellfiles" , allClientFiles + coreServerFiles )
@@ -1195,7 +1195,7 @@ smokeFlags = []
11951195
11961196# Ugh. Frobbing the smokeFlags must precede using them to construct
11971197# actions, I think.
1198- if GetOption ( 'smokedbprefix' ) is not None :
1198+ if has_option ( 'smokedbprefix' ):
11991199 smokeFlags += ['--smoke-db-prefix' , GetOption ( 'smokedbprefix' )]
12001200
12011201if 'startMongodSmallOplog' in COMMAND_LINE_TARGETS :
@@ -1329,7 +1329,7 @@ def getSystemInstallName():
13291329 n = platform + "-" + processor
13301330 if static :
13311331 n += "-static"
1332- if GetOption ("nostrip" ):
1332+ if has_option ("nostrip" ):
13331333 n += "-debugsymbols"
13341334 if nix and os .uname ()[2 ].startswith ( "8." ):
13351335 n += "-tiger"
@@ -1418,7 +1418,7 @@ def installBinary( e , name ):
14181418 fullInstallName = installDir + "/bin/" + name
14191419
14201420 allBinaries += [ name ]
1421- if (solaris or linux ) and (not GetOption ("nostrip" )):
1421+ if (solaris or linux ) and (not has_option ("nostrip" )):
14221422 e .AddPostAction ( inst , e .Action ( 'strip ' + fullInstallName ) )
14231423
14241424 if linux and len ( COMMAND_LINE_TARGETS ) == 1 and str ( COMMAND_LINE_TARGETS [0 ] ) == "s3dist" :
@@ -1457,7 +1457,7 @@ if installSetup.clientSrc:
14571457#lib
14581458if installSetup .libraries :
14591459 env .Install ( installDir + "/" + nixLibPrefix , clientLibName )
1460- if GetOption ( "sharedclient" ):
1460+ if has_option ( "sharedclient" ):
14611461 env .Install ( installDir + "/" + nixLibPrefix , sharedClientLibName )
14621462
14631463
@@ -1484,7 +1484,7 @@ if installSetup.clientTestsDir:
14841484env .Alias ( "install" , installDir )
14851485
14861486# aliases
1487- env .Alias ( "mongoclient" , GetOption ( "sharedclient" ) and sharedClientLibName or clientLibName )
1487+ env .Alias ( "mongoclient" , has_option ( "sharedclient" ) and sharedClientLibName or clientLibName )
14881488
14891489
14901490# ---- CONVENIENCE ----
0 commit comments