diff -Naur dangerdeep-0.2.0-orig/SConstruct dangerdeep-0.2.0/SConstruct --- dangerdeep-0.2.0-orig/SConstruct 2006-10-12 21:44:44 +0300 +++ dangerdeep-0.2.0/SConstruct 2007-01-01 22:01:39 +0200 @@ -146,17 +146,20 @@ if (cvedit == 1): env.Append(CPPDEFINES = ['CVEDIT']) # check for mmx/sse support - cpuinfof = open('/proc/cpuinfo', 'r') - cpuinfol = cpuinfof.readlines() mmxsupported = False ssesupported = False - for i in cpuinfol: - if i.startswith('flags'): - m = Split(i) - if 'mmx' in m: - mmxsupported = True - if 'sse' in m: - ssesupported = True + try: + cpuinfof = open('/proc/cpuinfo', 'r') + cpuinfol = cpuinfof.readlines() + for i in cpuinfol: + if i.startswith('flags'): + m = Split(i) + if 'mmx' in m: + mmxsupported = True + if 'sse' in m: + ssesupported = True + except IOError: + print 'Warning, /proc/cpuinfo not available; MMX/SSE optimizations disabled' if (usex86sse == 0) and (mmxsupported and ssesupported): usex86sse = 1 if usex86sse >= 1: