All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: sol10x86@cox.net, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Patch to make configure /bin/sh compatible
Date: Fri, 14 Apr 2006 18:22:16 +0100	[thread overview]
Message-ID: <20060414172216.GG4696@networkno.de> (raw)
In-Reply-To: <20060414155705.VTQX18886.eastrmmtao06.cox.net@[172.18.52.8]>

Ben Taylor wrote:
> This is a patch to make configure truly /bin/sh compatible,
> as well as changing some logic to remove "echo -n" for
> output to files, as "echo -n" is not consistent among
> environments.
> 
> This is against the latest cvs branch, and I appreciate
> any feedback.

[snip]
> @@ -294,7 +295,7 @@
>          target_list="i386-user arm-user armeb-user sparc-user ppc-user mips-user mipsel-user $target_list"
>      fi
>  else
> -    target_list=$(echo "$target_list" | sed -e 's/,/ /g')
> +    target_list=`echo "$target_list" | sed -e 's/,/ /g'`

A standard-conforming /bin/sh should be capable of handling this.

>  fi
>  if test -z "$target_list" ; then
>      echo "No targets enabled"
> @@ -348,12 +349,12 @@
>  # Check for gcc4
>  if test "$check_gcc" = "yes" ; then
>      cat > $TMPC <<EOF
> -#if __GNUC__ >= 4
> +#if __GNUC__ < 4
>  #error gcc4
>  #endif
>  int main(){return 0;}
>  EOF
> -    if ! $cc -o $TMPO $TMPC 2>/dev/null ; then
> +    if $cc -o $TMPO $TMPC 2>/dev/null ; then
>          echo "ERROR: \"$cc\" looks like gcc 4.x"
>          echo "QEMU is known to have problems when compiled with gcc 4.x"
>          echo "It is recommended that you use gcc 3.x to build QEMU"

This looks weird, to error out if gcc is a good version. Wouldn't
something like

gcc -dM -E -xc /dev/null |awk '{ if (/__GNUC__/) print $3 }'

be simpler to find out the gcc major version?


Thiemo

  reply	other threads:[~2006-04-14 17:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-14 15:57 [Qemu-devel] Patch to make configure /bin/sh compatible Ben Taylor
2006-04-14 17:22 ` Thiemo Seufer [this message]
2006-04-14 17:38   ` Michael McConnell
2006-04-14 17:39   ` Anderson Lizardo
  -- strict thread matches above, loose matches on Subject: below --
2006-04-14 17:43 Ben Taylor
2006-04-14 17:57 ` Thiemo Seufer
     [not found] <BAY0-MC6-F17UW5RmrG0011a6d8@bay0-mc6-f17.bay0.hotmail.com>
2006-04-20 15:08 ` Nathan Kunkee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060414172216.GG4696@networkno.de \
    --to=ths@networkno.de \
    --cc=qemu-devel@nongnu.org \
    --cc=sol10x86@cox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.