]> xenbits.xensource.com Git - libvirt.git/commitdiff
libxl: remove configure check for libxl_domain_config_from_json
authorJim Fehlig <jfehlig@suse.com>
Fri, 14 Sep 2018 19:33:04 +0000 (13:33 -0600)
committerJim Fehlig <jfehlig@suse.com>
Wed, 19 Sep 2018 15:41:09 +0000 (09:41 -0600)
The libxl_domain_config_from_json API appeared in Xen 4.5, hence
there is no need to check for its existence after changing the
minimum supported Xen version to 4.6. Remove the check and its
use in the tests.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
m4/virt-driver-libxl.m4
tests/libxlxml2domconfigtest.c

index 902da1147268cae285ffdcd07ad53dac29aaa202..70c5c59e6ac92a1b3a278a336cf6012c247741ef 100644 (file)
@@ -56,13 +56,6 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_LIBXL], [
     ],[
       LIBXL_LIBS="$LIBXL_LIBS -lxenstore -lxenctrl"
     ])
-
-    dnl Check if libxl_domain_config_from_json is available for domXML to
-    dnl libxl_domain_config tests
-    LIBS="$LIBS -lxenlight -lxenctrl"
-    AC_CHECK_FUNCS([libxl_domain_config_from_json])
-    CFLAGS="$old_CFLAGS"
-    LIBS="$old_LIBS"
   fi
 
   AC_SUBST([LIBXL_CFLAGS])
index b814461acc6882c41ff3446e5e22067e446c6636..eacf8f56154531fca6d4b70dc435dabdd872d31f 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "testutils.h"
 
-#if defined(WITH_LIBXL) && defined(WITH_YAJL) && defined(HAVE_LIBXL_DOMAIN_CONFIG_FROM_JSON)
+#if defined(WITH_LIBXL) && defined(WITH_YAJL)
 
 # include "internal.h"
 # include "viralloc.h"
@@ -228,4 +228,4 @@ int main(void)
     return EXIT_AM_SKIP;
 }
 
-#endif /* WITH_LIBXL && WITH_YAJL && HAVE_LIBXL_DOMAIN_CONFIG_FROM_JSON */
+#endif /* WITH_LIBXL && WITH_YAJL */