CHECK_SSL($enable_ssldir)
server_ldflags="$srver_ldflags $SSL_LDFLAGS $SSL_LIBS"
+########################################################################### ucred
+
+AC_MSG_CHECKING(for struct ucred)
+AC_TRY_LINK([
+ #include <sys/types.h>
+ #include <sys/socket.h>
+],[
+ struct ucred sucred; sucred.pid=0;
+],[have_ucred=yes],[have_ucred=no])
+AC_MSG_RESULT($have_ucred)
+if test ${have_ucred} = yes; then
+ AC_DEFINE(HAVE_UCRED, 1, define to 1 you have struct ucred)
+fi
+
########################################################################### gtk2
pkg_modules="gtk+-2.0 >= 2.0.0"
ogg vorbis support: $have_ogg
mp3dec support (libmad): $have_mad
ortp support: $have_ortp
+unix socket credentials: $have_ucred
])