summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2017-10-09 18:30:59 (GMT)
committerGitHub <noreply@github.com>2017-10-09 18:30:59 (GMT)
commitac360fc56c111ec19895ba445e0ec6863f825625 (patch)
treea30db0516fcc8cf2c98787cc648f566770c49a85
parent6f059ab80a351a7dd85cc57c5ca240f817a79c5d (diff)
downloadcpython-ac360fc56c111ec19895ba445e0ec6863f825625.zip
cpython-ac360fc56c111ec19895ba445e0ec6863f825625.tar.gz
cpython-ac360fc56c111ec19895ba445e0ec6863f825625.tar.bz2
Allow configure to handle PATH elements with spaces (#3935) (#3937)
Fix some tests in ./configure for determining macOS compiler choices that could fail if a $PATH element contained spaces.
-rwxr-xr-xconfigure8
-rw-r--r--configure.ac8
2 files changed, 8 insertions, 8 deletions
diff --git a/configure b/configure
index ed305a8..0b95050 100755
--- a/configure
+++ b/configure
@@ -3536,14 +3536,14 @@ then
for as_dir in $PATH
do
IFS=$as_save_IFS
- if test -x $as_dir/gcc; then
+ if test -x "${as_dir}/gcc"; then
if test -z "${found_gcc}"; then
- found_gcc=$as_dir/gcc
+ found_gcc="${as_dir}/gcc"
fi
fi
- if test -x $as_dir/clang; then
+ if test -x "${as_dir}/clang"; then
if test -z "${found_clang}"; then
- found_clang=$as_dir/clang
+ found_clang="${as_dir}/clang"
fi
fi
done
diff --git a/configure.ac b/configure.ac
index e400fa1..056c5db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -642,14 +642,14 @@ then
for as_dir in $PATH
do
IFS=$as_save_IFS
- if test -x $as_dir/gcc; then
+ if test -x "${as_dir}/gcc"; then
if test -z "${found_gcc}"; then
- found_gcc=$as_dir/gcc
+ found_gcc="${as_dir}/gcc"
fi
fi
- if test -x $as_dir/clang; then
+ if test -x "${as_dir}/clang"; then
if test -z "${found_clang}"; then
- found_clang=$as_dir/clang
+ found_clang="${as_dir}/clang"
fi
fi
done