From: Ned Deily Date: Mon, 9 Oct 2017 17:53:27 +0000 (-0400) Subject: Allow configure to handle PATH elements with spaces (#3935) X-Git-Tag: v3.7.0a2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14aa00b519c827578648f2c006ad0ac8058cf6a1;p=python Allow configure to handle PATH elements with spaces (#3935) --- diff --git a/configure b/configure index 741a834ab3..324c034706 100755 --- a/configure +++ b/configure @@ -3524,14 +3524,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 a3114be738..bf2b7c0753 100644 --- a/configure.ac +++ b/configure.ac @@ -621,14 +621,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