summaryrefslogtreecommitdiffstats
path: root/m4/seccomp.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:02:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:02:34 +0000
commitfadeddfbb2aa38a980dd959b5ec1ffba7afd43cb (patch)
treea7bde6111c84ea64619656a38fba50909fa0bf60 /m4/seccomp.m4
parentInitial commit. (diff)
downloadlldpd-fadeddfbb2aa38a980dd959b5ec1ffba7afd43cb.tar.xz
lldpd-fadeddfbb2aa38a980dd959b5ec1ffba7afd43cb.zip
Adding upstream version 1.0.18.upstream/1.0.18upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'm4/seccomp.m4')
-rw-r--r--m4/seccomp.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/m4/seccomp.m4 b/m4/seccomp.m4
new file mode 100644
index 0000000..e9134d5
--- /dev/null
+++ b/m4/seccomp.m4
@@ -0,0 +1,19 @@
+#
+# lldp_CHECK_SECCOMP
+#
+
+AC_DEFUN([lldp_CHECK_SECCOMP], [
+ if test x"$with_seccomp" != x"no"; then
+ PKG_CHECK_MODULES([libseccomp], [libseccomp >= 1], [
+ AC_SUBST([libseccomp_LIBS])
+ AC_SUBST([libseccomp_CFLAGS])
+ AC_DEFINE_UNQUOTED([USE_SECCOMP], 1, [Define to indicate to enable seccomp support])
+ with_seccomp=yes
+ ], [
+ if test x"$with_seccomp" = x"yes"; then
+ AC_MSG_FAILURE([*** no seccomp support found])
+ fi
+ with_seccomp=no
+ ])
+ fi
+])