summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2021-04-11 12:00:35 +0200
committerPhilipp Stephani <phst@google.com>2021-04-11 12:01:53 +0200
commit25937821bc445235d984c4db8cb18dfbacd6a4ff (patch)
treed8e6959d62941ec1fd83162f8c17bc7ca1eb91ab /configure.ac
parent3cf9e2a6e33599bb12a949a3b5bd1847f39ab948 (diff)
downloademacs-25937821bc445235d984c4db8cb18dfbacd6a4ff.tar.gz
Also check for needed seccomp macros.
It looks like these are not available on some versions of GNU/Linux, breaking the build. * configure.ac: Also check for needed seccomp macros. * src/emacs.c (SECCOMP_USABLE): New macro. (usage_message, main, standard_args): Use it.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0c4772a2b96..be623c96548 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4179,7 +4179,15 @@ fi
AC_SUBST([BLESSMAIL_TARGET])
AC_SUBST([LIBS_MAIL])
-AC_CHECK_HEADERS([linux/seccomp.h], [HAVE_SECCOMP=yes])
+HAVE_SECCOMP=no
+AC_CHECK_HEADERS(
+ [linux/seccomp.h],
+ [AC_CHECK_DECLS(
+ [SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC],
+ [HAVE_SECCOMP=yes], [],
+ [[
+ #include <linux/seccomp.h>
+ ]])])
LIBSECCOMP=
AC_CHECK_HEADER([seccomp.h],