Commit c43143f6 by Jim Wilson Committed by Jim Wilson

Avoid shell errors when target_cpu_default* contains a | character.

	* configure.in (target_cpu_default, target_cpu_default2): Use double
	quotes around them when testing their value.
	* configure: Rebuilt.

From-SVN: r17333
parent d45b3d87
Tue Jan 13 17:50:55 1998 Jim Wilson <wilson@cygnus.com>
* configure.in (target_cpu_default, target_cpu_default2): Use double
quotes around them when testing their value.
* configure: Rebuilt.
Tue Jan 13 09:07:44 1998 John Carr <jfc@mit.edu>
* gengenrtl.c (gencode): Emit new function obstack_alloc_rtx
......
......@@ -5393,7 +5393,7 @@ for machine in $build $host $target; do
if [ x$gas = xyes ]
then
if [ x$target_cpu_default2 = x ]
if [ "$target_cpu_default2" = "" ]
then
target_cpu_default2="MASK_GAS"
else
......@@ -5494,9 +5494,9 @@ for machine in $build $host $target; do
;;
esac
if [ x$target_cpu_default2 != x ]
if [ "$target_cpu_default2" != "" ]
then
if [ x$target_cpu_default != x ]
if [ "$target_cpu_default" != "" ]
then
target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
else
......@@ -5647,7 +5647,7 @@ do
# Define TARGET_CPU_DEFAULT if the system wants one.
# This substitutes for lots of *.h files.
if [ x$target_cpu_default != x -a $link = tm.h ]
if [ "$target_cpu_default" != "" -a $link = tm.h ]
then
echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
fi
......
......@@ -2568,7 +2568,7 @@ for machine in $build $host $target; do
if [[ x$gas = xyes ]]
then
if [[ x$target_cpu_default2 = x ]]
if [[ "$target_cpu_default2" = "" ]]
then
target_cpu_default2="MASK_GAS"
else
......@@ -2669,9 +2669,9 @@ for machine in $build $host $target; do
;;
esac
if [[ x$target_cpu_default2 != x ]]
if [[ "$target_cpu_default2" != "" ]]
then
if [[ x$target_cpu_default != x ]]
if [[ "$target_cpu_default" != "" ]]
then
target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
else
......@@ -2822,7 +2822,7 @@ do
# Define TARGET_CPU_DEFAULT if the system wants one.
# This substitutes for lots of *.h files.
if [[ x$target_cpu_default != x -a $link = tm.h ]]
if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
then
echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment