diff options
author | lloyd <[email protected]> | 2009-07-02 21:46:50 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-07-02 21:46:50 +0000 |
commit | 6912af20943ecafb57aa470988bbe5629f73587f (patch) | |
tree | 6d08a91b01cd6e8ffd4e268e6652b8c2fa142dd3 /configure.py | |
parent | 85b29aa49a6b4a2fd506d68f3ae892c4b5854ec1 (diff) |
Respect --with-tr1=boost in build.h macros
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/configure.py b/configure.py index 2dd861454..c27950d75 100755 --- a/configure.py +++ b/configure.py @@ -399,10 +399,16 @@ class CompilerInfo(object): return self.so_link_flags[osname] return self.so_link_flags['default'] - def defines(self): - if self.compiler_has_tr1: + def defines(self, with_tr1): + if with_tr1: + if with_tr1 == 'boost': + return ['USE_BOOST_TR1'] + elif with_tr1 == 'system': + return ['USE_STD_TR1'] + elif self.compiler_has_tr1: return ['USE_STD_TR1'] - return [] + else: + return [] class OsInfo(object): def __init__(self, infofile): @@ -603,7 +609,7 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo): for m in modules if m.define]), 'target_os_defines': make_cpp_macros(osinfo.defines()), - 'target_compiler_defines': make_cpp_macros(cc.defines()), + 'target_compiler_defines': make_cpp_macros(cc.defines(options.with_tr1)), 'target_cpu_defines': make_cpp_macros( arch.defines(options.cpu, options.with_endian)), |