]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
m4: virt-netcf: bump minimal version to 0.1.8
authorPavel Hrdina <phrdina@redhat.com>
Wed, 9 Oct 2019 12:47:34 +0000 (14:47 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 23 Oct 2019 12:30:49 +0000 (14:30 +0200)
This version is available on all supported OSes and includes the
transaction APIs.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
m4/virt-netcf.m4
src/interface/interface_backend_netcf.c

index 588b5e7a91b8b3d16bb6b9d58ee43ef85e3e170e..ada6b5a7a985732959a404e665fefd020b31a47f 100644 (file)
@@ -18,25 +18,11 @@ dnl <http://www.gnu.org/licenses/>.
 dnl
 
 AC_DEFUN([LIBVIRT_ARG_NETCF],[
-  LIBVIRT_ARG_WITH_FEATURE([NETCF], [netcf], [check], [0.1.4])
+  LIBVIRT_ARG_WITH_FEATURE([NETCF], [netcf], [check], [0.1.8])
 ])
 
 AC_DEFUN([LIBVIRT_CHECK_NETCF],[
-  LIBVIRT_CHECK_PKG([NETCF], [netcf], [0.1.4])
-
-  if test "$with_netcf" = "yes" ; then
-    old_CFLAGS="$CFLAGS"
-    old_LIBS="$LIBS"
-    CFLAGS="$CFLAGS $NETCF_CFLAGS"
-    LIBS="$LIBS $NETCF_LIBS"
-    AC_CHECK_FUNC([ncf_change_begin], [netcf_transactions=1], [netcf_transactions=0])
-    if test "$netcf_transactions" = "1" ; then
-        AC_DEFINE_UNQUOTED([HAVE_NETCF_TRANSACTIONS], [1],
-          [we have sufficiently new version of netcf for transaction network API])
-    fi
-    CFLAGS="$old_CFLAGS"
-    LIBS="$old_LIBS"
-  fi
+  LIBVIRT_CHECK_PKG([NETCF], [netcf], [0.1.8])
 ])
 
 AC_DEFUN([LIBVIRT_RESULT_NETCF],[
index 27590af1341389ecc7026364657e54797dcda92b..9cce0b25c00451c478e7c17bd4ae4ee2d0a9a812 100644 (file)
@@ -1117,7 +1117,6 @@ static int netcfInterfaceIsActive(virInterfacePtr ifinfo)
     return ret;
 }
 
-#ifdef HAVE_NETCF_TRANSACTIONS
 static int netcfInterfaceChangeBegin(virConnectPtr conn, unsigned int flags)
 {
     int ret;
@@ -1192,7 +1191,6 @@ static int netcfInterfaceChangeRollback(virConnectPtr conn, unsigned int flags)
     virObjectUnlock(driver);
     return ret;
 }
-#endif /* HAVE_NETCF_TRANSACTIONS */
 
 static virInterfaceDriver interfaceDriver = {
     .name = INTERFACE_DRIVER_NAME,
@@ -1209,11 +1207,9 @@ static virInterfaceDriver interfaceDriver = {
     .interfaceCreate = netcfInterfaceCreate, /* 0.7.0 */
     .interfaceDestroy = netcfInterfaceDestroy, /* 0.7.0 */
     .interfaceIsActive = netcfInterfaceIsActive, /* 0.7.3 */
-#ifdef HAVE_NETCF_TRANSACTIONS
     .interfaceChangeBegin = netcfInterfaceChangeBegin, /* 0.9.2 */
     .interfaceChangeCommit = netcfInterfaceChangeCommit, /* 0.9.2 */
     .interfaceChangeRollback = netcfInterfaceChangeRollback, /* 0.9.2 */
-#endif /* HAVE_NETCF_TRANSACTIONS */
 };