build: handle CC env var with spaces

For example:

    CC='ccache gcc' ./configure
This commit is contained in:
Gabriel 2012-06-26 19:45:13 +02:00 committed by Ben Noordhuis
parent 0cdeb8ed96
commit 9e72b7b65c

2
configure vendored
View File

@ -241,7 +241,7 @@ def target_arch():
def compiler_version():
try:
proc = subprocess.Popen([CC, '-v'], stderr=subprocess.PIPE)
proc = subprocess.Popen(CC.split() + ['-v'], stderr=subprocess.PIPE)
except OSError:
return (False, False, None)
lines = proc.communicate()[1].split('\n')