]> granicus.if.org Git - python/commitdiff
Allow configure to handle PATH elements with spaces (#3935) (#3937)
authorNed Deily <nad@python.org>
Mon, 9 Oct 2017 18:30:59 +0000 (14:30 -0400)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2017 18:30:59 +0000 (14:30 -0400)
Fix some tests in ./configure for determining macOS compiler choices that could fail if a $PATH element contained spaces.

configure
configure.ac

index ed305a89b4b75eb25a592efda25983f78a536f96..0b950502d2b69ab687d82b24abe6f49f30d6bfd5 100755 (executable)
--- 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
index e400fa187de7d714100cb5e68c5ec6b90c4ad49c..056c5db4a681615c0adb15b6132788b841aad773 100644 (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