build: fix configure with spaces in CC
authorAlex Xu <alex_y_xu@yahoo.ca>
Fri, 16 Mar 2012 23:01:53 +0000 (16:01 -0700)
committerNathan Rajlich <nathan@tootallnate.net>
Fri, 16 Mar 2012 23:01:53 +0000 (16:01 -0700)
configure

index 30b8f4bcfe863218b0b5f2c5bb6c578776ddc984..27a114694797ac76f6df98b16f4d1d9e2f4ecec5 100755 (executable)
--- a/configure
+++ b/configure
@@ -149,7 +149,7 @@ def pkg_config(pkg):
 def host_arch_cc():
   """Host architecture check using the CC command."""
 
-  p = subprocess.Popen([CC, '-dM', '-E', '-'],
+  p = subprocess.Popen(CC.split() + ['-dM', '-E', '-'],
                        stdin=subprocess.PIPE,
                        stdout=subprocess.PIPE,
                        stderr=subprocess.PIPE)