]> xenbits.xensource.com Git - libvirt.git/commitdiff
Disable libvirtd by default when building on Win32
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 28 Apr 2014 12:30:36 +0000 (13:30 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 29 Apr 2014 10:30:32 +0000 (11:30 +0100)
We don't support building libvirtd on Win32 since we lack the
fork/exec feature needed for the stateful drivers. Disable this
by default, so users can just do 'mingw32-configure' with no
special args required.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
autobuild.sh
configure.ac

index f682b51ee4d2720c0b3e437f80c2f151aee30ea0..4d9f616d71bde05ddbddbbc50ee84b2d5c6c480c 100755 (executable)
@@ -85,8 +85,7 @@ if test -x /usr/bin/i686-w64-mingw32-gcc ; then
     --host=i686-w64-mingw32 \
     --prefix="$AUTOBUILD_INSTALL_ROOT/i686-w64-mingw32/sys-root/mingw" \
     --enable-expensive-tests \
-    --enable-werror \
-    --without-libvirtd
+    --enable-werror
 
   make
   make install
@@ -105,8 +104,7 @@ if test -x /usr/bin/x86_64-w64-mingw32-gcc ; then
     --host=x86_64-w64-mingw32 \
     --prefix="$AUTOBUILD_INSTALL_ROOT/x86_64-w64-mingw32/sys-root/mingw" \
     --enable-expensive-tests \
-    --enable-werror \
-    --without-libvirtd
+    --enable-werror
 
   make
   make install
index ea85851eb0ab77e24351f16a7a6b322287837789..3371b46cb4191a811b5b875dea8f604ef2ee6390 100644 (file)
@@ -175,6 +175,7 @@ case $host in
   *-*-linux*) with_linux=yes ;;
   *-*-darwin*) with_osx=yes ;;
   *-*-freebsd*) with_freebsd=yes ;;
+  *-*-mingw* | *-*-msvc* ) with_win=yes ;;
 esac
 
 if test $with_linux = no; then
@@ -194,6 +195,11 @@ fi
 AM_CONDITIONAL([WITH_LINUX], [test "$with_linux" = "yes"])
 AM_CONDITIONAL([WITH_FREEBSD], [test "$with_freebsd" = "yes"])
 
+# We don't support the daemon yet
+if test "$with_win" = "yes" ; then
+  with_libvirtd=no
+fi
+
 # The daemon requires remote support.  Likewise, if we are not using
 # RPC, we don't need several libraries.
 if test "$with_remote" = "no" ; then