]> git.ipfire.org Git - thirdparty/squid.git/blob - acinclude/init.m4
SourceFormat Enforcement
[thirdparty/squid.git] / acinclude / init.m4
1 ## Copyright (C) 1996-2017 The Squid Software Foundation and contributors
2 ##
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
6 ##
7
8 dnl This encapsulates the nasty mess of headers we need to check when
9 dnl checking types.
10 AC_DEFUN([SQUID_DEFAULT_INCLUDES],[[
11 /* What a mess.. many systems have added the (now standard) bit types
12 * in their own ways, so we need to scan a wide variety of headers to
13 * find them..
14 * IMPORTANT: Keep compat/types.h syncronised with this list
15 */
16 #if HAVE_SYS_TYPES_H
17 #include <sys/types.h>
18 #endif
19 #if HAVE_LINUX_TYPES_H
20 #include <linux/types.h>
21 #endif
22 #if HAVE_STDLIB_H
23 #include <stdlib.h>
24 #endif
25 #if HAVE_STDDEF_H
26 #include <stddef.h>
27 #endif
28 #if HAVE_INTTYPES_H
29 #include <inttypes.h>
30 #endif
31 #if HAVE_SYS_BITYPES_H
32 #include <sys/bitypes.h>
33 #endif
34 #if HAVE_SYS_SELECT_H
35 #include <sys/select.h>
36 #endif
37 #if HAVE_NETINET_IN_SYSTM_H
38 #include <netinet/in_systm.h>
39 #endif
40 ]])
41
42 dnl *BSD net headers
43 AC_DEFUN([SQUID_BSDNET_INCLUDES],[
44 SQUID_DEFAULT_INCLUDES
45 #if HAVE_SYS_PARAM_H
46 #include <sys/param.h>
47 #endif
48 #if HAVE_SYS_TIME_H
49 #include <sys/time.h>
50 #endif
51 #if HAVE_SYS_SOCKET_H
52 #include <sys/socket.h>
53 #endif
54 #if HAVE_NET_IF_H
55 #include <net/if.h>
56 #endif
57 #if HAVE_NETINET_IN_H
58 #include <netinet/in.h>
59 #endif
60 #if HAVE_NETINET_IP_H
61 #include <netinet/ip.h>
62 #endif
63 #if HAVE_NETINET_IP_COMPAT_H
64 #include <netinet/ip_compat.h>
65 #endif
66 #if HAVE_NETINET_IP_FIL_H
67 #include <netinet/ip_fil.h>
68 #endif
69 ])