]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Use AC_LINK_IFELSE
authorGuido Günther <agx@sigxcpu.org>
Thu, 18 Jul 2013 15:35:12 +0000 (17:35 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 18 Jul 2013 21:14:08 +0000 (23:14 +0200)
instead of the deprecated AC_TRY_LINK

configure.ac

index 5d5c8deb7bce58ee7b318b4c845c94009b03aebd..27531a1688b4db7c195308179b76f5a4ea1fc26d 100644 (file)
@@ -893,13 +893,14 @@ if test "$with_libvirtd" = "no" ; then
   with_lxc=no
 fi
 if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then
-    AC_TRY_LINK([
+    AC_LINK_IFELSE([AC_LANG_PROGRAM(
+    [[
         #include <sched.h>
         #include <linux/loop.h>
         #include <sys/epoll.h>
-    ][
-        unshare (!(LO_FLAGS_AUTOCLEAR + EPOLL_CLOEXEC));
-    ], [
+    ]], [[
+        unshare(!(LO_FLAGS_AUTOCLEAR + EPOLL_CLOEXEC));
+    ]])], [
         with_lxc=yes
        AC_DEFINE([HAVE_DECL_LO_FLAGS_AUTOCLEAR], [1],
          [Define to 1 if you have the declaration of `LO_FLAGS_AUTOCLEAR',