diff options
author | lloyd <[email protected]> | 2010-06-22 13:43:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-06-22 13:43:18 +0000 |
commit | 54bac11c5d4e051f996951feb6a037b1de001329 (patch) | |
tree | 8cfa3b72ae36dcd156c4ab4dae1066ee3e021830 /configure.py | |
parent | 991f744c5a3e9610a2e4af70ae5daeb7a943a38e (diff) | |
parent | 238869aed29c3d703650ce55404929dc7e3f31fb (diff) |
propagate from branch 'net.randombit.botan' (head 647eeb4f4cf8fa4cf487cdc463d48f09fe18658e)
to branch 'net.randombit.botan.c++0x' (head 2539675db91883b11895ddc5244721e93c413321)
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/configure.py b/configure.py index ffaa525fb..51606a739 100755 --- a/configure.py +++ b/configure.py @@ -143,8 +143,8 @@ def process_command_line(args): target_group.add_option('--cc', dest='compiler', help='set the desired build compiler') - target_group.add_option('--os', default=platform.system().lower(), - help='set the target operating system [%default]') + target_group.add_option('--os', + help='set the target operating system') target_group.add_option('--cpu', help='set the target processor type/model') target_group.add_option('--with-endian', metavar='ORDER', default=None, @@ -1437,6 +1437,10 @@ def main(argv = None): (modules, archinfo, ccinfo, osinfo) = load_info_files(options) + if options.os is None: + options.os = platform.system().lower() + logging.info('Guessing taget OS is %s (--os to set)' % (options.os)) + if options.compiler is None: if options.os == 'windows': if which('cl.exe') is not None: @@ -1447,7 +1451,8 @@ def main(argv = None): options.compiler = 'msvc' else: options.compiler = 'gcc' - logging.info('Guessing to use compiler %s' % (options.compiler)) + logging.info('Guessing to use compiler %s (--cc to set)' % ( + options.compiler)) if options.compiler not in ccinfo: raise Exception('Unknown compiler "%s"; available options: %s' % ( @@ -1469,7 +1474,7 @@ def main(argv = None): if options.cpu is None: (options.arch, options.cpu) = guess_processor(archinfo) - logging.info('Guessing target processor is a %s/%s' % ( + logging.info('Guessing target processor is a %s/%s (--cpu to set)' % ( options.arch, options.cpu)) else: cpu_from_user = options.cpu |