diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-11-09 11:33:55 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-11-09 11:33:55 -0800 |
commit | 36563f09b06a56f00360905d7da8b5d6546b65c1 (patch) | |
tree | 23c43258c3613c62208689d3fd15e07bab013730 /configure.ac | |
parent | bc410907642bad21b1e87cc1eac40a445b537d3b (diff) | |
download | tcpdump-36563f09b06a56f00360905d7da8b5d6546b65c1.tar.gz |
Require sys/capsicum.h to use Capsicum.
My PC-BSD 9.1 VM, at least, has sys/capability.h but not sys/capsicum.h;
we now use sys/capsicum.h, so require it to be present (which it is in
FreeBSD 10 and later).
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 2439aaa7..e4f1d258 100644 --- a/configure.ac +++ b/configure.ac @@ -199,9 +199,18 @@ AC_ARG_WITH(sandbox-capsicum, # present, imply others are present? # if test ! -z "$with_sandbox-capsicum" && test "$with_sandbox-capsicum" != "no" ; then - AC_CHECK_FUNCS(cap_enter cap_rights_limit cap_ioctls_limit openat, - ac_lbl_capsicum_function_seen=yes, - ac_lbl_capsicum_function_not_seen=yes) + # + # First, make sure we have the required header. + # + AC_CHECK_HEADER(sys/capsicum.h, + [ + # + # We do; now make sure we have the required functions. + # + AC_CHECK_FUNCS(cap_enter cap_rights_limit cap_ioctls_limit openat, + ac_lbl_capsicum_function_seen=yes, + ac_lbl_capsicum_function_not_seen=yes) + ]) AC_CHECK_LIB(casper, cap_init, LIBS="$LIBS -lcasper") AC_CHECK_LIB(cap_dns, cap_gethostbyaddr, LIBS="$LIBS -lcap_dns") fi |