report the results of "checking for socket length type..."

This commit is contained in:
Mark Andrews
2001-07-18 05:40:52 +00:00
parent 29493eee3d
commit 51bb20b0d7

View File

@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.74 $)
AC_REVISION($Revision: 1.75 $)
AC_INIT(resolv/herror.c)
AC_PREREQ(2.13)
@@ -1310,30 +1310,35 @@ AC_TRY_COMPILE([
#include <sys/socket.h>
int accept(int, struct sockaddr *, socklen_t *);
],[],
[ISC_SOCKLEN_T="#define ISC_SOCKLEN_T socklen_t"]
[ISC_SOCKLEN_T="#define ISC_SOCKLEN_T socklen_t"
AC_MSG_RESULT(socklen_t)]
,
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
int accept(int, struct sockaddr *, unsigned int *);
],[],
[ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned int"]
[ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned int"
AC_MSG_RESULT(unsigned int)]
,
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
int accept(int, struct sockaddr *, unsigned long *);
],[],
[ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned long"]
[ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned long"
AC_MSG_RESULT(unsigned long)]
,
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
int accept(int, struct sockaddr *, long *);
],[],
[ISC_SOCKLEN_T="#define ISC_SOCKLEN_T long"]
[ISC_SOCKLEN_T="#define ISC_SOCKLEN_T long"
AC_MSG_RESULT(long)]
,
ISC_SOCKLEN_T="#define ISC_SOCKLEN_T int"
AC_MSG_RESULT(int)
))))
AC_SUBST(ISC_SOCKLEN_T)