configure: error out if default seccomp requested but not present
Thomas Habets
2 years ago
34 | 34 | AC_SEARCH_LIBS([clock_gettime], [rt]) |
35 | 35 | |
36 | 36 | AC_ARG_ENABLE([seccomp], [Enable seccomp priv drops by default (-z to turn on, -Z for off)], [ |
37 | if test "$ac_cv_lib_seccomp_seccomp_init" = "no"; then | |
38 | AC_MSG_ERROR([--enable-seccomp given but seccomp libraries not present]) | |
39 | fi | |
37 | 40 | AC_DEFINE([DEFAULT_SECCOMP], [1], [Enable seccomp by default]) |
38 | 41 | ], [ |
39 | 42 | AC_DEFINE([DEFAULT_SECCOMP], [0], [Disable seccomp by default]) |