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>
6 if ((cap = cap_get_proc()) == NULL)
8 cap->cap_effective |= CAP_NETWORK_MGT;
9 cap->cap_inheritable |= CAP_NETWORK_MGT;
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])