binutils/GCC: Quote ${COMPILER_FOR_TARGET}
Replace
if test x${COMPILER_FOR_TARGET} = x"\$(CC)"; then
with
if test x"${COMPILER_FOR_TARGET}" = x"\$(CC)"; then
since COMPILER_FOR_TARGET may contain spaces when configuring GCC.
* configure: Regenerated.
config/
* clang-plugin.m4 (CLANG_PLUGIN_FILE_FOR_TARGET): Quote
${COMPILER_FOR_TARGET}.
* gcc-plugin.m4 (GCC_PLUGIN_OPTION_FOR_TARGET): Likewise.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
diff --git a/config/clang-plugin.m4 b/config/clang-plugin.m4
index b6b28ab..cc051fe 100644
--- a/config/clang-plugin.m4
+++ b/config/clang-plugin.m4
@@ -68,7 +68,7 @@
dnl
AC_DEFUN([CLANG_PLUGIN_FILE_FOR_TARGET],[dnl
COMPILER_FOR_TARGET="${CC_FOR_TARGET}"
- if test x${COMPILER_FOR_TARGET} = x"\$(CC)"; then
+ if test x"${COMPILER_FOR_TARGET}" = x"\$(CC)"; then
COMPILER_FOR_TARGET="$CC"
fi
saved_CC="$CC"
diff --git a/config/gcc-plugin.m4 b/config/gcc-plugin.m4
index 687af3e..0382147 100644
--- a/config/gcc-plugin.m4
+++ b/config/gcc-plugin.m4
@@ -178,7 +178,7 @@
AC_DEFUN([GCC_PLUGIN_OPTION_FOR_TARGET],[dnl
COMPILER_FOR_TARGET="${CC_FOR_TARGET}"
dnl Check if the host compiler is used.
-if test x${COMPILER_FOR_TARGET} = x"\$(CC)"; then
+if test x"${COMPILER_FOR_TARGET}" = x"\$(CC)"; then
COMPILER_FOR_TARGET="$CC"
fi
saved_CC="$CC"
diff --git a/configure b/configure
index 90f99cd..54b71af 100755
--- a/configure
+++ b/configure
@@ -20599,7 +20599,7 @@
# Try CLANG_PLUGIN_FILE_FOR_TARGET first since GCC_PLUGIN_OPTION_FOR_TARGET
# may return the wrong PLUGIN_OPTION_FOR_TARGET with clang.
COMPILER_FOR_TARGET="${CC_FOR_TARGET}"
- if test x${COMPILER_FOR_TARGET} = x"\$(CC)"; then
+ if test x"${COMPILER_FOR_TARGET}" = x"\$(CC)"; then
COMPILER_FOR_TARGET="$CC"
fi
saved_CC="$CC"
@@ -20701,7 +20701,7 @@
PLUGIN_OPTION_FOR_TARGET="--plugin $PLUGIN_FILE_FOR_TARGET"
else
COMPILER_FOR_TARGET="${CC_FOR_TARGET}"
-if test x${COMPILER_FOR_TARGET} = x"\$(CC)"; then
+if test x"${COMPILER_FOR_TARGET}" = x"\$(CC)"; then
COMPILER_FOR_TARGET="$CC"
fi
saved_CC="$CC"