aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-12-15 12:04:45 +0100
committerEelco Dolstra <edolstra@gmail.com>2016-12-15 12:04:45 +0100
commit9f3f2e21edb17dbcd674539dff96efb6cceca10c (patch)
tree8d687ca67b4729a91e32792bec3d8f35cda07ab8 /configure.ac
parent47f587700d646f5b03a42f2fa57c28875a31efbe (diff)
parent4e1a2cd537b5b910937499c544043ddac291843e (diff)
Merge branch 'seccomp' of https://github.com/aszlig/nix
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e6b11be2d..4e1806270 100644
--- a/configure.ac
+++ b/configure.ac
@@ -193,6 +193,15 @@ AC_SUBST(HAVE_SODIUM, [$have_sodium])
PKG_CHECK_MODULES([LIBLZMA], [liblzma], [CXXFLAGS="$LIBLZMA_CFLAGS $CXXFLAGS"])
+# Look for libseccomp, required for Linux sandboxing.
+if test "$sys_name" = linux; then
+ PKG_CHECK_MODULES([LIBSECCOMP], [libseccomp],
+ [CXXFLAGS="$LIBSECCOMP_CFLAGS $CXXFLAGS"])
+# AC_CHECK_LIB([seccomp], [seccomp_init], [true],
+# [AC_MSG_ERROR([Nix requires libseccomp for sandboxing. See https://github.com/seccomp/libseccomp.])])
+fi
+
+
# Look for aws-cpp-sdk-s3.
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS([aws/s3/S3Client.h],