comparison include/dcc_config.h @ 0:c7f6b056b673

First import of vendor version
author Peter Gervai <grin@grin.hu>
date Tue, 10 Mar 2009 13:49:58 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c7f6b056b673
1 /* Distributed Checksum Clearinghouse
2 *
3 * autoconf configuration settings
4 * modified for WIN32
5 * Run ./configure on UNIX-like systems
6 *
7 * Copyright (c) 2008 by Rhyolite Software, LLC
8 *
9 * This agreement is not applicable to any entity which sells anti-spam
10 * solutions to others or provides an anti-spam solution as part of a
11 * security solution sold to other entities, or to a private network
12 * which employs the DCC or uses data provided by operation of the DCC
13 * but does not provide corresponding data to other users.
14 *
15 * Permission to use, copy, modify, and distribute this software without
16 * changes for any purpose with or without fee is hereby granted, provided
17 * that the above copyright notice and this permission notice appear in all
18 * copies and any distributed versions or copies are either unchanged
19 * or not called anything similar to "DCC" or "Distributed Checksum
20 * Clearinghouse".
21 *
22 * Parties not eligible to receive a license under this agreement can
23 * obtain a commercial license to use DCC by contacting Rhyolite Software
24 * at sales@rhyolite.com.
25 *
26 * A commercial license would be for Distributed Checksum and Reputation
27 * Clearinghouse software. That software includes additional features. This
28 * free license for Distributed ChecksumClearinghouse Software does not in any
29 * way grant permision to use Distributed Checksum and Reputation Clearinghouse
30 * software
31 *
32 * THE SOFTWARE IS PROVIDED "AS IS" AND RHYOLITE SOFTWARE, LLC DISCLAIMS ALL
33 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
34 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL RHYOLITE SOFTWARE, LLC
35 * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
36 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
37 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
38 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
39 * SOFTWARE.
40 *
41 * Rhyolite Software DCC 1.3.103-1.112 $Revision$
42 * @configure_input@
43 */
44
45 #ifndef DCC_CONFIG_H
46 #define DCC_CONFIG_H
47
48 #undef UNIX
49 #define DCC_WIN32 1
50
51 #define DCC_HOMEDIR "c:\\Program Files\\DCC"
52 #undef DCC_LIBEXECDIR
53 #define DCC_RUNDIR "/var/run/dcc"
54
55 /* use kludge file if asked */
56 #undef NEED_KLUDGE_H
57
58 /* deal with systems such as Solaris that do not have a __P() macro
59 * assume they understand prototypes */
60 #define HAVE_SYS_CDEFS_H 1
61 #if !defined(HAVE_SYS_CDEFS_H) && !defined(__P)
62 #define __P(protos) protos
63 #endif
64
65 /* some systems have uint32_t, others have u_int32_t, and some have both */
66 #define DCC_HAVE_U_INT32_T 1
67 /* and then there is u_*int64_t */
68 #define DCC_HAVE_U_INT64_T 1
69
70 /* 64-bit long int */
71 #undef HAVE_64BIT_LONG
72
73 /* 64-bit void* */
74 #undef HAVE_64BIT_PTR
75
76 /* ./configure does not check for pid_t on the grounds that only WIN32
77 * lacks it, and Windows is handled by the genbundle script */
78 #undef HAVE_PID_T
79
80 /* maximum number of DCC server rate-limiting blocks */
81 #undef RL_MIN_MAX
82
83 /* turn off dccifd AF_UNIX sockets on HP-UX */
84 #undef HP_UX_BAD_AF_UNIX
85
86 /* Use poll() instead of select() on Solaris and some other systems
87 * because socket() can yield file descripters larger than FD_SETSIZE. */
88 #undef HAVE_POLL
89 #undef USE_POLL
90
91 /* number of cached open per-user whitelist files */
92 #define NUM_CWFS 20
93
94 #define TIME_WITH_SYS_TIME 1
95 #undef HAVE_UTIME_H
96 #undef HAVE_FUTIMES
97
98 #undef HAVE_SETPGID
99
100 #undef HAVE_GCC_ATTRIBUTES
101 #undef HAVE_GCC_INLINE
102
103 /* fill holes in the target */
104 #undef HAVE_DAEMON
105 #undef HAVE_VSYSLOG
106 #define HAVE_HSTRERROR 1
107 #undef HAVE_INET_NTOP
108 #undef HAVE_GETHOSTID
109 #undef HAVE_LOCALTIME_R
110 #undef HAVE_GMTIME_R
111 #undef HAVE_TIMEGM
112 #undef HAVE_EACCESS
113 #undef HAVE_ALTZONE
114
115 #undef NEED_STRINGS_H
116 #undef HAVE_STRLCPY
117 #undef HAVE_STRLCAT
118
119 /* A way to get the size of physical memory
120 * Linux and Solaris have sysconf(_SC_PHYS_PAGES)
121 * BSD systems have sysctl(HW_PHYSMEM)
122 * HP-UX has pstat_getstatic() */
123 #undef HAVE_PHYSMEM_TOTAL
124 #define HAVE__SC_PHYS_PAGES 1
125 #undef HAVE_HW_PHYSMEM
126 #undef HAVE_PSTAT_GETSTATIC
127 #define GOT_PHYSMEM 1
128 /* use `dbclean -F` on Solaris to force less unneeded disk I/O */
129 #undef USE_DBCLEAN_F
130
131 /* can assume the hash table is junk after a reboot */
132 #define HAVE_BOOTTIME 1
133
134
135 /* files with 64-bit offsets */
136 #undef HAVE_BIG_FILES
137
138 /* 0 or minimum size of server database buffer or window */
139 #define DB_MIN_MBYTE 0
140 /* 0 or maximum size of server database buffer */
141 #define DB_MAX_MBYTE 0
142
143
144 /* 4.4BSD sockets */
145 #undef HAVE_SA_LEN
146 #undef HAVE_SOCKLEN_T
147 #undef HAVE_AF_LOCAL
148
149 #undef HAVE_INET_ATON
150
151 #define HAVE_GETIPNODEBYNAME 1
152 #define HAVE_GETIPNODEBYADDR 1
153 #define HAVE_FREEHOSTENT 1
154
155 #define HAVE_GETADDRINFO 1
156 #define HAVE_GETNAMEINFO 1
157 #define HAVE_FREEADDRINFO 1
158 #define HAVE_GAI_STRERROR 1
159
160 #define NO_IPV6 1
161 #undef NO_AF_INET6
162 #define CONF_S6_ADDR32 __u6_addr.__u6_addr32
163
164 /* use getifaddrs() to get list of interface addresses */
165 #define HAVE_GETIFADDRS 1
166 #undef USE_DCC_GETIFADDRS
167 /* Some systems have getifaddrs() but not freeifaddrs() */
168 #define HAVE_FREEIFADDRS 1
169
170 /* BIND resolver library */
171 #undef HAVE_RESOLV_H
172 #undef HAVE_ARPA_NAMESER_H
173 #undef HAVE__RES
174 #define HAVE_RES_INIT 1
175 #define HAVE_RES_QUERY 1
176 #define HAVE_DN_EXPAND 1
177
178 /* Solaris and WIN32 do not have paths.h */
179 #undef HAVE_PATHS_H
180
181 /* Some systems have their own MD5 libraries */
182 #undef HAVE_MD5
183
184 #undef HAVE_SIGINTERRUPT
185
186 #undef HAVE_PTHREADS
187
188 /* HP_UX has sys/pthread.h instead of pthread.h */
189 #define HAVE_PTHREAD_H 1
190
191 /* Windows systems lack UNIX permission bits */
192 #undef HAVE_PRIVATE_FILES
193
194 /* __progname defined by crt0 and so a reasonable default for syslog */
195 #undef HAVE___PROGNAME
196 /* slightly more portable way to get the program name */
197 #undef HAVE_GETPROGNAME
198
199 /* very old BSD/OS has only 2 parameters for msync()
200 * and newer versions ignore the third parameter */
201 #undef HAVE_OLD_MSYNC
202
203 #define HAVE_COHERENT_MMAP 1
204
205 /* use SOCKS */
206 #undef HAVE_RSENDTO
207
208 /* save only this much of mail messages in log files */
209 #define MAX_LOG_KBYTE 32
210
211
212 #endif /* DCC_CONFIG_H */