]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Disable netcf if building without libvirtd
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 11 Jan 2012 14:09:03 +0000 (14:09 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 11 Jan 2012 15:01:54 +0000 (15:01 +0000)
Although the netcf interface driver can in theory be used by
the stateless drivers, in practice none of them want to use
it because they have different ways of dealing with interfaces.

Furthermore, if you have mingw32-netcf installed, then the
libvirt mingw32 build will fail with

  ../../src/interface/netcf_driver.c:644:5: error: unknown field 'close_used_without_including_unistd_h' specified in initializer

 * configure.ac: disable netcf if built without libvirtd

configure.ac

index b12e9fbc37a0da2c04484394235b40217a04127e..729ba9b29e904680c878aa59b21be301cb1fa23d 100644 (file)
@@ -1613,6 +1613,9 @@ AC_ARG_WITH([netcf],
 
 NETCF_CFLAGS=
 NETCF_LIBS=
+if test "$with_libvirtd" = "no" ; then
+  with_netcf=no
+fi
 if test "$with_netcf" = "yes" || test "$with_netcf" = "check"; then
   PKG_CHECK_MODULES(NETCF, netcf >= $NETCF_REQUIRED,
     [with_netcf=yes], [