aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-01-04 15:10:15 +0000
committerlloyd <[email protected]>2010-01-04 15:10:15 +0000
commitaddb797aad286615af7aa16aa854f57e55d5af4f (patch)
tree333a645483c78e00e880c240531cafdc62e77f7f
parent2bf08f8cd9524287232491173e52a75a0269b3df (diff)
Make ssse3/aes_ni depend on sse2; --disable-sse2 turns off all of then
-rwxr-xr-xconfigure.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 8eedf64b1..3dc360f12 100755
--- a/configure.py
+++ b/configure.py
@@ -315,6 +315,27 @@ def process_command_line(args):
options.enable_isa_extns = parse_multiple_enable(options.enable_isa_extns)
options.disable_isa_extns = parse_multiple_enable(options.disable_isa_extns)
+ def enabled_or_disabled_isa(isa):
+ if isa in options.enable_isa_extns:
+ return True
+ if isa in options.disable_isa_extns:
+ return True
+ return False
+
+ isa_dependencies = {
+ 'ssse3': 'sse2',
+ 'aes_ni': 'sse2'
+ }
+
+ if 'sse2' in options.disable_isa_extns:
+ sse2_deps = ['ssse3', 'aes_ni']
+
+ for isa in sse2_deps:
+ if not enabled_or_disabled_isa(isa):
+ options.disable_isa_extns.append(isa)
+
+ print options.disable_isa_extns
+
return options
"""