import os
+import sys, select
# Basic paths
prefix = ARGUMENTS.get ('prefix', "/usr/local")
if rc == 0:
print "\nDetected clang++ installed in the system"
print "\nSelect compiler:\n 1. g++\n 2. clang++"
- option = raw_input("\nInput option [1]: ") or "1"
+ #option = raw_input("\nInput option [1]: ") or "1"
+ # Read with timeout:
+ print "\nInput option [1]: "
+ option = 1
+ i, o, e = select.select( [sys.stdin], [], [], 60 )
+ if (i): option = sys.stdin.readline().strip()
+ else: print "expired! using default ..."
if option == "2":
env = Environment(CXX = 'clang++')
env.Append (CCFLAGS = '-DIS_CLANG')