#! /bin/sh
# $OpenLDAP$
-# from OpenLDAP: pkg/ldap/configure.in,v 1.461 2003/03/02 20:21:39 kurt Exp
+# from OpenLDAP: pkg/ldap/configure.in,v 1.462 2003/03/02 20:46:41 kurt Exp
# Copyright 1998-2003 The OpenLDAP Foundation. All Rights Reserved.
#
if test "$ac_cv_func_getpeereid" != yes; then
echo $ac_n "checking msg_accrights in msghdr""... $ac_c" 1>&6
echo "configure:22957: checking msg_accrights in msghdr" >&5
-if eval "test \"\${ol_cv_msg_accrights+set}\" = set"; then
+if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 22962 "configure"
#include "confdefs.h"
-#include <socket.h>
+#include <sys/socket.h>
int main() {
struct msghdr m; m.msg_accrightslen=0
; return 0; }
fi
-echo "$ac_t""$ol_cv_msg_accrights" 1>&6
- if test $ol_cv_func_ctime_r_type = "int" ; then
+echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
+ if test $ol_cv_msghdr_msg_accrights = "yes" ; then
cat >> confdefs.h <<\EOF
#define HAVE_MSGHDR_MSG_ACCRIGHTS 1
EOF