From: Ian Jackson Date: Tue, 15 Jul 2008 16:15:12 +0000 (+0100) Subject: With --disable-gcc-check, do not produce spurious errors if no GCC3 at all. X-Git-Tag: xen-3.3.0-rc1~36^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b5123e05cce4be4c6c8c822fad0f0df4c053da06;p=qemu-xen-3.3-testing.git With --disable-gcc-check, do not produce spurious errors if no GCC3 at all. Small patch thanks to Prashanth.Mundkur@citrix.com. Signed-off-by: Ian Jackson --- diff --git a/configure b/configure index c1ab8506..99bb935d 100755 --- a/configure +++ b/configure @@ -1202,11 +1202,16 @@ case "$target_cpu" in fi echo "#define CONFIG_DYNGEN_OP 1" >> $config_h gcc3minver=`$cc --version 2> /dev/null| fgrep "(GCC) 3." | awk '{ print $3 }' | cut -f2 -d.` - if test -n "$gcc3minver" -a $gcc3minver -gt 3 + if test -n "$gcc3minver" then - echo "HAVE_GT_GCC_3_3=true" >> $config_mak + if test -a $gcc3minver -gt 3; + then + echo "HAVE_GT_GCC_3_3=true" >> $config_mak + else + echo "HAVE_GT_GCC_3_3=false" >> $config_mak + fi else - echo "HAVE_GT_GCC_3_3=false" >> $config_mak + echo "HAVE_GT_GCC_3_3=true" >> $config_mak fi ;; x86_64)