[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/30] configure: remove useless test
From: |
Paolo Bonzini |
Subject: |
[PATCH 03/30] configure: remove useless test |
Date: |
Fri, 9 Dec 2022 12:23:42 +0100 |
$cpu is derived from preprocessor defines rather than uname these days,
so do not bother using isainfo on Solaris. Likewise do not recognize
BeOS's uname -m output.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
configure | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/configure b/configure
index 543fd5a48bf0..db2b45740449 100755
--- a/configure
+++ b/configure
@@ -337,9 +337,6 @@ for opt do
;;
esac
done
-# OS specific
-# Using uname is really, really broken. Once we have the right set of checks
-# we can eliminate its usage altogether.
# Preferred compiler:
# ${CC} (if set)
@@ -489,13 +486,6 @@ sunos)
QEMU_CFLAGS="-D_XOPEN_SOURCE=600 $QEMU_CFLAGS"
# needed for TIOCWIN* defines in termios.h
QEMU_CFLAGS="-D__EXTENSIONS__ $QEMU_CFLAGS"
- # $(uname -m) returns i86pc even on an x86_64 box, so default based on
isainfo
- # Note that this check is broken for cross-compilation: if you're
- # cross-compiling to one of these OSes then you'll need to specify
- # the correct CPU with the --cpu option.
- if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then
- cpu="x86_64"
- fi
;;
haiku)
pie="no"
@@ -559,7 +549,7 @@ case "$cpu" in
armv*b|armv*l|arm)
cpu="arm" ;;
- i386|i486|i586|i686|i86pc|BePC)
+ i386|i486|i586|i686)
cpu="i386"
CPU_CFLAGS="-m32" ;;
x32)
--
2.38.1
- [PATCH for-8.0 00/30] Meson changes for QEMU 8.0, Paolo Bonzini, 2022/12/09
- [PATCH 02/30] configure: remove dead function, Paolo Bonzini, 2022/12/09
- [PATCH 04/30] configure: preserve qemu-ga variables, Paolo Bonzini, 2022/12/09
- [PATCH 03/30] configure: remove useless test,
Paolo Bonzini <=
- [PATCH 05/30] configure: remove backwards-compatibility and obsolete options, Paolo Bonzini, 2022/12/09
- [PATCH 13/30] configure: remove backwards-compatibility code, Paolo Bonzini, 2022/12/09
- [PATCH 10/30] meson: remove static_kwargs, Paolo Bonzini, 2022/12/09