1 dnl Check for "struct ucred"
2 AC_MSG_CHECKING("struct ucred")
3 AC_EGREP_HEADER([struct ucred], [sys/socket.h], have_ucred=yes)
4 if test "$have_ucred" = "yes"; then
5 AC_DEFINE(HAVE_STRUCT_UCRED, 1, [Define if you have the struct ucred])
11 dnl Check for the group "nogroup" or "nobody" Use -2 otherwise.
12 AC_MSG_CHECKING(nogroup)
15 #include <sys/types.h>
19 struct group *grp = getgrnam("nogroup");
26 #include <sys/types.h>
30 struct group *grp = getgrnam("nobody");
35 nogroup=65534, nogroup=65534), nogroup=65534)
36 AC_MSG_RESULT($nogroup)
38 AC_CHECK_FUNCS(getpeereid)