]> git.proxmox.com Git - qemu.git/commitdiff
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
authorAnthony Liguori <aliguori@us.ibm.com>
Thu, 4 Aug 2011 22:14:01 +0000 (17:14 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 4 Aug 2011 22:14:01 +0000 (17:14 -0500)
1  2 
Makefile
configure

diff --combined Makefile
index 2becedcf88860b6db3c95c0621c011eda2d46be8,a0218a309b83b9bdd17e1229abd64367f9fe6da0..9e5871bb603a810ad740e092f01e4450674dc995
+++ b/Makefile
@@@ -151,7 -151,7 +151,7 @@@ qemu-io$(EXESUF): qemu-io.o cmd.o qemu-
  qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
        $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $@")
  
 -check-qint.o check-qstring.o check-qdict.o check-qlist.o check-qfloat.o check-qjson.o: $(GENERATED_HEADERS)
 +check-qint.o check-qstring.o check-qdict.o check-qlist.o check-qfloat.o check-qjson.o test-coroutine.o: $(GENERATED_HEADERS)
  
  CHECK_PROG_DEPS = qemu-malloc.o $(oslib-obj-y) $(trace-obj-y) qemu-tool.o
  
@@@ -161,7 -161,6 +161,7 @@@ check-qdict: check-qdict.o qdict.o qflo
  check-qlist: check-qlist.o qlist.o qint.o $(CHECK_PROG_DEPS)
  check-qfloat: check-qfloat.o qfloat.o $(CHECK_PROG_DEPS)
  check-qjson: check-qjson.o qfloat.o qint.o qdict.o qstring.o qlist.o qbool.o qjson.o json-streamer.o json-lexer.o json-parser.o error.o qerror.o qemu-error.o $(CHECK_PROG_DEPS)
 +test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(CHECK_PROG_DEPS)
  
  $(qapi-obj-y): $(GENERATED_HEADERS)
  qapi-dir := qapi-generated
@@@ -227,6 -226,7 +227,7 @@@ distclean: clea
        rm -f qemu-doc.fn qemu-doc.fns qemu-doc.info qemu-doc.ky qemu-doc.kys
        rm -f qemu-doc.log qemu-doc.pdf qemu-doc.pg qemu-doc.toc qemu-doc.tp
        rm -f qemu-doc.vr
+       rm -f config.log
        rm -f qemu-tech.info qemu-tech.aux qemu-tech.cp qemu-tech.dvi qemu-tech.fn qemu-tech.info qemu-tech.ky qemu-tech.log qemu-tech.pdf qemu-tech.pg qemu-tech.toc qemu-tech.tp qemu-tech.vr
        for d in $(TARGET_DIRS) $(QEMULIBS); do \
        rm -rf $$d || exit 1 ; \
diff --combined configure
index 27f1fa926660f2179e56c2932f5557c71807ef03,9d467802dd4a5a9571a262f6fe3e9ba32411cc48..408d45475986197bfd23f42ca39627340b365ab1
+++ b/configure
@@@ -113,7 -113,6 +113,6 @@@ curl="
  curses=""
  docs=""
  fdt=""
- kvm=""
  nptl=""
  sdl=""
  vnc="yes"
@@@ -129,9 -128,10 +128,10 @@@ xen="
  xen_ctrl_version=""
  linux_aio=""
  attr=""
- vhost_net=""
  xfs=""
  
+ vhost_net="no"
+ kvm="no"
  gprof="no"
  debug_tcg="no"
  debug_mon="no"
@@@ -181,7 -181,6 +181,7 @@@ smartcard_nss="
  usb_redir=""
  opengl=""
  zlib="yes"
 +guest_agent="yes"
  
  # parse CC options first
  for opt do
@@@ -758,10 -757,6 +758,10 @@@ for opt d
    ;;
    --disable-zlib-test) zlib="no"
    ;;
 +  --enable-guest-agent) guest_agent="yes"
 +  ;;
 +  --disable-guest-agent) guest_agent="no"
 +  ;;
    *) echo "ERROR: unknown option $opt"; show_help="yes"
    ;;
    esac
@@@ -851,6 -846,7 +851,6 @@@ if [ "$softmmu" = "yes" ] ; the
      default_target_list="\
  i386-softmmu \
  x86_64-softmmu \
 -alpha-softmmu \
  arm-softmmu \
  cris-softmmu \
  lm32-softmmu \
@@@ -1039,8 -1035,6 +1039,8 @@@ echo "  --disable-smartcard-nss  disabl
  echo "  --enable-smartcard-nss   enable smartcard nss support"
  echo "  --disable-usb-redir      disable usb network redirection support"
  echo "  --enable-usb-redir       enable usb network redirection support"
 +echo "  --disable-guest-agent    disable building of the QEMU Guest Agent"
 +echo "  --enable-guest-agent     enable building of the QEMU Guest Agent"
  echo ""
  echo "NOTE: The object files are built at the place where configure is launched"
  exit 1
@@@ -1100,13 -1094,11 +1100,13 @@@ if test "$solaris" = "yes" ; the
    fi
  fi
  
 -if has $python; then
 -  :
 -else
 -  echo "Python not found. Use --python=/path/to/python"
 -  exit 1
 +if test "$guest_agent" != "no" ; then
 +  if has $python; then
 +    :
 +  else
 +    echo "Python not found. Use --python=/path/to/python"
 +    exit 1
 +  fi
  fi
  
  if test -z "$target_list" ; then
@@@ -1521,17 -1513,11 +1521,17 @@@ int main(void) 
      return 0;
  }
  EOF
 +  if $pkg_config libpng --modversion >/dev/null 2>&1; then
 +    vnc_png_cflags=`$pkg_config libpng --cflags 2> /dev/null`
 +    vnc_png_libs=`$pkg_config libpng --libs 2> /dev/null`
 +  else
      vnc_png_cflags=""
      vnc_png_libs="-lpng"
 +  fi
    if compile_prog "$vnc_png_cflags" "$vnc_png_libs" ; then
      vnc_png=yes
      libs_softmmu="$vnc_png_libs $libs_softmmu"
 +    QEMU_CFLAGS="$QEMU_CFLAGS $vnc_png_cflags"
    else
      if test "$vnc_png" = "yes" ; then
        feature_not_found "vnc-png"
  
  ##########################################
  # glib support probe
 -if $pkg_config --modversion glib-2.0 > /dev/null 2>&1 ; then
 -    glib_cflags=`$pkg_config --cflags glib-2.0 2>/dev/null`
 -    glib_libs=`$pkg_config --libs glib-2.0 2>/dev/null`
 -    libs_softmmu="$glib_libs $libs_softmmu"
 -    libs_tools="$glib_libs $libs_tools"
 -else
 -    echo "glib-2.0 required to compile QEMU"
 -    exit 1
 +if test "$guest_agent" != "no" ; then
 +    if $pkg_config --modversion glib-2.0 > /dev/null 2>&1 ; then
 +        glib_cflags=`$pkg_config --cflags glib-2.0 2>/dev/null`
 +        glib_libs=`$pkg_config --libs glib-2.0 2>/dev/null`
 +        libs_softmmu="$glib_libs $libs_softmmu"
 +        libs_tools="$glib_libs $libs_tools"
 +    else
 +        echo "glib-2.0 required to compile QEMU"
 +        exit 1
 +    fi
  fi
  
  ##########################################
  # __sync_fetch_and_and requires at least -march=i486. Many toolchains
  # use i686 as default anyway, but for those that don't, an explicit
  # specification is necessary
 -if test $vhost_net = "yes" && test $cpu = "i386"; then
 +if test "$vhost_net" = "yes" && test "$cpu" = "i386"; then
    cat > $TMPC << EOF
  int sfaa(unsigned *ptr)
  {
    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
 +
  ##########################################
  # End of CC checks
  # After here, no more $cc or $ld runs
@@@ -2627,9 -2597,7 +2627,9 @@@ if test "$softmmu" = yes ; the
    tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
    if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
        tools="qemu-nbd\$(EXESUF) $tools"
 +    if [ "$guest_agent" = "yes" ]; then
        tools="qemu-ga\$(EXESUF) $tools"
 +    fi
      if [ "$check_utests" = "yes" ]; then
        tools="check-qint check-qstring check-qdict check-qlist $tools"
        tools="check-qfloat check-qjson $tools"
@@@ -2731,9 -2699,8 +2731,9 @@@ echo "xfsctl support    $xfs
  echo "nss used          $smartcard_nss"
  echo "usb net redir     $usb_redir"
  echo "OpenGL support    $opengl"
 +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"
  fi
  
  if test "$static" = "yes" ; then
    echo "CONFIG_STATIC=y" >> $config_host_mak
  fi
 -if test $profiler = "yes" ; then
 +if test "$profiler" = "yes" ; then
    echo "CONFIG_PROFILER=y" >> $config_host_mak
  fi
  if test "$slirp" = "yes" ; then
@@@ -3048,10 -3015,6 +3048,10 @@@ if test "$rbd" = "yes" ; the
    echo "CONFIG_RBD=y" >> $config_host_mak
  fi
  
 +if test "$ucontext_coroutine" = "yes" ; then
 +  echo "CONFIG_UCONTEXT_COROUTINE=y" >> $config_host_mak
 +fi
 +
  # USB host support
  case "$usb" in
  linux)
@@@ -3379,7 -3342,7 +3379,7 @@@ case "$target_arch2" i
        \( "$target_arch2" = "x86_64" -a "$cpu" = "i386"   \) -o \
        \( "$target_arch2" = "i386"   -a "$cpu" = "x86_64" \) \) ; then
        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
        fi
      fi