wscript
changeset 7524 b5df4870db14
parent 7518 91f889c8fc43
child 7527 6e8c5ebcc1ae
equal deleted inserted replaced
7523:7c6a89520349 7524:b5df4870db14
   386     conf.sub_config('bindings/python')
   386     conf.sub_config('bindings/python')
   387 
   387 
   388     conf.sub_config('src/mpi')
   388     conf.sub_config('src/mpi')
   389 
   389 
   390     # for suid bits
   390     # for suid bits
   391     conf.find_program('sudo', var='SUDO')
   391     try:
       
   392         conf.find_program('sudo', var='SUDO')
       
   393     except WafError:
       
   394         pass
   392 
   395 
   393     why_not_sudo = "because we like it"
   396     why_not_sudo = "because we like it"
   394     if Options.options.enable_sudo and conf.env['SUDO']:
   397     if Options.options.enable_sudo and conf.env['SUDO']:
   395         env['ENABLE_SUDO'] = True
   398         env['ENABLE_SUDO'] = True
   396     else:
   399     else:
   450             env['EXAMPLE_DIRECTORIES'].append(dir)
   453             env['EXAMPLE_DIRECTORIES'].append(dir)
   451 
   454 
   452     conf.report_optional_feature("ENABLE_EXAMPLES", "Build examples", env['ENABLE_EXAMPLES'], 
   455     conf.report_optional_feature("ENABLE_EXAMPLES", "Build examples", env['ENABLE_EXAMPLES'], 
   453                                  why_not_examples)
   456                                  why_not_examples)
   454 
   457 
   455     conf.find_program('valgrind', var='VALGRIND')
   458     try:
       
   459         conf.find_program('valgrind', var='VALGRIND')
       
   460     except WafError:
       
   461         pass
   456 
   462 
   457     # These flags are used for the implicitly dependent modules.
   463     # These flags are used for the implicitly dependent modules.
   458     if env['ENABLE_STATIC_NS3']:
   464     if env['ENABLE_STATIC_NS3']:
   459         if sys.platform == 'darwin':
   465         if sys.platform == 'darwin':
   460             env.STATICLIB_MARKER = '-Wl,-all_load'
   466             env.STATICLIB_MARKER = '-Wl,-all_load'