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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Katerina Koukiou <k.koukiou@xxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]