[libvirt] [PATCH RFC 1/5] Include criu support in autotools

Katerina Koukiou k.koukiou at googlemail.com
Thu Jul 21 15:37:23 UTC 2016


Check for CRIU binary in autotools. This binary is needed
for checkpointing/restoring linux containers.

Signed-off-by: Katerina Koukiou <k.koukiou at gmail.com>
---
 configure.ac | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/configure.ac b/configure.ac
index 2c81c95..d061676 100644
--- a/configure.ac
+++ b/configure.ac
@@ -242,6 +242,7 @@ LIBVIRT_CHECK_AUDIT
 LIBVIRT_CHECK_AVAHI
 LIBVIRT_CHECK_BLKID
 LIBVIRT_CHECK_CAPNG
+LIBVIRT_CHECK_CRIU
 LIBVIRT_CHECK_CURL
 LIBVIRT_CHECK_DBUS
 LIBVIRT_CHECK_FUSE
@@ -425,6 +426,13 @@ AC_PATH_PROG([XSLTPROC], [xsltproc], [/usr/bin/xsltproc])
 AC_PATH_PROG([AUGPARSE], [augparse], [/usr/bin/augparse])
 AC_PROG_MKDIR_P
 AC_PROG_LN_S
+AC_PATH_PROG([CRIU], [criu], [no],
+	[$PATH:/sbin:/usr/sbin:/usr/local/sbin])
+AM_CONDITIONAL([WITH_CRIU], [test "x$ac_cv_path_CRIU" != "xno"])
+if test "x$ac_cv_path_CRIU" != "xno"; then
+	AC_DEFINE_UNQUOTED([CRIU], ["$CRIU"],
+	[Location of criu program])
+fi
 
 dnl External programs that we can use if they are available.
 dnl We will hard-code paths to these programs unless we cannot
-- 
2.7.3




More information about the libvir-list mailing list