From c43143f6a1586c985fd02e660d4952a64b0494ef Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 13 Jan 1998 18:01:56 +0000 Subject: 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 --- gcc/ChangeLog | 6 ++++++ gcc/configure | 8 ++++---- gcc/configure.in | 8 ++++---- 3 files changed, 14 insertions(+), 8 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eac4608..4ce7bdc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Tue Jan 13 17:50:55 1998 Jim Wilson + + * 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 * gengenrtl.c (gencode): Emit new function obstack_alloc_rtx diff --git a/gcc/configure b/gcc/configure index d216f51..cacb53b 100755 --- a/gcc/configure +++ b/gcc/configure @@ -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 diff --git a/gcc/configure.in b/gcc/configure.in index e135865..b60f54c 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -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 -- cgit v1.1