only use libseccomp in x86 (64) and ARM

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-05 17:50:27 +01:00
parent 2651099b96
commit 5f34edaf31

View File

@@ -282,7 +282,11 @@ AC_ARG_ENABLE(seccomp,
seccomp_enabled=$enableval, seccomp_enabled=yes)
if [ test "$seccomp_enabled" = "yes" ];then
AC_LIB_HAVE_LINKFLAGS(seccomp,, [#include <seccomp.h>], [seccomp_init(0);])
AC_LIB_HAVE_LINKFLAGS(seccomp,, [#include <seccomp.h>
#if !defined(__i386__) && !defined(__arm__) && !defined(__x86_64__)
# error 1
#endif
], [seccomp_init(0);])
if [ test -z "$LIBSECCOMP" ];then
seccomp_enabled="no"
else