s4-ntvfs: win7 does not check for the NONE smb2 lock flag on unlock
[Samba/cd1.git] / lib / util / capability.m4
blob2a95a607d5ad3abe4c3ea4f71ca289ac4ded4e6c
1 AC_CACHE_CHECK([for irix specific capabilities],samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES,[
2 AC_TRY_RUN([#include <sys/types.h>
3 #include <sys/capability.h>
4 main() {
5  cap_t cap;
6  if ((cap = cap_get_proc()) == NULL)
7    exit(1);
8  cap->cap_effective |= CAP_NETWORK_MGT;
9  cap->cap_inheritable |= CAP_NETWORK_MGT;
10  cap_set_proc(cap);
11  exit(0);
14 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes,samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no,samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross)])
15 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
16     AC_DEFINE(HAVE_IRIX_SPECIFIC_CAPABILITIES,1,[Whether IRIX specific capabilities are available])