[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] configure: some fixes for OpenBSD
From: |
Brad Smith |
Subject: |
[Qemu-devel] [PATCH] configure: some fixes for OpenBSD |
Date: |
Fri, 24 Aug 2012 05:47:39 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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 <address@hidden>
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.
- [Qemu-devel] [PATCH] configure: some fixes for OpenBSD,
Brad Smith <=