mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
configure: do not limit Hypervisor.framework test to Darwin
Because the target/i386/hvf/meson.build rule culls hvf support on non-Darwin systems, a --enable-hvf build is succeeding. To fix this, just try the compilation test every time someone passes --enable-hvf. Reported-by: Christophe de Dinechin <dinechin@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b4e312e953
commit
61f8641644
8
configure
vendored
8
configure
vendored
@ -870,7 +870,7 @@ Darwin)
|
|||||||
bsd="yes"
|
bsd="yes"
|
||||||
darwin="yes"
|
darwin="yes"
|
||||||
hax="yes"
|
hax="yes"
|
||||||
hvf="yes"
|
hvf=""
|
||||||
if [ "$cpu" = "x86_64" ] ; then
|
if [ "$cpu" = "x86_64" ] ; then
|
||||||
QEMU_CFLAGS="-arch x86_64 $QEMU_CFLAGS"
|
QEMU_CFLAGS="-arch x86_64 $QEMU_CFLAGS"
|
||||||
QEMU_LDFLAGS="-arch x86_64 $QEMU_LDFLAGS"
|
QEMU_LDFLAGS="-arch x86_64 $QEMU_LDFLAGS"
|
||||||
@ -5823,16 +5823,18 @@ fi
|
|||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
# Check to see if we have the Hypervisor framework
|
# Check to see if we have the Hypervisor framework
|
||||||
if [ "$darwin" = "yes" ] ; then
|
if [ "$hvf" != "no" ] ; then
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <Hypervisor/hv.h>
|
#include <Hypervisor/hv.h>
|
||||||
int main() { return 0;}
|
int main() { return 0;}
|
||||||
EOF
|
EOF
|
||||||
if ! compile_object ""; then
|
if ! compile_object ""; then
|
||||||
|
if test "$hvf" = "yes"; then
|
||||||
|
error_exit "Hypervisor.framework not available"
|
||||||
|
fi
|
||||||
hvf='no'
|
hvf='no'
|
||||||
else
|
else
|
||||||
hvf='yes'
|
hvf='yes'
|
||||||
QEMU_LDFLAGS="-framework Hypervisor $QEMU_LDFLAGS"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user