about summary refs log tree commit diff homepage
path: root/autoconf
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2013-12-11 09:05:26 -0800
committerCristian Cadar <c.cadar@imperial.ac.uk>2013-12-11 09:05:26 -0800
commita45df61f6641ed0f6b92919bf377ce2ef1f1d839 (patch)
tree0eaeba63fc853334f703a8807bae47ca5b8f3232 /autoconf
parent02fa9e4d83a04f50cb1ad24b543a2fd5002fa2f3 (diff)
parent67bfeaa6f6cd9f46a1d5131ab0b831913922eb3d (diff)
downloadklee-a45df61f6641ed0f6b92919bf377ce2ef1f1d839.tar.gz
Merge pull request #31 from antiAgainst/chroot-replay
Chroot replay feature
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 2fd162f2..4bd79557 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -467,6 +467,15 @@ AC_LANG_PUSH([C])
 
 AC_CHECK_HEADERS([sys/acl.h])
 
+AC_CHECK_LIB([cap], [cap_get_proc], [have_cap=yes], [have_cap=no])
+if test "x${have_cap}" = xyes; then
+  AC_CHECK_HEADERS([sys/capability.h], [], [have_cap=no])
+fi
+if test "x${have_cap}" = xno; then
+  AC_MSG_ERROR([Library cap and its header file sys/capability.h required for \
+klee-replay. Please install package libcap-dev/libcap-devel.])
+fi
+
 AC_LANG_POP([C])
 
 AC_CHECK_HEADERS([selinux/selinux.h],