From: Daniel Veillard Date: Tue, 27 Apr 2010 08:11:21 +0000 (+0200) Subject: Don't try to build qemu and lxc on non-Linux platforms X-Git-Tag: v0.8.1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b3ce82d98e0dadbc1b70eeb1bebfc7be7fe1d01;p=thirdparty%2Flibvirt.git Don't try to build qemu and lxc on non-Linux platforms as their drivers requires linux only headers --- diff --git a/configure.ac b/configure.ac index 955a9e9e31..e8c71cf7cc 100644 --- a/configure.ac +++ b/configure.ac @@ -209,6 +209,18 @@ if test "$prefix" = "/usr" && test "$sysconfdir" = '${prefix}/etc' ; then sysconfdir='/etc' fi +dnl lxc and qemu drivers require linux headers +if test `uname -s` != "Linux" +then + if test "x$with_lxc" != "xyes" + then + with_lxc=no + fi + if test "x$with_qemu" != "xyes" + then + with_qemu=no + fi +fi dnl Allow to build without Xen, QEMU/KVM, test or remote driver AC_ARG_WITH([xen],