diff options
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 |