diff options
Diffstat (limited to 'm4/seccomp.m4')
-rw-r--r-- | m4/seccomp.m4 | 19 |
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 +]) |