1/*	$NetBSD: acconfig.h,v 1.4.6.2 2012/12/15 05:39:19 riz Exp $	*/
2
3/*
4 * Copyright (C) 2004, 2005, 2007, 2008, 2012  Internet Systems Consortium, Inc. ("ISC")
5 * Copyright (C) 1999-2003  Internet Software Consortium.
6 *
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 * PERFORMANCE OF THIS SOFTWARE.
18 */
19
20/* Id: acconfig.h,v 1.53 2008/12/01 23:47:44 tbox Exp  */
21
22/*! \file */
23
24/***
25 *** This file is not to be included by any public header files, because
26 *** it does not get installed.
27 ***/
28@TOP@
29
30/** define on DEC OSF to enable 4.4BSD style sa_len support */
31#undef _SOCKADDR_LEN
32
33/** define if your system needs pthread_init() before using pthreads */
34#undef NEED_PTHREAD_INIT
35
36/** define if your system has sigwait() */
37#undef HAVE_SIGWAIT
38
39/** define if sigwait() is the UnixWare flavor */
40#undef HAVE_UNIXWARE_SIGWAIT
41
42/** define on Solaris to get sigwait() to work using pthreads semantics */
43#undef _POSIX_PTHREAD_SEMANTICS
44
45/** define if LinuxThreads is in use */
46#undef HAVE_LINUXTHREADS
47
48/** define if sysconf() is available */
49#undef HAVE_SYSCONF
50
51/** define if sysctlbyname() is available */
52#undef HAVE_SYSCTLBYNAME
53
54/** define if catgets() is available */
55#undef HAVE_CATGETS
56
57/** define if getifaddrs() exists */
58#undef HAVE_GETIFADDRS
59
60/** define if you have the NET_RT_IFLIST sysctl variable and sys/sysctl.h */
61#undef HAVE_IFLIST_SYSCTL
62
63/** define if tzset() is available */
64#undef HAVE_TZSET
65
66/** define if struct addrinfo exists */
67#undef HAVE_ADDRINFO
68
69/** define if getaddrinfo() exists */
70#undef HAVE_GETADDRINFO
71
72/** define if gai_strerror() exists */
73#undef HAVE_GAISTRERROR
74
75/** define if arc4random() exists */
76#undef HAVE_ARC4RANDOM
77
78/**
79 * define if pthread_setconcurrency() should be called to tell the
80 * OS how many threads we might want to run.
81 */
82#undef CALL_PTHREAD_SETCONCURRENCY
83
84/** define if IPv6 is not disabled */
85#undef WANT_IPV6
86
87/** define if flockfile() is available */
88#undef HAVE_FLOCKFILE
89
90/** define if getc_unlocked() is available */
91#undef HAVE_GETCUNLOCKED
92
93/** Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */
94#undef SHUTUP_SPUTAUX
95#ifdef SHUTUP_SPUTAUX
96struct __sFILE;
97extern __inline int __sputaux(int _c, struct __sFILE *_p);
98#endif
99
100/** Shut up warnings about missing sigwait prototype on BSD/OS 4.0* */
101#undef SHUTUP_SIGWAIT
102#ifdef SHUTUP_SIGWAIT
103int sigwait(const unsigned int *set, int *sig);
104#endif
105
106/** Shut up warnings from gcc -Wcast-qual on BSD/OS 4.1. */
107#undef SHUTUP_STDARG_CAST
108#if defined(SHUTUP_STDARG_CAST) && defined(__GNUC__)
109#include <stdarg.h>		/** Grr.  Must be included *every time*. */
110/**
111 * The silly continuation line is to keep configure from
112 * commenting out the #undef.
113 */
114
115#undef \
116	va_start
117#define	va_start(ap, last) \
118	do { \
119		union { const void *konst; long *var; } _u; \
120		_u.konst = &(last); \
121		ap = (va_list)(_u.var + __va_words(__typeof(last))); \
122	} while (/*CONSTCOND*/0)
123#endif /** SHUTUP_STDARG_CAST && __GNUC__ */
124
125/** define if the system has a random number generating device */
126#undef PATH_RANDOMDEV
127
128/** define if pthread_attr_getstacksize() is available */
129#undef HAVE_PTHREAD_ATTR_GETSTACKSIZE
130
131/** define if pthread_attr_setstacksize() is available */
132#undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
133
134/** define if you have strerror in the C library. */
135#undef HAVE_STRERROR
136
137/** Define if you are running under Compaq TruCluster. */
138#undef HAVE_TRUCLUSTER
139
140/* Define if OpenSSL includes DSA support */
141#undef HAVE_OPENSSL_DSA
142
143/* Define if OpenSSL includes ECDSA support */
144#undef HAVE_OPENSSL_ECDSA
145
146/* Define to the length type used by the socket API (socklen_t, size_t, int). */
147#undef ISC_SOCKADDR_LEN_T
148
149/* Define if threads need PTHREAD_SCOPE_SYSTEM */
150#undef NEED_PTHREAD_SCOPE_SYSTEM
151