configure (598cf1c805271564686f2d732b36f50c3c40dcdd) configure (429b31a205bd3362a5eed22ca9b1a4c1b92f29f5)
1#!/bin/sh
2#
3# qemu configure script (c) 2003 Fabrice Bellard
4#
5
6# Unset some variables known to interfere with behavior of common tools,
7# just as autoconf does.
8CLICOLOR_FORCE= GREP_OPTIONS=

--- 214 unchanged lines hidden (view full) ---

223attr=""
224libattr=""
225xfs=""
226
227vhost_net="no"
228vhost_scsi="no"
229vhost_vsock="no"
230kvm="no"
1#!/bin/sh
2#
3# qemu configure script (c) 2003 Fabrice Bellard
4#
5
6# Unset some variables known to interfere with behavior of common tools,
7# just as autoconf does.
8CLICOLOR_FORCE= GREP_OPTIONS=

--- 214 unchanged lines hidden (view full) ---

223attr=""
224libattr=""
225xfs=""
226
227vhost_net="no"
228vhost_scsi="no"
229vhost_vsock="no"
230kvm="no"
231hax="no"
231colo="yes"
232rdma=""
233gprof="no"
234debug_tcg="no"
235debug="no"
236fortify_source=""
237strip_opt="yes"
238tcg_interpreter="no"
239bigendian="no"

--- 265 unchanged lines hidden (view full) ---

505 cpu="s390x"
506 else
507 cpu="s390"
508 fi
509elif check_define __arm__ ; then
510 cpu="arm"
511elif check_define __aarch64__ ; then
512 cpu="aarch64"
232rdma=""
233gprof="no"
234debug_tcg="no"
235debug="no"
236fortify_source=""
237strip_opt="yes"
238tcg_interpreter="no"
239bigendian="no"

--- 265 unchanged lines hidden (view full) ---

505 cpu="s390x"
506 else
507 cpu="s390"
508 fi
509elif check_define __arm__ ; then
510 cpu="arm"
511elif check_define __aarch64__ ; then
512 cpu="aarch64"
513elif check_define __hppa__ ; then
514 cpu="hppa"
513else
514 cpu=$(uname -m)
515fi
516
517ARCH=
518# Normalise host CPU name and set ARCH.
519# Note that this case should only have supported host CPUs, not guests.
520case "$cpu" in

--- 36 unchanged lines hidden (view full) ---

557CYGWIN*)
558 mingw32="yes"
559 QEMU_CFLAGS="-mno-cygwin $QEMU_CFLAGS"
560 audio_possible_drivers="sdl"
561 audio_drv_list="sdl"
562;;
563MINGW32*)
564 mingw32="yes"
515else
516 cpu=$(uname -m)
517fi
518
519ARCH=
520# Normalise host CPU name and set ARCH.
521# Note that this case should only have supported host CPUs, not guests.
522case "$cpu" in

--- 36 unchanged lines hidden (view full) ---

559CYGWIN*)
560 mingw32="yes"
561 QEMU_CFLAGS="-mno-cygwin $QEMU_CFLAGS"
562 audio_possible_drivers="sdl"
563 audio_drv_list="sdl"
564;;
565MINGW32*)
566 mingw32="yes"
565 hax="yes"
566 audio_possible_drivers="dsound sdl"
567 if check_include dsound.h; then
568 audio_drv_list="dsound"
569 else
570 audio_drv_list=""
571 fi
572;;
573GNU/kFreeBSD)

--- 33 unchanged lines hidden (view full) ---

607 make="${MAKE-gmake}"
608 audio_drv_list="sdl"
609 audio_possible_drivers="sdl"
610 HOST_VARIANT_DIR="openbsd"
611;;
612Darwin)
613 bsd="yes"
614 darwin="yes"
567 audio_possible_drivers="dsound sdl"
568 if check_include dsound.h; then
569 audio_drv_list="dsound"
570 else
571 audio_drv_list=""
572 fi
573;;
574GNU/kFreeBSD)

--- 33 unchanged lines hidden (view full) ---

608 make="${MAKE-gmake}"
609 audio_drv_list="sdl"
610 audio_possible_drivers="sdl"
611 HOST_VARIANT_DIR="openbsd"
612;;
613Darwin)
614 bsd="yes"
615 darwin="yes"
615 hax="yes"
616 LDFLAGS_SHARED="-bundle -undefined dynamic_lookup"
617 if [ "$cpu" = "x86_64" ] ; then
618 QEMU_CFLAGS="-arch x86_64 $QEMU_CFLAGS"
619 LDFLAGS="-arch x86_64 $LDFLAGS"
620 fi
621 cocoa="yes"
622 audio_drv_list="coreaudio"
623 audio_possible_drivers="coreaudio sdl"

--- 293 unchanged lines hidden (view full) ---

917 --disable-bluez) bluez="no"
918 ;;
919 --enable-bluez) bluez="yes"
920 ;;
921 --disable-kvm) kvm="no"
922 ;;
923 --enable-kvm) kvm="yes"
924 ;;
616 LDFLAGS_SHARED="-bundle -undefined dynamic_lookup"
617 if [ "$cpu" = "x86_64" ] ; then
618 QEMU_CFLAGS="-arch x86_64 $QEMU_CFLAGS"
619 LDFLAGS="-arch x86_64 $LDFLAGS"
620 fi
621 cocoa="yes"
622 audio_drv_list="coreaudio"
623 audio_possible_drivers="coreaudio sdl"

--- 293 unchanged lines hidden (view full) ---

917 --disable-bluez) bluez="no"
918 ;;
919 --enable-bluez) bluez="yes"
920 ;;
921 --disable-kvm) kvm="no"
922 ;;
923 --enable-kvm) kvm="yes"
924 ;;
925 --disable-hax) hax="no"
925 --disable-colo) colo="no"
926 ;;
926 ;;
927 --enable-hax) hax="yes"
927 --enable-colo) colo="yes"
928 ;;
929 --disable-tcg-interpreter) tcg_interpreter="no"
930 ;;
931 --enable-tcg-interpreter) tcg_interpreter="yes"
932 ;;
933 --disable-cap-ng) cap_ng="no"
934 ;;
935 --enable-cap-ng) cap_ng="yes"

--- 433 unchanged lines hidden (view full) ---

1369 virtfs VirtFS
1370 xen xen backend driver support
1371 xen-pci-passthrough
1372 brlapi BrlAPI (Braile)
1373 curl curl connectivity
1374 fdt fdt device tree
1375 bluez bluez stack connectivity
1376 kvm KVM acceleration support
928 ;;
929 --disable-tcg-interpreter) tcg_interpreter="no"
930 ;;
931 --enable-tcg-interpreter) tcg_interpreter="yes"
932 ;;
933 --disable-cap-ng) cap_ng="no"
934 ;;
935 --enable-cap-ng) cap_ng="yes"

--- 433 unchanged lines hidden (view full) ---

1369 virtfs VirtFS
1370 xen xen backend driver support
1371 xen-pci-passthrough
1372 brlapi BrlAPI (Braile)
1373 curl curl connectivity
1374 fdt fdt device tree
1375 bluez bluez stack connectivity
1376 kvm KVM acceleration support
1377 hax HAX acceleration support
1377 colo COarse-grain LOck-stepping VM for Non-stop Service
1378 rdma RDMA-based migration support
1379 vde support for vde network
1380 netmap support for netmap network
1381 linux-aio Linux AIO support
1382 cap-ng libcap-ng support
1383 attr attr and xattr support
1384 vhost-net vhost-net acceleration support
1385 spice spice

--- 1688 unchanged lines hidden (view full) ---

3074 error_exit "sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T."\
3075 "You probably need to set PKG_CONFIG_LIBDIR"\
3076 "to point to the right pkg-config files for your"\
3077 "build target"
3078fi
3079
3080# g_test_trap_subprocess added in 2.38. Used by some tests.
3081glib_subprocess=yes
1378 rdma RDMA-based migration support
1379 vde support for vde network
1380 netmap support for netmap network
1381 linux-aio Linux AIO support
1382 cap-ng libcap-ng support
1383 attr attr and xattr support
1384 vhost-net vhost-net acceleration support
1385 spice spice

--- 1688 unchanged lines hidden (view full) ---

3074 error_exit "sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T."\
3075 "You probably need to set PKG_CONFIG_LIBDIR"\
3076 "to point to the right pkg-config files for your"\
3077 "build target"
3078fi
3079
3080# g_test_trap_subprocess added in 2.38. Used by some tests.
3081glib_subprocess=yes
3082if ! $pkg_config --atleast-version=2.38 glib-2.0; then
3082if test "$mingw32" = "yes" || ! $pkg_config --atleast-version=2.38 glib-2.0; then
3083 glib_subprocess=no
3084fi
3085
3086# Silence clang 3.5.0 warnings about glib attribute __alloc_size__ usage
3087cat > $TMPC << EOF
3088#include <glib.h>
3089int main(void) { return 0; }
3090EOF

--- 1968 unchanged lines hidden (view full) ---

5059echo "Documentation $docs"
5060echo "PIE $pie"
5061echo "vde support $vde"
5062echo "netmap support $netmap"
5063echo "Linux AIO support $linux_aio"
5064echo "ATTR/XATTR support $attr"
5065echo "Install blobs $blobs"
5066echo "KVM support $kvm"
3083 glib_subprocess=no
3084fi
3085
3086# Silence clang 3.5.0 warnings about glib attribute __alloc_size__ usage
3087cat > $TMPC << EOF
3088#include <glib.h>
3089int main(void) { return 0; }
3090EOF

--- 1968 unchanged lines hidden (view full) ---

5059echo "Documentation $docs"
5060echo "PIE $pie"
5061echo "vde support $vde"
5062echo "netmap support $netmap"
5063echo "Linux AIO support $linux_aio"
5064echo "ATTR/XATTR support $attr"
5065echo "Install blobs $blobs"
5066echo "KVM support $kvm"
5067echo "HAX support $hax"
5067echo "COLO support $colo"
5068echo "RDMA support $rdma"
5069echo "TCG interpreter $tcg_interpreter"
5070echo "fdt support $fdt"
5071echo "preadv support $preadv"
5072echo "fdatasync $fdatasync"
5073echo "madvise $madvise"
5074echo "posix_madvise $posix_madvise"
5075echo "libcap-ng support $cap_ng"

--- 622 unchanged lines hidden (view full) ---

5698 if test "$posix_syslog" = "yes" ; then
5699 echo "CONFIG_TRACE_SYSLOG=y" >> $config_host_mak
5700 else
5701 feature_not_found "syslog(trace backend)" "syslog not available"
5702 fi
5703fi
5704echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak
5705
5068echo "RDMA support $rdma"
5069echo "TCG interpreter $tcg_interpreter"
5070echo "fdt support $fdt"
5071echo "preadv support $preadv"
5072echo "fdatasync $fdatasync"
5073echo "madvise $madvise"
5074echo "posix_madvise $posix_madvise"
5075echo "libcap-ng support $cap_ng"

--- 622 unchanged lines hidden (view full) ---

5698 if test "$posix_syslog" = "yes" ; then
5699 echo "CONFIG_TRACE_SYSLOG=y" >> $config_host_mak
5700 else
5701 feature_not_found "syslog(trace backend)" "syslog not available"
5702 fi
5703fi
5704echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak
5705
5706if test "$colo" = "yes"; then
5707 echo "CONFIG_COLO=y" >> $config_host_mak
5708fi
5709
5706if test "$rdma" = "yes" ; then
5707 echo "CONFIG_RDMA=y" >> $config_host_mak
5708fi
5709
5710if test "$have_rtnetlink" = "yes" ; then
5711 echo "CONFIG_RTNETLINK=y" >> $config_host_mak
5712fi
5713

--- 329 unchanged lines hidden (view full) ---

6043 \( "$target_name" = "i386" -a "$cpu" = "x32" \) \) ; then
6044 echo "CONFIG_KVM=y" >> $config_target_mak
6045 if test "$vhost_net" = "yes" ; then
6046 echo "CONFIG_VHOST_NET=y" >> $config_target_mak
6047 echo "CONFIG_VHOST_NET_TEST_$target_name=y" >> $config_host_mak
6048 fi
6049 fi
6050esac
5710if test "$rdma" = "yes" ; then
5711 echo "CONFIG_RDMA=y" >> $config_host_mak
5712fi
5713
5714if test "$have_rtnetlink" = "yes" ; then
5715 echo "CONFIG_RTNETLINK=y" >> $config_host_mak
5716fi
5717

--- 329 unchanged lines hidden (view full) ---

6047 \( "$target_name" = "i386" -a "$cpu" = "x32" \) \) ; then
6048 echo "CONFIG_KVM=y" >> $config_target_mak
6049 if test "$vhost_net" = "yes" ; then
6050 echo "CONFIG_VHOST_NET=y" >> $config_target_mak
6051 echo "CONFIG_VHOST_NET_TEST_$target_name=y" >> $config_host_mak
6052 fi
6053 fi
6054esac
6051if test "$hax" = "yes" ; then
6052 if test "$target_softmmu" = "yes" ; then
6053 case "$target_name" in
6054 i386|x86_64)
6055 echo "CONFIG_HAX=y" >> $config_target_mak
6056 ;;
6057 esac
6058 fi
6059fi
6060if test "$target_bigendian" = "yes" ; then
6061 echo "TARGET_WORDS_BIGENDIAN=y" >> $config_target_mak
6062fi
6063if test "$target_softmmu" = "yes" ; then
6064 echo "CONFIG_SOFTMMU=y" >> $config_target_mak
6065fi
6066if test "$target_user_only" = "yes" ; then
6067 echo "CONFIG_USER_ONLY=y" >> $config_target_mak

--- 41 unchanged lines hidden (view full) ---

6109 disas_config "ARM"
6110 if test -n "${cxx}"; then
6111 disas_config "ARM_A64"
6112 fi
6113 ;;
6114 cris)
6115 disas_config "CRIS"
6116 ;;
6055if test "$target_bigendian" = "yes" ; then
6056 echo "TARGET_WORDS_BIGENDIAN=y" >> $config_target_mak
6057fi
6058if test "$target_softmmu" = "yes" ; then
6059 echo "CONFIG_SOFTMMU=y" >> $config_target_mak
6060fi
6061if test "$target_user_only" = "yes" ; then
6062 echo "CONFIG_USER_ONLY=y" >> $config_target_mak

--- 41 unchanged lines hidden (view full) ---

6104 disas_config "ARM"
6105 if test -n "${cxx}"; then
6106 disas_config "ARM_A64"
6107 fi
6108 ;;
6109 cris)
6110 disas_config "CRIS"
6111 ;;
6112 hppa)
6113 disas_config "HPPA"
6114 ;;
6117 i386|x86_64|x32)
6118 disas_config "I386"
6119 ;;
6120 ia64*)
6121 disas_config "IA64"
6122 ;;
6123 lm32)
6124 disas_config "LM32"

--- 165 unchanged lines hidden ---
6115 i386|x86_64|x32)
6116 disas_config "I386"
6117 ;;
6118 ia64*)
6119 disas_config "IA64"
6120 ;;
6121 lm32)
6122 disas_config "LM32"

--- 165 unchanged lines hidden ---