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.
This commit is contained in:
Ned Deily 2017-10-09 14:30:59 -04:00 committed by GitHub
parent 6f059ab80a
commit ac360fc56c
2 changed files with 8 additions and 8 deletions

8
configure vendored
View file

@ -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

View file

@ -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