Don't break the line before .An.
[dragonfly.git] / lib / libevent / config.h
1 /* $DragonFly: src/lib/libevent/config.h,v 1.1 2008/01/30 12:57:50 hasso Exp $ */
2
3 /* config.h.  Generated from config.h.in by configure.  */
4 /* config.h.in.  Generated from configure.in by autoheader.  */
5 /* Define if kqueue works correctly with pipes */
6 #define HAVE_WORKING_KQUEUE 1
7
8 /* Define to `unsigned long long' if <sys/types.h> doesn't define.  */
9 /* #undef u_int64_t */
10
11 /* Define to `unsigned int' if <sys/types.h> doesn't define.  */
12 /* #undef u_int32_t */
13
14 /* Define to `unsigned short' if <sys/types.h> doesn't define.  */
15 /* #undef u_int16_t */
16
17 /* Define to `unsigned char' if <sys/types.h> doesn't define.  */
18 /* #undef u_int8_t */
19
20 /* Define if timeradd is defined in <sys/time.h> */
21 #define HAVE_TIMERADD 1
22 #ifndef HAVE_TIMERADD
23 /* #undef timersub */
24 #define timeradd(tvp, uvp, vvp)                                         \
25         do {                                                            \
26                 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec;          \
27                 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec;       \
28                 if ((vvp)->tv_usec >= 1000000) {                        \
29                         (vvp)->tv_sec++;                                \
30                         (vvp)->tv_usec -= 1000000;                      \
31                 }                                                       \
32         } while (0)
33 #define timersub(tvp, uvp, vvp)                                         \
34         do {                                                            \
35                 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec;          \
36                 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec;       \
37                 if ((vvp)->tv_usec < 0) {                               \
38                         (vvp)->tv_sec--;                                \
39                         (vvp)->tv_usec += 1000000;                      \
40                 }                                                       \
41         } while (0)
42 #endif /* !HAVE_TIMERADD */
43
44 #define HAVE_TIMERCLEAR 1
45 #ifndef HAVE_TIMERCLEAR
46 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
47 #endif
48
49 #define HAVE_TIMERCMP 1
50 #ifndef HAVE_TIMERCMP
51 /* #undef timercmp */
52 #define timercmp(tvp, uvp, cmp)                                         \
53         (((tvp)->tv_sec == (uvp)->tv_sec) ?                             \
54          ((tvp)->tv_usec cmp (uvp)->tv_usec) :                          \
55          ((tvp)->tv_sec cmp (uvp)->tv_sec))
56 #endif
57
58 #define HAVE_TIMERISSET 1
59 #ifndef HAVE_TIMERISSET
60 /* #undef timerisset */
61 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
62 #endif
63
64 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
65 #define HAVE_TAILQFOREACH 1
66 #ifndef HAVE_TAILQFOREACH
67 #define TAILQ_FIRST(head)               ((head)->tqh_first)
68 #define TAILQ_END(head)                 NULL
69 #define TAILQ_NEXT(elm, field)          ((elm)->field.tqe_next)
70 #define TAILQ_FOREACH(var, head, field)                                 \
71         for((var) = TAILQ_FIRST(head);                                  \
72             (var) != TAILQ_END(head);                                   \
73             (var) = TAILQ_NEXT(var, field))
74 #define TAILQ_INSERT_BEFORE(listelm, elm, field) do {                   \
75         (elm)->field.tqe_prev = (listelm)->field.tqe_prev;              \
76         (elm)->field.tqe_next = (listelm);                              \
77         *(listelm)->field.tqe_prev = (elm);                             \
78         (listelm)->field.tqe_prev = &(elm)->field.tqe_next;             \
79 } while (0)
80 #endif /* TAILQ_FOREACH */
81
82 /* Define to __FUNCTION__ or __file__ if your compiler doesn't have __func__ */
83 /* #undef __func__ */
84
85 /* Define if clock_gettime is available in libc */
86 #define DNS_USE_CPU_CLOCK_FOR_ID 1
87
88 /* Define is no secure id variant is available */
89 /* #undef DNS_USE_GETTIMEOFDAY_FOR_ID */
90
91 /* Define to 1 if you have the `clock_gettime' function. */
92 #define HAVE_CLOCK_GETTIME 1
93
94 /* Define if /dev/poll is available */
95 /* #undef HAVE_DEVPOLL */
96
97 /* Define to 1 if you have the <dlfcn.h> header file. */
98 #define HAVE_DLFCN_H 1
99
100 /* Define if your system supports the epoll system calls */
101 /* #undef HAVE_EPOLL */
102
103 /* Define to 1 if you have the `epoll_ctl' function. */
104 /* #undef HAVE_EPOLL_CTL */
105
106 /* Define if your system supports event ports */
107 /* #undef HAVE_EVENT_PORTS */
108
109 /* Define to 1 if you have the `fcntl' function. */
110 #define HAVE_FCNTL 1
111
112 /* Define to 1 if you have the <fcntl.h> header file. */
113 #define HAVE_FCNTL_H 1
114
115 /* Define to 1 if you have the `getaddrinfo' function. */
116 #define HAVE_GETADDRINFO 1
117
118 /* Define to 1 if you have the `getnameinfo' function. */
119 #define HAVE_GETNAMEINFO 1
120
121 /* Define to 1 if you have the `gettimeofday' function. */
122 #define HAVE_GETTIMEOFDAY 1
123
124 /* Define to 1 if you have the `inet_ntop' function. */
125 #define HAVE_INET_NTOP 1
126
127 /* Define to 1 if you have the <inttypes.h> header file. */
128 #define HAVE_INTTYPES_H 1
129
130 /* Define to 1 if you have the `kqueue' function. */
131 #define HAVE_KQUEUE 1
132
133 /* Define to 1 if you have the `nsl' library (-lnsl). */
134 /* #undef HAVE_LIBNSL */
135
136 /* Define to 1 if you have the `resolv' library (-lresolv). */
137 /* #undef HAVE_LIBRESOLV */
138
139 /* Define to 1 if you have the `rt' library (-lrt). */
140 /* #undef HAVE_LIBRT */
141
142 /* Define to 1 if you have the `socket' library (-lsocket). */
143 /* #undef HAVE_LIBSOCKET */
144
145 /* Define to 1 if you have the <memory.h> header file. */
146 #define HAVE_MEMORY_H 1
147
148 /* Define to 1 if you have the <netinet/in6.h> header file. */
149 /* #undef HAVE_NETINET_IN6_H */
150
151 /* Define to 1 if you have the `poll' function. */
152 #define HAVE_POLL 1
153
154 /* Define to 1 if you have the <poll.h> header file. */
155 #define HAVE_POLL_H 1
156
157 /* Define to 1 if you have the `port_create' function. */
158 /* #undef HAVE_PORT_CREATE */
159
160 /* Define to 1 if you have the <port.h> header file. */
161 /* #undef HAVE_PORT_H */
162
163 /* Define if your system supports POSIX realtime signals */
164 /* #undef HAVE_RTSIG */
165
166 /* Define to 1 if you have the `select' function. */
167 #define HAVE_SELECT 1
168
169 /* Define if F_SETFD is defined in <fcntl.h> */
170 #define HAVE_SETFD 1
171
172 /* Define to 1 if you have the <signal.h> header file. */
173 #define HAVE_SIGNAL_H 1
174
175 /* Define to 1 if you have the `sigtimedwait' function. */
176 /* #undef HAVE_SIGTIMEDWAIT */
177
178 /* Define to 1 if you have the <stdarg.h> header file. */
179 #define HAVE_STDARG_H 1
180
181 /* Define to 1 if you have the <stdint.h> header file. */
182 #define HAVE_STDINT_H 1
183
184 /* Define to 1 if you have the <stdlib.h> header file. */
185 #define HAVE_STDLIB_H 1
186
187 /* Define to 1 if you have the <strings.h> header file. */
188 #define HAVE_STRINGS_H 1
189
190 /* Define to 1 if you have the <string.h> header file. */
191 #define HAVE_STRING_H 1
192
193 /* Define to 1 if you have the `strlcpy' function. */
194 #define HAVE_STRLCPY 1
195
196 /* Define to 1 if you have the `strsep' function. */
197 #define HAVE_STRSEP 1
198
199 /* Define to 1 if you have the `strtok_r' function. */
200 #define HAVE_STRTOK_R 1
201
202 /* Define to 1 if the system has the type `struct in6_addr'. */
203 #define HAVE_STRUCT_IN6_ADDR 1
204
205 /* Define to 1 if you have the <sys/devpoll.h> header file. */
206 /* #undef HAVE_SYS_DEVPOLL_H */
207
208 /* Define to 1 if you have the <sys/epoll.h> header file. */
209 /* #undef HAVE_SYS_EPOLL_H */
210
211 /* Define to 1 if you have the <sys/event.h> header file. */
212 #define HAVE_SYS_EVENT_H 1
213
214 /* Define to 1 if you have the <sys/ioctl.h> header file. */
215 #define HAVE_SYS_IOCTL_H 1
216
217 /* Define to 1 if you have the <sys/queue.h> header file. */
218 #define HAVE_SYS_QUEUE_H 1
219
220 /* Define to 1 if you have the <sys/select.h> header file. */
221 #define HAVE_SYS_SELECT_H 1
222
223 /* Define to 1 if you have the <sys/stat.h> header file. */
224 #define HAVE_SYS_STAT_H 1
225
226 /* Define to 1 if you have the <sys/time.h> header file. */
227 #define HAVE_SYS_TIME_H 1
228
229 /* Define to 1 if you have the <sys/types.h> header file. */
230 #define HAVE_SYS_TYPES_H 1
231
232 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
233 #define HAVE_TAILQFOREACH 1
234
235 /* Define if timeradd is defined in <sys/time.h> */
236 #define HAVE_TIMERADD 1
237
238 /* Define if timerclear is defined in <sys/time.h> */
239 #define HAVE_TIMERCLEAR 1
240
241 /* Define if timercmp is defined in <sys/time.h> */
242 #define HAVE_TIMERCMP 1
243
244 /* Define if timerisset is defined in <sys/time.h> */
245 #define HAVE_TIMERISSET 1
246
247 /* Define to 1 if you have the <unistd.h> header file. */
248 #define HAVE_UNISTD_H 1
249
250 /* Define to 1 if you have the `vasprintf' function. */
251 #define HAVE_VASPRINTF 1
252
253 /* Define if kqueue works correctly with pipes */
254 #define HAVE_WORKING_KQUEUE 1
255
256 /* Define if realtime signals work on pipes */
257 /* #undef HAVE_WORKING_RTSIG */
258
259 /* Name of package */
260 #define PACKAGE "libevent"
261
262 /* Define to the address where bug reports for this package should be sent. */
263 #define PACKAGE_BUGREPORT ""
264
265 /* Define to the full name of this package. */
266 #define PACKAGE_NAME ""
267
268 /* Define to the full name and version of this package. */
269 #define PACKAGE_STRING ""
270
271 /* Define to the one symbol short name of this package. */
272 #define PACKAGE_TARNAME ""
273
274 /* Define to the version of this package. */
275 #define PACKAGE_VERSION ""
276
277 /* Define to 1 if you have the ANSI C header files. */
278 #define STDC_HEADERS 1
279
280 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
281 #define TIME_WITH_SYS_TIME 1
282
283 /* Version number of package */
284 #define VERSION "1.3e"
285
286 /* Define to appropriate substitue if compiler doesnt have __func__ */
287 /* #undef __func__ */
288
289 /* Define to empty if `const' does not conform to ANSI C. */
290 /* #undef const */
291
292 /* Define to `__inline__' or `__inline' if that's what the C compiler
293    calls it, or to nothing if 'inline' is not supported under any name.  */
294 #ifndef __cplusplus
295 /* #undef inline */
296 #endif
297
298 /* Define to `int' if <sys/types.h> does not define. */
299 /* #undef pid_t */
300
301 /* Define to `unsigned int' if <sys/types.h> does not define. */
302 /* #undef size_t */
303
304 /* Define to unsigned int if you dont have it */
305 /* #undef socklen_t */
306
307 /* Define to `unsigned short' if <sys/types.h> does not define. */
308 /* #undef uint16_t */
309
310 /* Define to `unsigned int' if <sys/types.h> does not define. */
311 /* #undef uint32_t */
312
313 /* Define to `unsigned long long' if <sys/types.h> does not define. */
314 /* #undef uint64_t */
315
316 /* Define to `unsigned char' if <sys/types.h> does not define. */
317 /* #undef uint8_t */