[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC][PATCH v6 23/23] virtagent: various bits to build QEMU
From: |
Michael Roth |
Subject: |
[Qemu-devel] [RFC][PATCH v6 23/23] virtagent: various bits to build QEMU with virtagent |
Date: |
Mon, 17 Jan 2011 07:15:17 -0600 |
Signed-off-by: Michael Roth <address@hidden>
---
Makefile.target | 2 +-
configure | 32 ++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index e15b1c4..8564a8f 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -186,7 +186,7 @@ endif #CONFIG_BSD_USER
# System emulator target
ifdef CONFIG_SOFTMMU
-obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o
+obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o virtagent.o
virtagent-server.o virtagent-common.o
# virtio has to be here due to weird dependency between PCI and virtio-net.
# need to fix this properly
obj-$(CONFIG_NO_PCI) += pci-stub.o
diff --git a/configure b/configure
index 438219b..4814351 100755
--- a/configure
+++ b/configure
@@ -1271,6 +1271,37 @@ EOF
fi
##########################################
+# xmlrpc-c probe
+
+discard_cmake_vars() {
+ echo "$@" | sed 's/@.*@//g'
+}
+
+# Look for the xmlrpc-c config program
+if test -n "$cross_prefix" && has ${cross_prefix}xmlrpc-c-config; then
+ xmlrpccconfig=${cross_prefix}xmlrpc-c-config
+elif has xmlrpc-c-config; then
+ xmlrpccconfig=xmlrpc-c-config
+else
+ feature_not_found "xmlrpc-c"
+fi
+
+cat > $TMPC << EOF
+#include <xmlrpc.h>
+int main(void) { xmlrpc_env env; xmlrpc_env_init(&env); return 0; }
+EOF
+xmlrpc_cflags=`$xmlrpccconfig --cflags 2> /dev/null`
+xmlrpc_cflags=`discard_cmake_vars $xmlrpc_cflags`
+xmlrpc_libs=`$xmlrpccconfig client server-util --libs 2> /dev/null`
+xmlrpc_libs=`discard_cmake_vars $xmlrpc_libs`
+if compile_prog "$xmlrpc_cflags" "$xmlrpc_libs"; then
+ libs_softmmu="$xmlrpc_libs $libs_softmmu"
+ libs_tools="$xmlrpc_libs $libs_tools"
+else
+ feature_not_found "xmlrpc-c"
+fi
+
+##########################################
# VNC TLS detection
if test "$vnc_tls" != "no" ; then
cat > $TMPC <<EOF
@@ -2368,6 +2399,7 @@ if test "$softmmu" = yes ; then
tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
tools="qemu-nbd\$(EXESUF) $tools"
+ tools="qemu-va\$(EXESUF) $tools"
if [ "$check_utests" = "yes" ]; then
tools="check-qint check-qstring check-qdict check-qlist $tools"
tools="check-qfloat check-qjson $tools"
--
1.7.0.4
- [Qemu-devel] [RFC][PATCH v6 14/23] virtagent: add va.ping RPC, (continued)
- [Qemu-devel] [RFC][PATCH v6 14/23] virtagent: add va.ping RPC, Michael Roth, 2011/01/17
- [Qemu-devel] [RFC][PATCH v6 10/23] virtagent: add va.getdmesg RPC, Michael Roth, 2011/01/17
- [Qemu-devel] [RFC][PATCH v6 15/23] virtagent: add agent_ping qmp/hmp commands, Michael Roth, 2011/01/17
- [Qemu-devel] [RFC][PATCH v6 18/23] virtagent: add va.hello RPC, Michael Roth, 2011/01/17
- [Qemu-devel] [RFC][PATCH v6 13/23] virtagent: add agent_shutdown qmp/hmp commands, Michael Roth, 2011/01/17
- [Qemu-devel] [RFC][PATCH v6 16/23] virtagent: add agent_capabilities qmp/hmp commands, Michael Roth, 2011/01/17
- [Qemu-devel] [RFC][PATCH v6 19/23] virtagent: add "hello" notification function for guest agent, Michael Roth, 2011/01/17
- [Qemu-devel] [RFC][PATCH v6 17/23] virtagent: add client capabilities init function, Michael Roth, 2011/01/17
- [Qemu-devel] [RFC][PATCH v6 21/23] virtagent: add virtagent guest daemon, Michael Roth, 2011/01/17
- [Qemu-devel] [RFC][PATCH v6 20/23] virtagent: add va.capabilities RPC, Michael Roth, 2011/01/17
- [Qemu-devel] [RFC][PATCH v6 23/23] virtagent: various bits to build QEMU with virtagent,
Michael Roth <=
- [Qemu-devel] [RFC][PATCH v6 22/23] virtagent: integrate virtagent server/client via chardev, Michael Roth, 2011/01/17
- Re: [Qemu-devel] [RFC][PATCH v6 00/23] virtagent: host/guest RPC communication agent, Gerd Hoffmann, 2011/01/17