1
# -*- buffer-read-only: t -*- vi: set ro:
2
# DO NOT EDIT! GENERATED AUTOMATICALLY!
4
dnl Copyright (C) 2011 Free Software Foundation, Inc.
5
dnl This file is free software; the Free Software Foundation
6
dnl gives unlimited permission to copy and/or distribute it,
7
dnl with or without modifications, as long as this notice is preserved.
11
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
12
AC_CHECK_FUNCS_ONCE([recvmsg sendmsg])
14
dnl Persuade AIX 5.2 <sys/socket.h> to declare CMSG_SPACE, CMSG_LEN.
15
dnl CMSG_FIRSTHDR is POSIX 2008, but CMSG_SPACE is only in RFC 3542.
16
AC_DEFINE([_LINUX_SOURCE_COMPAT], [1],
17
[Define in order to get some macros on AIX systems.])
19
dnl Passfd prefers the POSIX use of msg.msg_control if the CMSG_* macros
20
dnl are present, but can fall back to BSD 4.3 style of msg.msg_accrights.
21
AC_CHECK_MEMBERS([struct msghdr.msg_accrights], [], [], [[
22
#include <sys/types.h>
23
#include <sys/socket.h>