#! /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.464 2003/03/05 00:32:41 hyc Exp
# Copyright 1998-2003 The OpenLDAP Foundation. All Rights Reserved.
#
{ echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
fi
-for ac_func in getaddrinfo gai_strerror inet_ntop
+for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10315: checking for $ac_func" >&5
else
have_krb5=no
- echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
+ echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
fi
if test $have_krb5 = yes ; then
LIBSRCS="$LIBSRCS getopt.c"
fi
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
+ echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
+echo "configure:22957: checking for msg_accrights in msghdr" >&5
+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