~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to configure

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
TMPC="${TMPDIR1}/${TMPB}.c"
29
29
TMPO="${TMPDIR1}/${TMPB}.o"
30
30
TMPCXX="${TMPDIR1}/${TMPB}.cxx"
31
 
TMPL="${TMPDIR1}/${TMPB}.lo"
32
 
TMPA="${TMPDIR1}/lib${TMPB}.la"
33
31
TMPE="${TMPDIR1}/${TMPB}.exe"
34
32
TMPMO="${TMPDIR1}/${TMPB}.mo"
35
33
 
230
228
vhost_scsi="no"
231
229
vhost_vsock="no"
232
230
kvm="no"
233
 
colo="yes"
 
231
hax="no"
234
232
rdma=""
235
233
gprof="no"
236
234
debug_tcg="no"
303
301
glusterfs_xlator_opt="no"
304
302
glusterfs_discard="no"
305
303
glusterfs_zerofill="no"
306
 
archipelago="no"
307
304
gtk=""
308
305
gtkabi=""
309
306
gtk_gl="no"
313
310
nettle=""
314
311
nettle_kdf="no"
315
312
gcrypt=""
 
313
gcrypt_hmac="no"
316
314
gcrypt_kdf="no"
317
315
vte=""
318
316
virglrenderer=""
323
321
jemalloc="no"
324
322
replication="yes"
325
323
 
 
324
supported_cpu="no"
 
325
supported_os="no"
 
326
bogus_os="no"
 
327
 
326
328
# parse CC options first
327
329
for opt do
328
330
  optarg=$(expr "x$opt" : 'x[^=]*=\(.*\)')
519
521
# Normalise host CPU name and set ARCH.
520
522
# Note that this case should only have supported host CPUs, not guests.
521
523
case "$cpu" in
522
 
  ia64|ppc|ppc64|s390|s390x|sparc64|x32)
 
524
  ppc|ppc64|s390|s390x|sparc64|x32)
 
525
    cpu="$cpu"
 
526
    supported_cpu="yes"
 
527
  ;;
 
528
  ia64)
523
529
    cpu="$cpu"
524
530
  ;;
525
531
  i386|i486|i586|i686|i86pc|BePC)
526
532
    cpu="i386"
 
533
    supported_cpu="yes"
527
534
  ;;
528
535
  x86_64|amd64)
529
536
    cpu="x86_64"
 
537
    supported_cpu="yes"
530
538
  ;;
531
539
  armv*b|armv*l|arm)
532
540
    cpu="arm"
 
541
    supported_cpu="yes"
533
542
  ;;
534
543
  aarch64)
535
544
    cpu="aarch64"
 
545
    supported_cpu="yes"
536
546
  ;;
537
547
  mips*)
538
548
    cpu="mips"
 
549
    supported_cpu="yes"
539
550
  ;;
540
551
  sparc|sun4[cdmuv])
541
552
    cpu="sparc"
 
553
    supported_cpu="yes"
542
554
  ;;
543
555
  *)
544
556
    # This will result in either an error or falling back to TCI later
555
567
HOST_VARIANT_DIR=""
556
568
 
557
569
case $targetos in
558
 
CYGWIN*)
559
 
  mingw32="yes"
560
 
  QEMU_CFLAGS="-mno-cygwin $QEMU_CFLAGS"
561
 
  audio_possible_drivers="sdl"
562
 
  audio_drv_list="sdl"
563
 
;;
564
570
MINGW32*)
565
571
  mingw32="yes"
 
572
  hax="yes"
566
573
  audio_possible_drivers="dsound sdl"
567
574
  if check_include dsound.h; then
568
575
    audio_drv_list="dsound"
569
576
  else
570
577
    audio_drv_list=""
571
578
  fi
 
579
  supported_os="yes"
572
580
;;
573
581
GNU/kFreeBSD)
574
582
  bsd="yes"
586
594
  libs_qga="-lutil $libs_qga"
587
595
  netmap=""  # enable netmap autodetect
588
596
  HOST_VARIANT_DIR="freebsd"
 
597
  supported_os="yes"
589
598
;;
590
599
DragonFly)
591
600
  bsd="yes"
612
621
Darwin)
613
622
  bsd="yes"
614
623
  darwin="yes"
 
624
  hax="yes"
615
625
  LDFLAGS_SHARED="-bundle -undefined dynamic_lookup"
616
626
  if [ "$cpu" = "x86_64" ] ; then
617
627
    QEMU_CFLAGS="-arch x86_64 $QEMU_CFLAGS"
626
636
  # won't work when we're compiling with gcc as a C compiler.
627
637
  QEMU_CFLAGS="-DOS_OBJECT_USE_OBJC=0 $QEMU_CFLAGS"
628
638
  HOST_VARIANT_DIR="darwin"
 
639
  supported_os="yes"
629
640
;;
630
641
SunOS)
631
642
  solaris="yes"
672
683
  QEMU_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS $QEMU_CFLAGS"
673
684
  LIBS="-lposix_error_mapper -lnetwork $LIBS"
674
685
;;
675
 
*)
 
686
Linux)
676
687
  audio_drv_list="oss"
677
688
  audio_possible_drivers="oss alsa sdl pa"
678
689
  linux="yes"
682
693
  vhost_scsi="yes"
683
694
  vhost_vsock="yes"
684
695
  QEMU_INCLUDES="-I\$(SRC_PATH)/linux-headers -I$(pwd)/linux-headers $QEMU_INCLUDES"
 
696
  supported_os="yes"
 
697
;;
 
698
*)
 
699
  # This is a fatal error, but don't report it yet, because we
 
700
  # might be going to just print the --help text, or it might
 
701
  # be the result of a missing compiler.
 
702
  bogus_os="yes"
685
703
;;
686
704
esac
687
705
 
921
939
  ;;
922
940
  --enable-kvm) kvm="yes"
923
941
  ;;
924
 
  --disable-colo) colo="no"
 
942
  --disable-hax) hax="no"
925
943
  ;;
926
 
  --enable-colo) colo="yes"
 
944
  --enable-hax) hax="yes"
927
945
  ;;
928
946
  --disable-tcg-interpreter) tcg_interpreter="no"
929
947
  ;;
1100
1118
  ;;
1101
1119
  --enable-glusterfs) glusterfs="yes"
1102
1120
  ;;
1103
 
  --disable-archipelago) archipelago="no"
1104
 
  ;;
1105
 
  --enable-archipelago) archipelago="yes"
1106
 
  ;;
1107
1121
  --disable-virtio-blk-data-plane|--enable-virtio-blk-data-plane)
1108
1122
      echo "$0: $opt is obsolete, virtio-blk data-plane is always on" >&2
1109
1123
  ;;
1334
1348
  --with-vss-sdk=SDK-path  enable Windows VSS support in QEMU Guest Agent
1335
1349
  --with-win-sdk=SDK-path  path to Windows Platform SDK (to build VSS .tlb)
1336
1350
  --tls-priority           default TLS protocol/cipher priority string
 
1351
  --enable-gprof           QEMU profiling with gprof
 
1352
  --enable-profiler        profiler support
 
1353
  --enable-xen-pv-domain-build
 
1354
                           xen pv domain builder
 
1355
  --enable-debug-stack-usage
 
1356
                           track the maximum stack usage of stacks created by qemu_alloc_stack
1337
1357
 
1338
1358
Optional features, enabled with --enable-FEATURE and
1339
1359
disabled with --disable-FEATURE, default is enabled if available:
1373
1393
  fdt             fdt device tree
1374
1394
  bluez           bluez stack connectivity
1375
1395
  kvm             KVM acceleration support
1376
 
  colo            COarse-grain LOck-stepping VM for Non-stop Service
 
1396
  hax             HAX acceleration support
1377
1397
  rdma            RDMA-based migration support
1378
1398
  vde             support for vde network
1379
1399
  netmap          support for netmap network
1395
1415
  seccomp         seccomp support
1396
1416
  coroutine-pool  coroutine freelist (better performance)
1397
1417
  glusterfs       GlusterFS backend
1398
 
  archipelago     Archipelago backend
1399
1418
  tpm             TPM support
1400
1419
  libssh2         ssh block device support
1401
1420
  numa            libnuma support
1402
1421
  tcmalloc        tcmalloc support
1403
1422
  jemalloc        jemalloc support
1404
1423
  replication     replication support
 
1424
  vhost-vsock     virtio sockets device support
 
1425
  opengl          opengl support
 
1426
  virglrenderer   virgl rendering support
 
1427
  xfsctl          xfsctl support
 
1428
  qom-cast-debug  cast debugging support
 
1429
  tools           build qemu-io, qemu-nbd and qemu-image tools
1405
1430
 
1406
1431
NOTE: The object files are built at the place where configure is launched
1407
1432
EOF
1440
1465
    error_exit "\"$cc\" cannot build an executable (is your linker broken?)"
1441
1466
fi
1442
1467
 
 
1468
if test "$bogus_os" = "yes"; then
 
1469
    # Now that we know that we're not printing the help and that
 
1470
    # the compiler works (so the results of the check_defines we used
 
1471
    # to identify the OS are reliable), if we didn't recognize the
 
1472
    # host OS we should stop now.
 
1473
    error_exit "Unrecognized host OS $targetos"
 
1474
fi
 
1475
 
1443
1476
# Check that the C++ compiler exists and works with the C compiler
1444
1477
if has $cxx; then
1445
1478
    cat > $TMPC <<EOF
1473
1506
 
1474
1507
gcc_flags="-Wold-style-declaration -Wold-style-definition -Wtype-limits"
1475
1508
gcc_flags="-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers $gcc_flags"
1476
 
gcc_flags="-Wmissing-include-dirs -Wempty-body -Wnested-externs $gcc_flags"
 
1509
gcc_flags="-Wno-missing-include-dirs -Wempty-body -Wnested-externs $gcc_flags"
1477
1510
gcc_flags="-Wendif-labels -Wno-shift-negative-value $gcc_flags"
1478
1511
gcc_flags="-Wno-initializer-overrides $gcc_flags"
1479
1512
gcc_flags="-Wno-string-plus-int $gcc_flags"
2417
2450
        if compile_prog "$gcrypt_cflags" "$gcrypt_libs" ; then
2418
2451
            gcrypt_kdf=yes
2419
2452
        fi
 
2453
 
 
2454
        cat > $TMPC << EOF
 
2455
#include <gcrypt.h>
 
2456
int main(void) {
 
2457
  gcry_mac_hd_t handle;
 
2458
  gcry_mac_open(&handle, GCRY_MAC_HMAC_MD5,
 
2459
                GCRY_MAC_FLAG_SECURE, NULL);
 
2460
  return 0;
 
2461
}
 
2462
EOF
 
2463
        if compile_prog "$gcrypt_cflags" "$gcrypt_libs" ; then
 
2464
            gcrypt_hmac=yes
 
2465
        fi
2420
2466
    else
2421
2467
        if test "$gcrypt" = "yes"; then
2422
2468
            feature_not_found "gcrypt" "Install gcrypt devel"
2738
2784
fi
2739
2785
 
2740
2786
##########################################
2741
 
# xfsctl() probe, used for raw-posix
 
2787
# xfsctl() probe, used for file-posix.c
2742
2788
if test "$xfs" != "no" ; then
2743
2789
  cat > $TMPC << EOF
2744
2790
#include <stddef.h>  /* NULL */
2874
2920
    audio_pt_int="yes"
2875
2921
    ;;
2876
2922
 
 
2923
    sdl)
 
2924
    if test "$sdl" = "no"; then
 
2925
        error_exit "sdl not found or disabled, can not use sdl audio driver"
 
2926
    fi
 
2927
    ;;
 
2928
 
2877
2929
    coreaudio)
2878
2930
      libs_softmmu="-framework CoreAudio $libs_softmmu"
2879
2931
    ;;
2887
2939
      libs_softmmu="$oss_lib $libs_softmmu"
2888
2940
    ;;
2889
2941
 
2890
 
    sdl|wav)
2891
 
    # XXX: Probes for CoreAudio, DirectSound, SDL(?)
 
2942
    wav)
 
2943
    # XXX: Probes for CoreAudio, DirectSound
2892
2944
    ;;
2893
2945
 
2894
2946
    *)
3021
3073
##########################################
3022
3074
# glib support probe
3023
3075
 
3024
 
glib_req_ver=2.22
 
3076
if test "$mingw32" = yes; then
 
3077
    glib_req_ver=2.30
 
3078
else
 
3079
    glib_req_ver=2.22
 
3080
fi
3025
3081
glib_modules=gthread-2.0
3026
3082
if test "$modules" = yes; then
3027
3083
    glib_modules="$glib_modules gmodule-2.0"
3028
3084
fi
3029
3085
 
 
3086
# This workaround is required due to a bug in pkg-config file for glib as it
 
3087
# doesn't define GLIB_STATIC_COMPILATION for pkg-config --static
 
3088
 
 
3089
if test "$static" = yes -a "$mingw32" = yes; then
 
3090
    QEMU_CFLAGS="-DGLIB_STATIC_COMPILATION $QEMU_CFLAGS"
 
3091
fi
 
3092
 
3030
3093
for i in $glib_modules; do
3031
3094
    if $pkg_config --atleast-version=$glib_req_ver $i; then
3032
3095
        glib_cflags=$($pkg_config --cflags $i)
3065
3128
 
3066
3129
# g_test_trap_subprocess added in 2.38. Used by some tests.
3067
3130
glib_subprocess=yes
3068
 
if test "$mingw32" = "yes" || ! $pkg_config --atleast-version=2.38 glib-2.0; then
 
3131
if ! $pkg_config --atleast-version=2.38 glib-2.0; then
3069
3132
    glib_subprocess=no
3070
3133
fi
3071
3134
 
3364
3427
fdt_required=no
3365
3428
for target in $target_list; do
3366
3429
  case $target in
3367
 
    aarch64*-softmmu|arm*-softmmu|ppc*-softmmu|microblaze*-softmmu)
 
3430
    aarch64*-softmmu|arm*-softmmu|ppc*-softmmu|microblaze*-softmmu|mips64el-softmmu)
3368
3431
      fdt_required=yes
3369
3432
    ;;
3370
3433
  esac
3382
3445
if test "$fdt" != "no" ; then
3383
3446
  fdt_libs="-lfdt"
3384
3447
  # explicitly check for libfdt_env.h as it is missing in some stable installs
3385
 
  # and test for required functions to make sure we are on a version >= 1.4.0
 
3448
  # and test for required functions to make sure we are on a version >= 1.4.2
3386
3449
  cat > $TMPC << EOF
3387
3450
#include <libfdt.h>
3388
3451
#include <libfdt_env.h>
3389
 
int main(void) { fdt_get_property_by_offset(0, 0, 0); return 0; }
 
3452
int main(void) { fdt_first_subnode(0, 0); return 0; }
3390
3453
EOF
3391
3454
  if compile_prog "" "$fdt_libs" ; then
3392
3455
    # system DTC is good - use it
3404
3467
    fdt_libs="-L\$(BUILD_DIR)/dtc/libfdt $fdt_libs"
3405
3468
  elif test "$fdt" = "yes" ; then
3406
3469
    # have neither and want - prompt for system/submodule install
3407
 
    error_exit "DTC (libfdt) version >= 1.4.0 not present. Your options:" \
 
3470
    error_exit "DTC (libfdt) version >= 1.4.2 not present. Your options:" \
3408
3471
        "  (1) Preferred: Install the DTC (libfdt) devel package" \
3409
3472
        "  (2) Fetch the DTC submodule, using:" \
3410
3473
        "      git submodule update --init dtc"
3429
3492
    if test "$gtk" = "yes" && $pkg_config --exists "$gtkpackage >= 3.16"; then
3430
3493
        gtk_gl="yes"
3431
3494
    fi
 
3495
    QEMU_CFLAGS="$QEMU_CFLAGS $opengl_cflags"
3432
3496
  else
3433
3497
    if test "$opengl" = "yes" ; then
3434
3498
      feature_not_found "opengl" "Please install opengl (mesa) devel pkgs: $opengl_pkgs"
3452
3516
  fi
3453
3517
fi
3454
3518
 
3455
 
##########################################
3456
 
# archipelago probe
3457
 
if test "$archipelago" != "no" ; then
3458
 
    cat > $TMPC <<EOF
3459
 
#include <stdio.h>
3460
 
#include <xseg/xseg.h>
3461
 
#include <xseg/protocol.h>
3462
 
int main(void) {
3463
 
    xseg_initialize();
3464
 
    return 0;
3465
 
}
3466
 
EOF
3467
 
    archipelago_libs=-lxseg
3468
 
    if compile_prog "" "$archipelago_libs"; then
3469
 
        archipelago="yes"
3470
 
        libs_tools="$archipelago_libs $libs_tools"
3471
 
        libs_softmmu="$archipelago_libs $libs_softmmu"
3472
 
 
3473
 
        echo "WARNING: Please check the licenses of QEMU and libxseg carefully."
3474
 
        echo "GPLv3 versions of libxseg may not be compatible with QEMU's"
3475
 
        echo "license and therefore prevent redistribution."
3476
 
        echo
3477
 
        echo "To disable Archipelago, use --disable-archipelago"
3478
 
    else
3479
 
      if test "$archipelago" = "yes" ; then
3480
 
        feature_not_found "Archipelago backend support" "Install libxseg devel"
3481
 
      fi
3482
 
      archipelago="no"
3483
 
    fi
3484
 
fi
3485
 
 
3486
3519
 
3487
3520
##########################################
3488
3521
# glusterfs probe
3552
3585
#include <fcntl.h>
3553
3586
#include <sys/stat.h>
3554
3587
 
3555
 
#if defined __stub_futimens || defined __stub___futimens
3556
 
choke me
3557
 
#endif
3558
 
 
3559
 
#if defined __stub_utimensat || defined __stub___utimensat
3560
 
choke me
3561
 
#endif
3562
 
 
3563
3588
int main(void)
3564
3589
{
3565
3590
    utimensat(AT_FDCWD, "foo", NULL, 0);
3577
3602
#include <unistd.h>
3578
3603
#include <fcntl.h>
3579
3604
 
3580
 
#if defined __stub_pipe2 || defined __stub___pipe2
3581
 
choke me
3582
 
#endif
3583
 
 
3584
3605
int main(void)
3585
3606
{
3586
3607
    int pipefd[2];
4746
4767
fi
4747
4768
 
4748
4769
##########################################
 
4770
# check for sysmacros.h
 
4771
 
 
4772
have_sysmacros=no
 
4773
cat > $TMPC << EOF
 
4774
#include <sys/sysmacros.h>
 
4775
int main(void) {
 
4776
    return makedev(0, 0);
 
4777
}
 
4778
EOF
 
4779
if compile_prog "" "" ; then
 
4780
    have_sysmacros=yes
 
4781
fi
 
4782
 
 
4783
##########################################
4749
4784
# End of CC checks
4750
4785
# After here, no more $cc or $ld runs
4751
4786
 
5062
5097
echo "ATTR/XATTR support $attr"
5063
5098
echo "Install blobs     $blobs"
5064
5099
echo "KVM support       $kvm"
5065
 
echo "COLO support      $colo"
 
5100
echo "HAX support       $hax"
5066
5101
echo "RDMA support      $rdma"
5067
5102
echo "TCG interpreter   $tcg_interpreter"
5068
5103
echo "fdt support       $fdt"
5097
5132
echo "coroutine pool    $coroutine_pool"
5098
5133
echo "debug stack usage $debug_stack_usage"
5099
5134
echo "GlusterFS support $glusterfs"
5100
 
echo "Archipelago support $archipelago"
5101
5135
echo "gcov              $gcov_tool"
5102
5136
echo "gcov enabled      $gcov"
5103
5137
echo "TPM support       $tpm"
5117
5151
echo "-> Your SDL version is too old - please upgrade to have SDL support"
5118
5152
fi
5119
5153
 
 
5154
if test "$supported_cpu" = "no"; then
 
5155
    echo
 
5156
    echo "WARNING: SUPPORT FOR THIS HOST CPU WILL GO AWAY IN FUTURE RELEASES!"
 
5157
    echo
 
5158
    echo "CPU host architecture $cpu support is not currently maintained."
 
5159
    echo "The QEMU project intends to remove support for this host CPU in"
 
5160
    echo "a future release if nobody volunteers to maintain it and to"
 
5161
    echo "provide a build host for our continuous integration setup."
 
5162
    echo "configure has succeeded and you can continue to build, but"
 
5163
    echo "if you care about QEMU on this platform you should contact"
 
5164
    echo "us upstream at qemu-devel@nongnu.org."
 
5165
fi
 
5166
 
 
5167
if test "$supported_os" = "no"; then
 
5168
    echo
 
5169
    echo "WARNING: SUPPORT FOR THIS HOST OS WILL GO AWAY IN FUTURE RELEASES!"
 
5170
    echo
 
5171
    echo "Host OS $targetos support is not currently maintained."
 
5172
    echo "The QEMU project intends to remove support for this host OS in"
 
5173
    echo "a future release if nobody volunteers to maintain it and to"
 
5174
    echo "provide a build host for our continuous integration setup."
 
5175
    echo "configure has succeeded and you can continue to build, but"
 
5176
    echo "if you care about QEMU on this platform you should contact"
 
5177
    echo "us upstream at qemu-devel@nongnu.org."
 
5178
fi
 
5179
 
5120
5180
config_host_mak="config-host.mak"
5121
5181
 
5122
5182
echo "# Automatically generated by configure - do not modify" >config-all-disas.mak
5399
5459
fi
5400
5460
if test "$gcrypt" = "yes" ; then
5401
5461
  echo "CONFIG_GCRYPT=y" >> $config_host_mak
 
5462
  if test "$gcrypt_hmac" = "yes" ; then
 
5463
    echo "CONFIG_GCRYPT_HMAC=y" >> $config_host_mak
 
5464
  fi
5402
5465
  if test "$gcrypt_kdf" = "yes" ; then
5403
5466
    echo "CONFIG_GCRYPT_KDF=y" >> $config_host_mak
5404
5467
  fi
5510
5573
 
5511
5574
if test "$opengl" = "yes" ; then
5512
5575
  echo "CONFIG_OPENGL=y" >> $config_host_mak
5513
 
  echo "OPENGL_CFLAGS=$opengl_cflags" >> $config_host_mak
5514
5576
  echo "OPENGL_LIBS=$opengl_libs" >> $config_host_mak
5515
5577
  if test "$opengl_dmabuf" = "yes" ; then
5516
5578
    echo "CONFIG_OPENGL_DMABUF=y" >> $config_host_mak
5635
5697
  echo "CONFIG_GLUSTERFS_ZEROFILL=y" >> $config_host_mak
5636
5698
fi
5637
5699
 
5638
 
if test "$archipelago" = "yes" ; then
5639
 
  echo "CONFIG_ARCHIPELAGO=m" >> $config_host_mak
5640
 
  echo "ARCHIPELAGO_LIBS=$archipelago_libs" >> $config_host_mak
5641
 
fi
5642
 
 
5643
5700
if test "$libssh2" = "yes" ; then
5644
5701
  echo "CONFIG_LIBSSH2=m" >> $config_host_mak
5645
5702
  echo "LIBSSH2_CFLAGS=$libssh2_cflags" >> $config_host_mak
5698
5755
fi
5699
5756
echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak
5700
5757
 
5701
 
if test "$colo" = "yes"; then
5702
 
  echo "CONFIG_COLO=y" >> $config_host_mak
5703
 
fi
5704
 
 
5705
5758
if test "$rdma" = "yes" ; then
5706
5759
  echo "CONFIG_RDMA=y" >> $config_host_mak
5707
5760
fi
5718
5771
  echo "CONFIG_AF_VSOCK=y" >> $config_host_mak
5719
5772
fi
5720
5773
 
 
5774
if test "$have_sysmacros" = "yes" ; then
 
5775
  echo "CONFIG_SYSMACROS=y" >> $config_host_mak
 
5776
fi
 
5777
 
5721
5778
# Hold two types of flag:
5722
5779
#   CONFIG_THREAD_SETNAME_BYTHREAD  - we've got a way of setting the name on
5723
5780
#                                     a thread we have a handle to
5842
5899
target_bigendian="no"
5843
5900
 
5844
5901
case "$target_name" in
5845
 
  armeb|lm32|m68k|microblaze|mips|mipsn32|mips64|moxie|or32|ppc|ppcemb|ppc64|ppc64abi32|s390x|sh4eb|sparc|sparc64|sparc32plus|xtensaeb)
 
5902
  armeb|hppa|lm32|m68k|microblaze|mips|mipsn32|mips64|moxie|or1k|ppc|ppcemb|ppc64|ppc64abi32|s390x|sh4eb|sparc|sparc64|sparc32plus|xtensaeb)
5846
5903
  target_bigendian=yes
5847
5904
  ;;
5848
5905
esac
5878
5935
echo "# Automatically generated by configure - do not modify" > $config_target_mak
5879
5936
 
5880
5937
bflt="no"
 
5938
mttcg="no"
5881
5939
interp_prefix1=$(echo "$interp_prefix" | sed "s/%M/$target_name/g")
5882
5940
gdb_xml_files=""
5883
5941
 
5892
5950
    TARGET_BASE_ARCH=i386
5893
5951
  ;;
5894
5952
  alpha)
 
5953
    mttcg="yes"
5895
5954
  ;;
5896
5955
  arm|armeb)
5897
5956
    TARGET_ARCH=arm
5898
5957
    bflt="yes"
 
5958
    mttcg="yes"
5899
5959
    gdb_xml_files="arm-core.xml arm-vfp.xml arm-vfp3.xml arm-neon.xml"
5900
5960
  ;;
5901
5961
  aarch64)
5902
5962
    TARGET_BASE_ARCH=arm
5903
5963
    bflt="yes"
 
5964
    mttcg="yes"
5904
5965
    gdb_xml_files="aarch64-core.xml aarch64-fpu.xml arm-core.xml arm-vfp.xml arm-vfp3.xml arm-neon.xml"
5905
5966
  ;;
5906
5967
  cris)
5907
5968
  ;;
 
5969
  hppa)
 
5970
  ;;
5908
5971
  lm32)
5909
5972
  ;;
5910
5973
  m68k)
5932
5995
  ;;
5933
5996
  moxie)
5934
5997
  ;;
5935
 
  or32)
 
5998
  nios2)
 
5999
  ;;
 
6000
  or1k)
5936
6001
    TARGET_ARCH=openrisc
5937
6002
    TARGET_BASE_ARCH=openrisc
5938
6003
  ;;
6047
6112
      fi
6048
6113
    fi
6049
6114
esac
 
6115
if test "$hax" = "yes" ; then
 
6116
  if test "$target_softmmu" = "yes" ; then
 
6117
    case "$target_name" in
 
6118
    i386|x86_64)
 
6119
      echo "CONFIG_HAX=y" >> $config_target_mak
 
6120
    ;;
 
6121
    esac
 
6122
  fi
 
6123
fi
6050
6124
if test "$target_bigendian" = "yes" ; then
6051
6125
  echo "TARGET_WORDS_BIGENDIAN=y" >> $config_target_mak
6052
6126
fi
6053
6127
if test "$target_softmmu" = "yes" ; then
6054
6128
  echo "CONFIG_SOFTMMU=y" >> $config_target_mak
 
6129
  if test "$mttcg" = "yes" ; then
 
6130
    echo "TARGET_SUPPORTS_MTTCG=y" >> $config_target_mak
 
6131
  fi
6055
6132
fi
6056
6133
if test "$target_user_only" = "yes" ; then
6057
6134
  echo "CONFIG_USER_ONLY=y" >> $config_target_mak
6104
6181
  cris)
6105
6182
    disas_config "CRIS"
6106
6183
  ;;
 
6184
  hppa)
 
6185
    disas_config "HPPA"
 
6186
  ;;
6107
6187
  i386|x86_64|x32)
6108
6188
    disas_config "I386"
6109
6189
  ;;
6125
6205
  moxie*)
6126
6206
    disas_config "MOXIE"
6127
6207
  ;;
6128
 
  or32)
 
6208
  nios2)
 
6209
    disas_config "NIOS2"
 
6210
  ;;
 
6211
  or1k)
6129
6212
    disas_config "OPENRISC"
6130
6213
  ;;
6131
6214
  ppc*)
6195
6278
 
6196
6279
# build tree in object directory in case the source is not in the current directory
6197
6280
DIRS="tests tests/tcg tests/tcg/cris tests/tcg/lm32 tests/libqos tests/qapi-schema tests/tcg/xtensa tests/qemu-iotests"
6198
 
DIRS="$DIRS fsdev"
 
6281
DIRS="$DIRS docs fsdev"
6199
6282
DIRS="$DIRS pc-bios/optionrom pc-bios/spapr-rtas pc-bios/s390-ccw"
6200
6283
DIRS="$DIRS roms/seabios roms/vgabios"
6201
6284
DIRS="$DIRS qapi-generated"