qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Brad Smith <brad@comstyle.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] configure: some fixes for OpenBSD
Date: Fri, 24 Aug 2012 05:47:39 -0400	[thread overview]
Message-ID: <20120824094738.GH29273@rox.home.comstyle.com> (raw)

OpenBSD's uname works as expected with the -s flag so remove the special
handling when determining the target OS. Use arch -s to retrieve the
hardware architecture as uname -m will return the meta architecture
instead of the hardware architecture (.e.g. macppc vs powerpc).


Signed-off-by: Brad Smith <brad@comstyle.com> 

diff --git a/configure b/configure
index d97fd81..6073dd2 100755
--- a/configure
+++ b/configure
@@ -303,8 +303,6 @@ if check_define __linux__ ; then
   targetos="Linux"
 elif check_define _WIN32 ; then
   targetos='MINGW32'
-elif check_define __OpenBSD__ ; then
-  targetos='OpenBSD'
 elif check_define __sun__ ; then
   targetos='SunOS'
 elif check_define __HAIKU__ ; then
@@ -332,6 +330,11 @@ SunOS)
   if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then
     cpu="x86_64"
   fi
+  ;;
+OpenBSD)
+  # 'uname -m' returns the meta arch macppc instead of the hw arch powerpc
+  cpu=`arch -s`
+  ;;
 esac
 
 if test ! -z "$cpu" ; then

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

             reply	other threads:[~2012-08-24  9:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24  9:47 Brad Smith [this message]
2012-08-24  9:55 ` [Qemu-devel] [PATCH] configure: some fixes for OpenBSD Peter Maydell
2012-08-24 10:03   ` Brad Smith
2012-08-24 11:56   ` Paolo Bonzini
2012-08-24 12:00     ` Brad Smith
2012-08-24 12:02       ` Paolo Bonzini
2012-08-24 12:15         ` Brad Smith

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=20120824094738.GH29273@rox.home.comstyle.com \
    --to=brad@comstyle.com \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).