Patchwork [v2] qemu-ga: build it even if !system

login
register
mail settings
Submitter Michael Tokarev
Date July 31, 2013, 3:06 p.m.
Message ID <1375283190-24875-1-git-send-email-mjt@msgid.tls.msk.ru>
Download mbox | patch
Permalink /patch/263739/
State New
Headers show

Comments

Michael Tokarev - July 31, 2013, 3:06 p.m.
Move qemu-ga build check out of if softmmu.. into its own section.
We want to build qemu-ga for _guest_ even if system build isn't
done.  It is controlled separately using --enable-guest-agent.
Additionally, give error message if guest agent is requested but
not supported.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 configure |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Patch

diff --git a/configure b/configure
index f0761ea..50ea000 100755
--- a/configure
+++ b/configure
@@ -231,7 +231,7 @@  libusb=""
 usb_redir=""
 glx=""
 zlib="yes"
-guest_agent="yes"
+guest_agent=""
 want_tools="yes"
 libiscsi=""
 coroutine=""
@@ -3444,11 +3444,16 @@  if test "$softmmu" = yes ; then
       virtfs=no
     fi
   fi
+fi
+if [ "$guest_agent" != "no" ]; then
   if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
-    if [ "$guest_agent" = "yes" ]; then
       tools="qemu-ga\$(EXESUF) $tools"
-    fi
+      guest_agent=yes
+  else
+      error_exit "Guest agent is not supported on this platform"
   fi
+else
+  guest_agent=no
 fi
 
 # Mac OS X ships with a broken assembler