Diff for /qemu/configure between versions 1.1.1.16 and 1.1.1.17

version 1.1.1.16, 2018/04/24 18:56:13 version 1.1.1.17, 2018/04/24 19:17:17
Line 92  libs_tools="" Line 92  libs_tools=""
 audio_pt_int=""  audio_pt_int=""
 audio_win_int=""  audio_win_int=""
 cc_i386=i386-pc-linux-gnu-gcc  cc_i386=i386-pc-linux-gnu-gcc
   libs_qga=""
   
 target_list=""  target_list=""
   
Line 113  curl="" Line 114  curl=""
 curses=""  curses=""
 docs=""  docs=""
 fdt=""  fdt=""
 kvm=""  
 nptl=""  nptl=""
 sdl=""  sdl=""
 vnc="yes"  vnc="yes"
Line 129  xen="" Line 129  xen=""
 xen_ctrl_version=""  xen_ctrl_version=""
 linux_aio=""  linux_aio=""
 attr=""  attr=""
 vhost_net=""  libattr=""
 xfs=""  xfs=""
   
   vhost_net="no"
   kvm="no"
 gprof="no"  gprof="no"
 debug_tcg="no"  debug_tcg="no"
 debug_mon="no"  debug_mon="no"
 debug="no"  debug="no"
 strip_opt="yes"  strip_opt="yes"
   tcg_interpreter="no"
 bigendian="no"  bigendian="no"
 mingw32="no"  mingw32="no"
 EXESUF=""  EXESUF=""
Line 146  datadir="\${prefix}/share/qemu" Line 149  datadir="\${prefix}/share/qemu"
 docdir="\${prefix}/share/doc/qemu"  docdir="\${prefix}/share/doc/qemu"
 bindir="\${prefix}/bin"  bindir="\${prefix}/bin"
 libdir="\${prefix}/lib"  libdir="\${prefix}/lib"
   includedir="\${prefix}/include"
 sysconfdir="\${prefix}/etc"  sysconfdir="\${prefix}/etc"
 confsuffix="/qemu"  confsuffix="/qemu"
 slirp="yes"  slirp="yes"
Line 163  darwin_user="no" Line 167  darwin_user="no"
 bsd_user="no"  bsd_user="no"
 guest_base=""  guest_base=""
 uname_release=""  uname_release=""
 io_thread="no"  
 mixemu="no"  mixemu="no"
 aix="no"  aix="no"
 blobs="yes"  blobs="yes"
 pkgversion=""  pkgversion=""
 check_utests="no"  check_utests=""
 user_pie="no"  pie=""
 zero_malloc=""  zero_malloc=""
 trace_backend="nop"  trace_backend="nop"
 trace_file="trace"  trace_file="trace"
Line 179  smartcard="" Line 182  smartcard=""
 smartcard_nss=""  smartcard_nss=""
 usb_redir=""  usb_redir=""
 opengl=""  opengl=""
   zlib="yes"
 guest_agent="yes"  guest_agent="yes"
   libiscsi=""
   
 # parse CC options first  # parse CC options first
 for opt do  for opt do
Line 218  done Line 223  done
 # Using uname is really, really broken.  Once we have the right set of checks  # Using uname is really, really broken.  Once we have the right set of checks
 # we can eliminate it's usage altogether  # we can eliminate it's usage altogether
   
 cc="${cross_prefix}${CC-gcc}"  cc="${CC-${cross_prefix}gcc}"
 ar="${cross_prefix}${AR-ar}"  ar="${AR-${cross_prefix}ar}"
 objcopy="${cross_prefix}${OBJCOPY-objcopy}"  objcopy="${OBJCOPY-${cross_prefix}objcopy}"
 ld="${cross_prefix}${LD-ld}"  ld="${LD-${cross_prefix}ld}"
 strip="${cross_prefix}${STRIP-strip}"  libtool="${LIBTOOL-${cross_prefix}libtool}"
 windres="${cross_prefix}${WINDRES-windres}"  strip="${STRIP-${cross_prefix}strip}"
 pkg_config="${cross_prefix}${PKG_CONFIG-pkg-config}"  windres="${WINDRES-${cross_prefix}windres}"
 sdl_config="${cross_prefix}${SDL_CONFIG-sdl-config}"  pkg_config="${PKG_CONFIG-${cross_prefix}pkg-config}"
   sdl_config="${SDL_CONFIG-${cross_prefix}sdl-config}"
   
 # default flags for all hosts  # default flags for all hosts
 QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"  QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"
Line 234  QEMU_CFLAGS="-Wall -Wundef -Wwrite-strin Line 240  QEMU_CFLAGS="-Wall -Wundef -Wwrite-strin
 QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"  QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
 QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS"  QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS"
 QEMU_CFLAGS="-D_FORTIFY_SOURCE=2 $QEMU_CFLAGS"  QEMU_CFLAGS="-D_FORTIFY_SOURCE=2 $QEMU_CFLAGS"
 QEMU_INCLUDES="-I. -I\$(SRC_PATH)"  QEMU_INCLUDES="-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/fpu"
 LDFLAGS="-g $LDFLAGS"  LDFLAGS="-g $LDFLAGS"
   
 # make source path absolute  # make source path absolute
Line 281  elif check_define __s390__ ; then Line 287  elif check_define __s390__ ; then
   else    else
     cpu="s390"      cpu="s390"
   fi    fi
   elif check_define __ARMEB__ ; then
     cpu="armv4b"
   elif check_define __ARMEL__ ; then
     cpu="armv4l"
   elif check_define __hppa__ ; then
     cpu="hppa"
 else  else
   cpu=`uname -m`    cpu=`uname -m`
 fi  fi
Line 301  case "$cpu" in Line 313  case "$cpu" in
   armv*l)    armv*l)
     cpu="armv4l"      cpu="armv4l"
   ;;    ;;
   parisc|parisc64)    hppa|parisc|parisc64)
     cpu="hppa"      cpu="hppa"
   ;;    ;;
   mips*)    mips*)
Line 493  if test "$mingw32" = "yes" ; then Line 505  if test "$mingw32" = "yes" ; then
   bindir="\${prefix}"    bindir="\${prefix}"
   sysconfdir="\${prefix}"    sysconfdir="\${prefix}"
   confsuffix=""    confsuffix=""
     guest_agent="no"
 fi  fi
   
 werror=""  werror=""
Line 548  for opt do Line 561  for opt do
   ;;    ;;
   --libdir=*) libdir="$optarg"    --libdir=*) libdir="$optarg"
   ;;    ;;
     --includedir=*) includedir="$optarg"
     ;;
   --datadir=*) datadir="$optarg"    --datadir=*) datadir="$optarg"
   ;;    ;;
   --docdir=*) docdir="$optarg"    --docdir=*) docdir="$optarg"
   ;;    ;;
   --sysconfdir=*) sysconfdir="$optarg"    --sysconfdir=*) sysconfdir="$optarg"
   ;;    ;;
     --sbindir=*|--libexecdir=*|--sharedstatedir=*|--localstatedir=*|\
     --oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\
     --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*)
       # These switches are silently ignored, for compatibility with
       # autoconf-generated configure scripts. This allows QEMU's
       # configure to be used by RPM and similar macros that set
       # lots of directory switches by default.
     ;;
   --disable-sdl) sdl="no"    --disable-sdl) sdl="no"
   ;;    ;;
   --enable-sdl) sdl="yes"    --enable-sdl) sdl="yes"
Line 641  for opt do Line 664  for opt do
   ;;    ;;
   --enable-kvm) kvm="yes"    --enable-kvm) kvm="yes"
   ;;    ;;
     --disable-tcg-interpreter) tcg_interpreter="no"
     ;;
     --enable-tcg-interpreter) tcg_interpreter="yes"
     ;;
   --disable-spice) spice="no"    --disable-spice) spice="no"
   ;;    ;;
   --enable-spice) spice="yes"    --enable-spice) spice="yes"
   ;;    ;;
     --disable-libiscsi) libiscsi="no"
     ;;
     --enable-libiscsi) libiscsi="yes"
     ;;
   --enable-profiler) profiler="yes"    --enable-profiler) profiler="yes"
   ;;    ;;
   --enable-cocoa)    --enable-cocoa)
Line 678  for opt do Line 709  for opt do
   ;;    ;;
   --disable-guest-base) guest_base="no"    --disable-guest-base) guest_base="no"
   ;;    ;;
   --enable-user-pie) user_pie="yes"    --enable-pie) pie="yes"
   ;;    ;;
   --disable-user-pie) user_pie="no"    --disable-pie) pie="no"
   ;;    ;;
   --enable-uname-release=*) uname_release="$optarg"    --enable-uname-release=*) uname_release="$optarg"
   ;;    ;;
Line 720  for opt do Line 751  for opt do
   ;;    ;;
   --enable-attr) attr="yes"    --enable-attr) attr="yes"
   ;;    ;;
   --enable-io-thread) io_thread="yes"  
   ;;  
   --disable-blobs) blobs="no"    --disable-blobs) blobs="no"
   ;;    ;;
   --with-pkgversion=*) pkgversion=" ($optarg)"    --with-pkgversion=*) pkgversion=" ($optarg)"
Line 738  for opt do Line 767  for opt do
   ;;    ;;
   --enable-opengl) opengl="yes"    --enable-opengl) opengl="yes"
   ;;    ;;
   --*dir)  
   ;;  
   --disable-rbd) rbd="no"    --disable-rbd) rbd="no"
   ;;    ;;
   --enable-rbd) rbd="yes"    --enable-rbd) rbd="yes"
Line 756  for opt do Line 783  for opt do
   ;;    ;;
   --enable-usb-redir) usb_redir="yes"    --enable-usb-redir) usb_redir="yes"
   ;;    ;;
     --disable-zlib-test) zlib="no"
     ;;
   --enable-guest-agent) guest_agent="yes"    --enable-guest-agent) guest_agent="yes"
   ;;    ;;
   --disable-guest-agent) guest_agent="no"    --disable-guest-agent) guest_agent="no"
Line 849  if [ "$softmmu" = "yes" ] ; then Line 878  if [ "$softmmu" = "yes" ] ; then
     default_target_list="\      default_target_list="\
 i386-softmmu \  i386-softmmu \
 x86_64-softmmu \  x86_64-softmmu \
   alpha-softmmu \
 arm-softmmu \  arm-softmmu \
 cris-softmmu \  cris-softmmu \
 lm32-softmmu \  lm32-softmmu \
Line 867  sh4eb-softmmu \ Line 897  sh4eb-softmmu \
 sparc-softmmu \  sparc-softmmu \
 sparc64-softmmu \  sparc64-softmmu \
 s390x-softmmu \  s390x-softmmu \
   xtensa-softmmu \
   xtensaeb-softmmu \
 "  "
 fi  fi
 # the following are Linux specific  # the following are Linux specific
Line 989  echo "  --enable-bluez           enable  Line 1021  echo "  --enable-bluez           enable 
 echo "  --disable-slirp          disable SLIRP userspace network connectivity"  echo "  --disable-slirp          disable SLIRP userspace network connectivity"
 echo "  --disable-kvm            disable KVM acceleration support"  echo "  --disable-kvm            disable KVM acceleration support"
 echo "  --enable-kvm             enable KVM acceleration support"  echo "  --enable-kvm             enable KVM acceleration support"
   echo "  --enable-tcg-interpreter enable TCG with bytecode interpreter (TCI)"
 echo "  --disable-nptl           disable usermode NPTL support"  echo "  --disable-nptl           disable usermode NPTL support"
 echo "  --enable-nptl            enable usermode NPTL support"  echo "  --enable-nptl            enable usermode NPTL support"
 echo "  --enable-system          enable all system emulation targets"  echo "  --enable-system          enable all system emulation targets"
Line 1004  echo "  --disable-bsd-user       disable Line 1037  echo "  --disable-bsd-user       disable
 echo "  --enable-guest-base      enable GUEST_BASE support for usermode"  echo "  --enable-guest-base      enable GUEST_BASE support for usermode"
 echo "                           emulation targets"  echo "                           emulation targets"
 echo "  --disable-guest-base     disable GUEST_BASE support"  echo "  --disable-guest-base     disable GUEST_BASE support"
 echo "  --enable-user-pie        build usermode emulation targets as PIE"  echo "  --enable-pie             build Position Independent Executables"
 echo "  --disable-user-pie       do not build usermode emulation targets as PIE"  echo "  --disable-pie            do not build Position Independent Executables"
 echo "  --fmod-lib               path to FMOD library"  echo "  --fmod-lib               path to FMOD library"
 echo "  --fmod-inc               path to FMOD includes"  echo "  --fmod-inc               path to FMOD includes"
 echo "  --oss-lib                path to OSS library"  echo "  --oss-lib                path to OSS library"
 echo "  --enable-uname-release=R Return R for uname -r in usermode emulation"  echo "  --enable-uname-release=R Return R for uname -r in usermode emulation"
   echo "  --cpu=CPU                Build for host CPU [$cpu]"
 echo "  --sparc_cpu=V            Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9"  echo "  --sparc_cpu=V            Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9"
 echo "  --disable-uuid           disable uuid support"  echo "  --disable-uuid           disable uuid support"
 echo "  --enable-uuid            enable uuid support"  echo "  --enable-uuid            enable uuid support"
Line 1019  echo "  --disable-linux-aio      disable Line 1053  echo "  --disable-linux-aio      disable
 echo "  --enable-linux-aio       enable Linux AIO support"  echo "  --enable-linux-aio       enable Linux AIO support"
 echo "  --disable-attr           disables attr and xattr support"  echo "  --disable-attr           disables attr and xattr support"
 echo "  --enable-attr            enable attr and xattr support"  echo "  --enable-attr            enable attr and xattr support"
 echo "  --enable-io-thread       enable IO thread"  
 echo "  --disable-blobs          disable installing provided firmware blobs"  echo "  --disable-blobs          disable installing provided firmware blobs"
 echo "  --enable-docs            enable documentation build"  echo "  --enable-docs            enable documentation build"
 echo "  --disable-docs           disable documentation build"  echo "  --disable-docs           disable documentation build"
Line 1032  echo "                           Default Line 1065  echo "                           Default
 echo "  --disable-spice          disable spice"  echo "  --disable-spice          disable spice"
 echo "  --enable-spice           enable spice"  echo "  --enable-spice           enable spice"
 echo "  --enable-rbd             enable building the rados block device (rbd)"  echo "  --enable-rbd             enable building the rados block device (rbd)"
   echo "  --disable-libiscsi       disable iscsi support"
   echo "  --enable-libiscsi        enable iscsi support"
 echo "  --disable-smartcard      disable smartcard support"  echo "  --disable-smartcard      disable smartcard support"
 echo "  --enable-smartcard       enable smartcard support"  echo "  --enable-smartcard       enable smartcard support"
 echo "  --disable-smartcard-nss  disable smartcard nss support"  echo "  --disable-smartcard-nss  disable smartcard nss support"
Line 1065  cat > $TMPC << EOF Line 1100  cat > $TMPC << EOF
 int main(void) { return 0; }  int main(void) { return 0; }
 EOF  EOF
 for flag in $gcc_flags; do  for flag in $gcc_flags; do
     if compile_prog "-Werror $QEMU_CFLAGS" "-Werror $flag" ; then      if compile_prog "$flag -Werror" "" ; then
         QEMU_CFLAGS="$QEMU_CFLAGS $flag"          QEMU_CFLAGS="$QEMU_CFLAGS $flag"
     fi      fi
 done  done
   
   if test "$static" = "yes" ; then
     if test "$pie" = "yes" ; then
       echo "static and pie are mutually incompatible"
       exit 1
     else
       pie="no"
     fi
   fi
   
   if test "$pie" = ""; then
     case "$cpu-$targetos" in
       i386-Linux|x86_64-Linux|i386-OpenBSD|x86_64-OpenBSD)
         ;;
       *)
         pie="no"
         ;;
     esac
   fi
   
   if test "$pie" != "no" ; then
     cat > $TMPC << EOF
   
   #ifdef __linux__
   #  define THREAD __thread
   #else
   #  define THREAD
   #endif
   
   static THREAD int tls_var;
   
   int main(void) { return tls_var; }
   
   EOF
     if compile_prog "-fPIE -DPIE" "-pie"; then
       QEMU_CFLAGS="-fPIE -DPIE $QEMU_CFLAGS"
       LDFLAGS="-pie $LDFLAGS"
       pie="yes"
       if compile_prog "" "-Wl,-z,relro -Wl,-z,now" ; then
         LDFLAGS="-Wl,-z,relro -Wl,-z,now $LDFLAGS"
       fi
     else
       if test "$pie" = "yes"; then
         echo "PIE not available due to missing toolchain support"
         exit 1
       else
         echo "Disabling PIE due to missing toolchain support"
         pie="no"
       fi
     fi
   fi
   
 #  #
 # Solaris specific configure tool chain decisions  # Solaris specific configure tool chain decisions
 #  #
Line 1203  fi Line 1289  fi
 ##########################################  ##########################################
 # zlib check  # zlib check
   
 cat > $TMPC << EOF  if test "$zlib" != "no" ; then
       cat > $TMPC << EOF
 #include <zlib.h>  #include <zlib.h>
 int main(void) { zlibVersion(); return 0; }  int main(void) { zlibVersion(); return 0; }
 EOF  EOF
 if compile_prog "" "-lz" ; then      if compile_prog "" "-lz" ; then
     :          :
 else      else
     echo          echo
     echo "Error: zlib check failed"          echo "Error: zlib check failed"
     echo "Make sure to have the zlib libs and headers installed."          echo "Make sure to have the zlib libs and headers installed."
     echo          echo
     exit 1          exit 1
       fi
 fi  fi
   
 ##########################################  ##########################################
Line 1330  fi Line 1418  fi
 # pkg-config probe  # pkg-config probe
   
 if ! has $pkg_config; then  if ! has $pkg_config; then
   echo warning: proceeding without "$pkg_config" >&2    echo "Error: pkg-config binary '$pkg_config' not found"
   pkg_config=/bin/false    exit 1
 fi  fi
   
 ##########################################  ##########################################
 # libtool probe  # libtool probe
   
 if ! has libtool; then  if ! has $libtool; then
     libtool=      libtool=
 else  
     libtool=libtool  
 fi  fi
   
 ##########################################  ##########################################
Line 1807  if test "$check_utests" != "no" ; then Line 1893  if test "$check_utests" != "no" ; then
 #include <check.h>  #include <check.h>
 int main(void) { suite_create("qemu test"); return 0; }  int main(void) { suite_create("qemu test"); return 0; }
 EOF  EOF
   check_libs=`$pkg_config --libs check`    check_libs=`$pkg_config --libs check 2>/dev/null`
   if compile_prog "" $check_libs ; then    if compile_prog "" $check_libs ; then
     check_utests=yes      check_utests=yes
     libs_tools="$check_libs $libs_tools"      libs_tools="$check_libs $libs_tools"
Line 1841  fi Line 1927  fi
   
 ##########################################  ##########################################
 # glib support probe  # glib support probe
 if test "$guest_agent" != "no" ; then  if $pkg_config --modversion gthread-2.0 > /dev/null 2>&1 ; then
     if $pkg_config --modversion glib-2.0 > /dev/null 2>&1 ; then      glib_cflags=`$pkg_config --cflags gthread-2.0 2>/dev/null`
         glib_cflags=`$pkg_config --cflags glib-2.0 2>/dev/null`      glib_libs=`$pkg_config --libs gthread-2.0 2>/dev/null`
         glib_libs=`$pkg_config --libs glib-2.0 2>/dev/null`      LIBS="$glib_libs $LIBS"
         libs_softmmu="$glib_libs $libs_softmmu"      libs_qga="$glib_libs $libs_qga"
         libs_tools="$glib_libs $libs_tools"  else
     else      echo "glib-2.0 required to compile QEMU"
         echo "glib-2.0 required to compile QEMU"      exit 1
         exit 1  
     fi  
 fi  fi
   
 ##########################################  ##########################################
Line 1936  if test "$attr" != "no" ; then Line 2020  if test "$attr" != "no" ; then
   cat > $TMPC <<EOF    cat > $TMPC <<EOF
 #include <stdio.h>  #include <stdio.h>
 #include <sys/types.h>  #include <sys/types.h>
   #ifdef CONFIG_LIBATTR
 #include <attr/xattr.h>  #include <attr/xattr.h>
   #else
   #include <sys/xattr.h>
   #endif
 int main(void) { getxattr(NULL, NULL, NULL, 0); setxattr(NULL, NULL, NULL, 0, 0); return 0; }  int main(void) { getxattr(NULL, NULL, NULL, 0); setxattr(NULL, NULL, NULL, 0, 0); return 0; }
 EOF  EOF
   if compile_prog "" "-lattr" ; then    if compile_prog "" "" ; then
       attr=yes
     # Older distros have <attr/xattr.h>, and need -lattr:
     elif compile_prog "-DCONFIG_LIBATTR" "-lattr" ; then
     attr=yes      attr=yes
     LIBS="-lattr $LIBS"      LIBS="-lattr $LIBS"
       libattr=yes
   else    else
     if test "$attr" = "yes" ; then      if test "$attr" = "yes" ; then
       feature_not_found "ATTR"        feature_not_found "ATTR"
Line 2156  EOF Line 2248  EOF
   
 if compile_prog "" "" ; then  if compile_prog "" "" ; then
   signalfd=yes    signalfd=yes
 elif test "$kvm" = "yes" -a "$io_thread" != "yes"; then  
   echo  
   echo "ERROR: Host kernel lacks signalfd() support,"  
   echo "but KVM depends on it when the IO thread is disabled."  
   echo  
   exit 1  
 fi  fi
   
 # check if eventfd is supported  # check if eventfd is supported
Line 2171  cat > $TMPC << EOF Line 2257  cat > $TMPC << EOF
   
 int main(void)  int main(void)
 {  {
     int efd = eventfd(0, 0);      int efd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
     return 0;      return 0;
 }  }
 EOF  EOF
Line 2329  if compile_prog "" "" ; then Line 2415  if compile_prog "" "" ; then
 fi  fi
   
 ##########################################  ##########################################
   # Do we have libiscsi
   if test "$libiscsi" != "no" ; then
     cat > $TMPC << EOF
   #include <iscsi/iscsi.h>
   int main(void) { iscsi_create_context(""); return 0; }
   EOF
     if compile_prog "-Werror" "-liscsi" ; then
       libiscsi="yes"
       LIBS="$LIBS -liscsi"
     else
       if test "$libiscsi" = "yes" ; then
         feature_not_found "libiscsi"
       fi
       libiscsi="no"
     fi
   fi
   
   
   ##########################################
 # Do we need librt  # Do we need librt
 cat > $TMPC <<EOF  cat > $TMPC <<EOF
 #include <signal.h>  #include <signal.h>
Line 2359  if compile_prog "" "" ; then Line 2464  if compile_prog "" "" ; then
     need_offsetof=no      need_offsetof=no
 fi  fi
   
 ##########################################  
 # check if the compiler understands attribute warn_unused_result  
 #  
 # This could be smarter, but gcc -Werror does not error out even when warning  
 # about attribute warn_unused_result  
   
 gcc_attribute_warn_unused_result=no  
 cat > $TMPC << EOF  
 #if defined(__GNUC__) && (__GNUC__ < 4) && defined(__GNUC_MINOR__) && (__GNUC__ < 4)  
 #error gcc 3.3 or older  
 #endif  
 int main(void) { return 0;}  
 EOF  
 if compile_prog "" ""; then  
     gcc_attribute_warn_unused_result=yes  
 fi  
   
 # spice probe  # spice probe
 if test "$spice" != "no" ; then  if test "$spice" != "no" ; then
   cat > $TMPC << EOF    cat > $TMPC << EOF
Line 2534  fi Line 2622  fi
 # __sync_fetch_and_and requires at least -march=i486. Many toolchains  # __sync_fetch_and_and requires at least -march=i486. Many toolchains
 # use i686 as default anyway, but for those that don't, an explicit  # use i686 as default anyway, but for those that don't, an explicit
 # specification is necessary  # specification is necessary
 if test $vhost_net = "yes" && test $cpu = "i386"; then  if test "$vhost_net" = "yes" && test "$cpu" = "i386"; then
   cat > $TMPC << EOF    cat > $TMPC << EOF
 int sfaa(unsigned *ptr)  int sfaa(unsigned *ptr)
 {  {
Line 2554  EOF Line 2642  EOF
 fi  fi
   
 ##########################################  ##########################################
   # check if we have makecontext
   
   ucontext_coroutine=no
   if test "$darwin" != "yes"; then
     cat > $TMPC << EOF
   #include <ucontext.h>
   int main(void) { makecontext(0, 0, 0); }
   EOF
     if compile_prog "" "" ; then
         ucontext_coroutine=yes
     fi
   fi
   
   ##########################################
   # check if we have open_by_handle_at
   
   open_by_hande_at=no
   cat > $TMPC << EOF
   #include <fcntl.h>
   int main(void) { struct file_handle fh; open_by_handle_at(0, &fh, 0); }
   EOF
   if compile_prog "" "" ; then
       open_by_handle_at=yes
   fi
   
   ########################################
   # check if we have linux/magic.h
   
   linux_magic_h=no
   cat > $TMPC << EOF
   #include <linux/magic.h>
   int main(void) {
   }
   EOF
   if compile_prog "" "" ; then
       linux_magic_h=yes
   fi
   
   ##########################################
 # End of CC checks  # End of CC checks
 # After here, no more $cc or $ld runs  # After here, no more $cc or $ld runs
   
Line 2614  if test "$softmmu" = yes ; then Line 2741  if test "$softmmu" = yes ; then
       tools="qemu-ga\$(EXESUF) $tools"        tools="qemu-ga\$(EXESUF) $tools"
     fi      fi
     if [ "$check_utests" = "yes" ]; then      if [ "$check_utests" = "yes" ]; then
       tools="check-qint check-qstring check-qdict check-qlist $tools"        checks="check-qint check-qstring check-qdict check-qlist"
       tools="check-qfloat check-qjson $tools"        checks="check-qfloat check-qjson test-coroutine $checks"
     fi      fi
   fi    fi
 fi  fi
Line 2635  echo "Install prefix    $prefix" Line 2762  echo "Install prefix    $prefix"
 echo "BIOS directory    `eval echo $datadir`"  echo "BIOS directory    `eval echo $datadir`"
 echo "binary directory  `eval echo $bindir`"  echo "binary directory  `eval echo $bindir`"
 echo "library directory `eval echo $libdir`"  echo "library directory `eval echo $libdir`"
   echo "include directory `eval echo $includedir`"
 echo "config directory  `eval echo $sysconfdir`"  echo "config directory  `eval echo $sysconfdir`"
 if test "$mingw32" = "no" ; then  if test "$mingw32" = "no" ; then
 echo "Manual directory  `eval echo $mandir`"  echo "Manual directory  `eval echo $mandir`"
Line 2694  echo "Documentation     $docs" Line 2822  echo "Documentation     $docs"
 echo "uname -r          $uname_release"  echo "uname -r          $uname_release"
 echo "NPTL support      $nptl"  echo "NPTL support      $nptl"
 echo "GUEST_BASE        $guest_base"  echo "GUEST_BASE        $guest_base"
 echo "PIE user targets  $user_pie"  echo "PIE               $pie"
 echo "vde support       $vde"  echo "vde support       $vde"
 echo "IO thread         $io_thread"  
 echo "Linux AIO support $linux_aio"  echo "Linux AIO support $linux_aio"
 echo "ATTR/XATTR support $attr"  echo "ATTR/XATTR support $attr"
 echo "Install blobs     $blobs"  echo "Install blobs     $blobs"
 echo "KVM support       $kvm"  echo "KVM support       $kvm"
   echo "TCG interpreter   $tcg_interpreter"
 echo "fdt support       $fdt"  echo "fdt support       $fdt"
 echo "preadv support    $preadv"  echo "preadv support    $preadv"
 echo "fdatasync         $fdatasync"  echo "fdatasync         $fdatasync"
Line 2716  echo "xfsctl support    $xfs" Line 2844  echo "xfsctl support    $xfs"
 echo "nss used          $smartcard_nss"  echo "nss used          $smartcard_nss"
 echo "usb net redir     $usb_redir"  echo "usb net redir     $usb_redir"
 echo "OpenGL support    $opengl"  echo "OpenGL support    $opengl"
   echo "libiscsi support  $libiscsi"
 echo "build guest agent $guest_agent"  echo "build guest agent $guest_agent"
   
 if test $sdl_too_old = "yes"; then  if test "$sdl_too_old" = "yes"; then
 echo "-> Your SDL version is too old - please upgrade to have SDL support"  echo "-> Your SDL version is too old - please upgrade to have SDL support"
 fi  fi
   
Line 2734  echo all: >> $config_host_mak Line 2863  echo all: >> $config_host_mak
 echo "prefix=$prefix" >> $config_host_mak  echo "prefix=$prefix" >> $config_host_mak
 echo "bindir=$bindir" >> $config_host_mak  echo "bindir=$bindir" >> $config_host_mak
 echo "libdir=$libdir" >> $config_host_mak  echo "libdir=$libdir" >> $config_host_mak
   echo "includedir=$includedir" >> $config_host_mak
 echo "mandir=$mandir" >> $config_host_mak  echo "mandir=$mandir" >> $config_host_mak
 echo "datadir=$datadir" >> $config_host_mak  echo "datadir=$datadir" >> $config_host_mak
 echo "sysconfdir=$sysconfdir" >> $config_host_mak  echo "sysconfdir=$sysconfdir" >> $config_host_mak
Line 2747  case "$cpu" in Line 2877  case "$cpu" in
   armv4b|armv4l)    armv4b|armv4l)
     ARCH=arm      ARCH=arm
   ;;    ;;
     *)
       if test "$tcg_interpreter" = "yes" ; then
           echo "Unsupported CPU = $cpu, will use TCG with TCI (experimental)"
           ARCH=tci
       else
           echo "Unsupported CPU = $cpu, try --enable-tcg-interpreter"
           exit 1
       fi
     ;;
 esac  esac
 echo "ARCH=$ARCH" >> $config_host_mak  echo "ARCH=$ARCH" >> $config_host_mak
 if test "$debug_tcg" = "yes" ; then  if test "$debug_tcg" = "yes" ; then
Line 2805  fi Line 2944  fi
 if test "$static" = "yes" ; then  if test "$static" = "yes" ; then
   echo "CONFIG_STATIC=y" >> $config_host_mak    echo "CONFIG_STATIC=y" >> $config_host_mak
 fi  fi
 if test $profiler = "yes" ; then  if test "$profiler" = "yes" ; then
   echo "CONFIG_PROFILER=y" >> $config_host_mak    echo "CONFIG_PROFILER=y" >> $config_host_mak
 fi  fi
 if test "$slirp" = "yes" ; then  if test "$slirp" = "yes" ; then
Line 2954  if test "$xen" = "yes" ; then Line 3093  if test "$xen" = "yes" ; then
   echo "CONFIG_XEN_BACKEND=y" >> $config_host_mak    echo "CONFIG_XEN_BACKEND=y" >> $config_host_mak
   echo "CONFIG_XEN_CTRL_INTERFACE_VERSION=$xen_ctrl_version" >> $config_host_mak    echo "CONFIG_XEN_CTRL_INTERFACE_VERSION=$xen_ctrl_version" >> $config_host_mak
 fi  fi
 if test "$io_thread" = "yes" ; then  
   echo "CONFIG_IOTHREAD=y" >> $config_host_mak  
 fi  
 if test "$linux_aio" = "yes" ; then  if test "$linux_aio" = "yes" ; then
   echo "CONFIG_LINUX_AIO=y" >> $config_host_mak    echo "CONFIG_LINUX_AIO=y" >> $config_host_mak
 fi  fi
 if test "$attr" = "yes" ; then  if test "$attr" = "yes" ; then
   echo "CONFIG_ATTR=y" >> $config_host_mak    echo "CONFIG_ATTR=y" >> $config_host_mak
 fi  fi
   if test "$libattr" = "yes" ; then
     echo "CONFIG_LIBATTR=y" >> $config_host_mak
   fi
 if test "$linux" = "yes" ; then  if test "$linux" = "yes" ; then
   if test "$attr" = "yes" ; then    if test "$attr" = "yes" ; then
     echo "CONFIG_VIRTFS=y" >> $config_host_mak      echo "CONFIG_VIRTFS=y" >> $config_host_mak
Line 2983  fi Line 3122  fi
 if test "$signalfd" = "yes" ; then  if test "$signalfd" = "yes" ; then
   echo "CONFIG_SIGNALFD=y" >> $config_host_mak    echo "CONFIG_SIGNALFD=y" >> $config_host_mak
 fi  fi
   if test "$tcg_interpreter" = "yes" ; then
     echo "CONFIG_TCG_INTERPRETER=y" >> $config_host_mak
   fi
 if test "$need_offsetof" = "yes" ; then  if test "$need_offsetof" = "yes" ; then
   echo "CONFIG_NEED_OFFSETOF=y" >> $config_host_mak    echo "CONFIG_NEED_OFFSETOF=y" >> $config_host_mak
 fi  fi
 if test "$gcc_attribute_warn_unused_result" = "yes" ; then  
   echo "CONFIG_GCC_ATTRIBUTE_WARN_UNUSED_RESULT=y" >> $config_host_mak  
 fi  
 if test "$fdatasync" = "yes" ; then  if test "$fdatasync" = "yes" ; then
   echo "CONFIG_FDATASYNC=y" >> $config_host_mak    echo "CONFIG_FDATASYNC=y" >> $config_host_mak
 fi  fi
Line 3019  if test "$opengl" = "yes" ; then Line 3158  if test "$opengl" = "yes" ; then
   echo "CONFIG_OPENGL=y" >> $config_host_mak    echo "CONFIG_OPENGL=y" >> $config_host_mak
 fi  fi
   
   if test "$libiscsi" = "yes" ; then
     echo "CONFIG_LIBISCSI=y" >> $config_host_mak
   fi
   
 # XXX: suppress that  # XXX: suppress that
 if [ "$bsd" = "yes" ] ; then  if [ "$bsd" = "yes" ] ; then
   echo "CONFIG_BSD=y" >> $config_host_mak    echo "CONFIG_BSD=y" >> $config_host_mak
Line 3033  if test "$rbd" = "yes" ; then Line 3176  if test "$rbd" = "yes" ; then
   echo "CONFIG_RBD=y" >> $config_host_mak    echo "CONFIG_RBD=y" >> $config_host_mak
 fi  fi
   
   if test "$ucontext_coroutine" = "yes" ; then
     echo "CONFIG_UCONTEXT_COROUTINE=y" >> $config_host_mak
   fi
   
   if test "$open_by_handle_at" = "yes" ; then
     echo "CONFIG_OPEN_BY_HANDLE=y" >> $config_host_mak
   fi
   
   if test "$linux_magic_h" = "yes" ; then
     echo "CONFIG_LINUX_MAGIC_H=y" >> $config_host_mak
   fi
   
 # USB host support  # USB host support
 case "$usb" in  case "$usb" in
 linux)  linux)
Line 3046  bsd) Line 3201  bsd)
 ;;  ;;
 esac  esac
   
   # use default implementation for tracing backend-specific routines
   trace_default=yes
 echo "TRACE_BACKEND=$trace_backend" >> $config_host_mak  echo "TRACE_BACKEND=$trace_backend" >> $config_host_mak
 if test "$trace_backend" = "simple"; then  if test "$trace_backend" = "nop"; then
   echo "CONFIG_SIMPLE_TRACE=y" >> $config_host_mak    echo "CONFIG_TRACE_NOP=y" >> $config_host_mak
 fi  fi
 # Set the appropriate trace file.  
 if test "$trace_backend" = "simple"; then  if test "$trace_backend" = "simple"; then
     echo "CONFIG_TRACE_SIMPLE=y" >> $config_host_mak
     trace_default=no
     # Set the appropriate trace file.
   trace_file="\"$trace_file-\" FMT_pid"    trace_file="\"$trace_file-\" FMT_pid"
 fi  fi
 if test "$trace_backend" = "dtrace" -a "$trace_backend_stap" = "yes" ; then  if test "$trace_backend" = "stderr"; then
   echo "CONFIG_SYSTEMTAP_TRACE=y" >> $config_host_mak    echo "CONFIG_TRACE_STDERR=y" >> $config_host_mak
     trace_default=no
   fi
   if test "$trace_backend" = "ust"; then
     echo "CONFIG_TRACE_UST=y" >> $config_host_mak
   fi
   if test "$trace_backend" = "dtrace"; then
     echo "CONFIG_TRACE_DTRACE=y" >> $config_host_mak
     if test "$trace_backend_stap" = "yes" ; then
       echo "CONFIG_TRACE_SYSTEMTAP=y" >> $config_host_mak
     fi
 fi  fi
 echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak  echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak
   if test "$trace_default" = "yes"; then
     echo "CONFIG_TRACE_DEFAULT=y" >> $config_host_mak
   fi
   
 echo "TOOLS=$tools" >> $config_host_mak  echo "TOOLS=$tools" >> $config_host_mak
   echo "CHECKS=$checks" >> $config_host_mak
 echo "ROMS=$roms" >> $config_host_mak  echo "ROMS=$roms" >> $config_host_mak
 echo "MAKE=$make" >> $config_host_mak  echo "MAKE=$make" >> $config_host_mak
 echo "INSTALL=$install" >> $config_host_mak  echo "INSTALL=$install" >> $config_host_mak
Line 3090  echo "ARLIBS_END=$arlibs_end" >> $config Line 3263  echo "ARLIBS_END=$arlibs_end" >> $config
 echo "LIBS+=$LIBS" >> $config_host_mak  echo "LIBS+=$LIBS" >> $config_host_mak
 echo "LIBS_TOOLS+=$libs_tools" >> $config_host_mak  echo "LIBS_TOOLS+=$libs_tools" >> $config_host_mak
 echo "EXESUF=$EXESUF" >> $config_host_mak  echo "EXESUF=$EXESUF" >> $config_host_mak
   echo "LIBS_QGA+=$libs_qga" >> $config_host_mak
   
 # generate list of library paths for linker script  # generate list of library paths for linker script
   
Line 3108  for d in libdis libdis-user; do Line 3282  for d in libdis libdis-user; do
     symlink $source_path/Makefile.dis $d/Makefile      symlink $source_path/Makefile.dis $d/Makefile
     echo > $d/config.mak      echo > $d/config.mak
 done  done
 if test "$static" = "no" -a "$user_pie" = "yes" ; then  
   echo "QEMU_CFLAGS+=-fpie" > libdis-user/config.mak  
 fi  
   
 for target in $target_list; do  for target in $target_list; do
 target_dir="$target"  target_dir="$target"
Line 3119  target_arch2=`echo $target | cut -d '-'  Line 3290  target_arch2=`echo $target | cut -d '-' 
 target_bigendian="no"  target_bigendian="no"
   
 case "$target_arch2" in  case "$target_arch2" in
   armeb|lm32|m68k|microblaze|mips|mipsn32|mips64|ppc|ppcemb|ppc64|ppc64abi32|s390x|sh4eb|sparc|sparc64|sparc32plus)    armeb|lm32|m68k|microblaze|mips|mipsn32|mips64|ppc|ppcemb|ppc64|ppc64abi32|s390x|sh4eb|sparc|sparc64|sparc32plus|xtensaeb)
   target_bigendian=yes    target_bigendian=yes
   ;;    ;;
 esac  esac
Line 3256  case "$target_arch2" in Line 3427  case "$target_arch2" in
   ;;    ;;
   ppc)    ppc)
     gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml"      gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml"
     target_phys_bits=32      target_phys_bits=64
     target_nptl="yes"      target_nptl="yes"
     target_libs_softmmu="$fdt_libs"      target_libs_softmmu="$fdt_libs"
   ;;    ;;
Line 3314  case "$target_arch2" in Line 3485  case "$target_arch2" in
   unicore32)    unicore32)
     target_phys_bits=32      target_phys_bits=32
   ;;    ;;
     xtensa|xtensaeb)
       TARGET_ARCH=xtensa
       target_phys_bits=32
     ;;
   *)    *)
     echo "Unsupported target CPU"      echo "Unsupported target CPU"
     exit 1      exit 1
Line 3341  case "$target_arch2" in Line 3516  case "$target_arch2" in
     if test "$xen" = "yes" -a "$target_softmmu" = "yes" ; then      if test "$xen" = "yes" -a "$target_softmmu" = "yes" ; then
       target_phys_bits=64        target_phys_bits=64
       echo "CONFIG_XEN=y" >> $config_target_mak        echo "CONFIG_XEN=y" >> $config_target_mak
       if test "$cpu" = "i386" -o "$cpu" = "x86_64"; then      else
           echo "CONFIG_XEN_MAPCACHE=y" >> $config_target_mak        echo "CONFIG_NO_XEN=y" >> $config_target_mak
       fi  
     fi      fi
       ;;
     *)
       echo "CONFIG_NO_XEN=y" >> $config_target_mak
 esac  esac
 case "$target_arch2" in  case "$target_arch2" in
   i386|x86_64|ppcemb|ppc|ppc64|s390x)    i386|x86_64|ppcemb|ppc|ppc64|s390x)
Line 3358  case "$target_arch2" in Line 3535  case "$target_arch2" in
       \( "$target_arch2" = "x86_64" -a "$cpu" = "i386"   \) -o \        \( "$target_arch2" = "x86_64" -a "$cpu" = "i386"   \) -o \
       \( "$target_arch2" = "i386"   -a "$cpu" = "x86_64" \) \) ; then        \( "$target_arch2" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
       echo "CONFIG_KVM=y" >> $config_target_mak        echo "CONFIG_KVM=y" >> $config_target_mak
       if test $vhost_net = "yes" ; then        if test "$vhost_net" = "yes" ; then
         echo "CONFIG_VHOST_NET=y" >> $config_target_mak          echo "CONFIG_VHOST_NET=y" >> $config_target_mak
       fi        fi
     fi      fi
 esac  esac
   if test "$target_arch2" = "ppc64" -a "$fdt" = "yes"; then
     echo "CONFIG_PSERIES=y" >> $config_target_mak
   fi
 if test "$target_bigendian" = "yes" ; then  if test "$target_bigendian" = "yes" ; then
   echo "TARGET_WORDS_BIGENDIAN=y" >> $config_target_mak    echo "TARGET_WORDS_BIGENDIAN=y" >> $config_target_mak
 fi  fi
Line 3415  cflags="" Line 3595  cflags=""
 includes=""  includes=""
 ldflags=""  ldflags=""
   
 if test "$ARCH" = "sparc64" ; then  if test "$tcg_interpreter" = "yes"; then
     includes="-I\$(SRC_PATH)/tcg/tci $includes"
   elif test "$ARCH" = "sparc64" ; then
   includes="-I\$(SRC_PATH)/tcg/sparc $includes"    includes="-I\$(SRC_PATH)/tcg/sparc $includes"
 elif test "$ARCH" = "s390x" ; then  elif test "$ARCH" = "s390x" ; then
   includes="-I\$(SRC_PATH)/tcg/s390 $includes"    includes="-I\$(SRC_PATH)/tcg/s390 $includes"
Line 3425  else Line 3607  else
   includes="-I\$(SRC_PATH)/tcg/\$(ARCH) $includes"    includes="-I\$(SRC_PATH)/tcg/\$(ARCH) $includes"
 fi  fi
 includes="-I\$(SRC_PATH)/tcg $includes"  includes="-I\$(SRC_PATH)/tcg $includes"
 includes="-I\$(SRC_PATH)/fpu $includes"  
   
 if test "$target_user_only" = "yes" ; then  if test "$target_user_only" = "yes" ; then
     libdis_config_mak=libdis-user/config.mak      libdis_config_mak=libdis-user/config.mak
Line 3487  for i in $ARCH $TARGET_BASE_ARCH ; do Line 3668  for i in $ARCH $TARGET_BASE_ARCH ; do
     echo "CONFIG_SPARC_DIS=y"  >> $config_target_mak      echo "CONFIG_SPARC_DIS=y"  >> $config_target_mak
     echo "CONFIG_SPARC_DIS=y"  >> $libdis_config_mak      echo "CONFIG_SPARC_DIS=y"  >> $libdis_config_mak
   ;;    ;;
     xtensa*)
       echo "CONFIG_XTENSA_DIS=y"  >> $config_target_mak
       echo "CONFIG_XTENSA_DIS=y"  >> $libdis_config_mak
     ;;
   esac    esac
 done  done
   if test "$tcg_interpreter" = "yes" ; then
     echo "CONFIG_TCI_DIS=y"  >> $config_target_mak
     echo "CONFIG_TCI_DIS=y"  >> $libdis_config_mak
   fi
   
 case "$ARCH" in  case "$ARCH" in
 alpha)  alpha)
Line 3511  if test "$target_softmmu" = "yes" ; then Line 3700  if test "$target_softmmu" = "yes" ; then
   esac    esac
 fi  fi
   
 if test "$target_user_only" = "yes" -a "$static" = "no" -a \  
         "$user_pie" = "yes" ; then  
   cflags="-fpie $cflags"  
   ldflags="-pie $ldflags"  
 fi  
   
 if test "$target_softmmu" = "yes" -a \( \  if test "$target_softmmu" = "yes" -a \( \
         "$TARGET_ARCH" = "microblaze" -o \          "$TARGET_ARCH" = "microblaze" -o \
         "$TARGET_ARCH" = "cris" \) ; then          "$TARGET_ARCH" = "cris" \) ; then
Line 3535  if test "$gprof" = "yes" ; then Line 3718  if test "$gprof" = "yes" ; then
   fi    fi
 fi  fi
   
 linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/\$(ARCH).ld"  if test "$ARCH" = "tci"; then
     linker_script=""
   else
     linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/\$(ARCH).ld"
   fi
   
 if test "$target_linux_user" = "yes" -o "$target_bsd_user" = "yes" ; then  if test "$target_linux_user" = "yes" -o "$target_bsd_user" = "yes" ; then
   case "$ARCH" in    case "$ARCH" in
   sparc)    sparc)
Line 3579  DIRS="tests tests/cris slirp audio block Line 3767  DIRS="tests tests/cris slirp audio block
 DIRS="$DIRS pc-bios/spapr-rtas"  DIRS="$DIRS pc-bios/spapr-rtas"
 DIRS="$DIRS roms/seabios roms/vgabios"  DIRS="$DIRS roms/seabios roms/vgabios"
 DIRS="$DIRS fsdev ui"  DIRS="$DIRS fsdev ui"
 DIRS="$DIRS qapi"  DIRS="$DIRS qapi qapi-generated"
 DIRS="$DIRS qga"  DIRS="$DIRS qga trace"
 FILES="Makefile tests/Makefile qdict-test-data.txt"  FILES="Makefile tests/Makefile qdict-test-data.txt"
 FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit"  FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit"
 FILES="$FILES pc-bios/optionrom/Makefile pc-bios/keymaps"  FILES="$FILES pc-bios/optionrom/Makefile pc-bios/keymaps"
 FILES="$FILES pc-bios/spapr-rtas/Makefile"  FILES="$FILES pc-bios/spapr-rtas/Makefile"
 FILES="$FILES roms/seabios/Makefile roms/vgabios/Makefile"  FILES="$FILES roms/seabios/Makefile roms/vgabios/Makefile"
 for bios_file in $source_path/pc-bios/*.bin $source_path/pc-bios/*.rom $source_path/pc-bios/*.dtb $source_path/pc-bios/openbios-*; do  for bios_file in \
       $source_path/pc-bios/*.bin \
       $source_path/pc-bios/*.rom \
       $source_path/pc-bios/*.dtb \
       $source_path/pc-bios/openbios-* \
       $source_path/pc-bios/palcode-*
   do
     FILES="$FILES pc-bios/`basename $bios_file`"      FILES="$FILES pc-bios/`basename $bios_file`"
 done  done
 mkdir -p $DIRS  mkdir -p $DIRS
Line 3627  fi Line 3821  fi
   
 d=libuser  d=libuser
 mkdir -p $d  mkdir -p $d
   mkdir -p $d/trace
 symlink $source_path/Makefile.user $d/Makefile  symlink $source_path/Makefile.user $d/Makefile
 if test "$static" = "no" -a "$user_pie" = "yes" ; then  
   echo "QEMU_CFLAGS+=-fpie" > $d/config.mak  
 fi  
   
 if test "$docs" = "yes" ; then  if test "$docs" = "yes" ; then
   mkdir -p QMP    mkdir -p QMP

Removed from v.1.1.1.16  
changed lines
  Added in v.1.1.1.17


unix.superglobalmegacorp.com