summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <habets@google.com>2021-12-26 15:04:29 +0000
committerThomas Habets <habets@google.com>2021-12-26 15:04:29 +0000
commitd0133a4971494238aa2cfe5ecf5fab18f0f23e2d (patch)
tree4bb44992ff02c598d0bb7b71b6dde58885b9403d
parentd847c55389c2de764d002770d3d87e6120000a8c (diff)
downloadarping-d0133a4971494238aa2cfe5ecf5fab18f0f23e2d.tar.gz
configure: error out if default seccomp requested but not present
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5fd8ff6..7bfb1ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,9 @@ AC_CHECK_LIB([pcap], [pcap_open_live], ,[AC_MSG_ERROR([libpcap not found])])
AC_SEARCH_LIBS([clock_gettime], [rt])
AC_ARG_ENABLE([seccomp], [Enable seccomp priv drops by default (-z to turn on, -Z for off)], [
+ if test "$ac_cv_lib_seccomp_seccomp_init" = "no"; then
+ AC_MSG_ERROR([--enable-seccomp given but seccomp libraries not present])
+ fi
AC_DEFINE([DEFAULT_SECCOMP], [1], [Enable seccomp by default])
], [
AC_DEFINE([DEFAULT_SECCOMP], [0], [Disable seccomp by default])