Make auto-reconfiguring work if CFLAGS contains more than one flag.
authorNico Weber <nicolasweber@gmx.de>
Fri, 19 Sep 2014 15:49:00 +0000 (08:49 -0700)
committerNico Weber <nicolasweber@gmx.de>
Fri, 19 Sep 2014 15:50:24 +0000 (08:50 -0700)
commit13dfea4f8ddb38dae127e023d5d25292c4fefb14
tree2ecd5c1807a2cd55e825a6b3e162389f422b4ae3
parent213c44a51c1309f0b03a7c2763a7599c8cb9a41f
Make auto-reconfiguring work if CFLAGS contains more than one flag.

When using an open-source clang on OS X, one has to pass an isysroot
flag so that it can find system headers (stdio.h), like so:

  CXX=path/to/clang++ CFLAGS="-isysroot $(xcrun -show-sdk-path)" ./configure.py

Previously, configure.py wouldn't quote envvars containing spaces, so
it'd rerun this as

  CXX=path/to/clang++ CFLAGS=-isysroot /sysroot/path ./configure.py

which would then die because /sysroot/path wasn't excecutable.
configure.py