acconfig.h 3.5 KB
Newer Older
Bob Halley's avatar
Bob Halley committed
1
/*
Brian Wellington's avatar
Brian Wellington committed
2
 * Copyright (C) 1999-2001  Internet Software Consortium.
3
 *
Bob Halley's avatar
Bob Halley committed
4 5 6
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
7
 *
8 9 10 11 12 13 14 15
 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
 * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
 * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Bob Halley's avatar
Bob Halley committed
16 17
 */

Brian Wellington's avatar
Brian Wellington committed
18
/* $Id: acconfig.h,v 1.32 2001/01/09 21:39:01 bwelling Exp $ */
David Lawrence's avatar
David Lawrence committed
19

20 21 22 23 24 25
/***
 *** This file is not to be included by any public header files, because
 *** it does not get installed.
 ***/
@TOP@

26 27 28 29 30 31 32 33 34
/* define on DEC OSF to enable 4.4BSD style sa_len support */
#undef _SOCKADDR_LEN

/* define if your system needs pthread_init() before using pthreads */
#undef NEED_PTHREAD_INIT

/* define if your system has sigwait() */
#undef HAVE_SIGWAIT

35 36 37
/* define if sigwait() is the UnixWare flavor */
#undef HAVE_UNIXWARE_SIGWAIT

38 39
/* define on Solaris to get sigwait() to work using pthreads semantics */
#undef _POSIX_PTHREAD_SEMANTICS
Bob Halley's avatar
Bob Halley committed
40 41 42

/* define if LinuxThreads is in use */
#undef HAVE_LINUXTHREADS
Bob Halley's avatar
Bob Halley committed
43

Brian Wellington's avatar
Brian Wellington committed
44 45 46
/* define if sysconf() is available */
#undef HAVE_SYSCONF

Bob Halley's avatar
Bob Halley committed
47 48
/* define if catgets() is available */
#undef HAVE_CATGETS
49

50
/* define if you have the NET_RT_IFLIST sysctl variable. */
51
#undef HAVE_IFLIST_SYSCTL
52 53 54 55 56 57 58 59

/* define if you need to #define _XPG4_2 before including sys/socket.h */
#undef NEED_XPG4_2_BEFORE_SOCKET_H

/* define if you need to #define _XOPEN_SOURCE_ENTENDED before including
 * sys/socket.h
 */
#undef NEED_XSE_BEFORE_SOCKET_H
60 61 62

/* define if chroot() is available */
#undef HAVE_CHROOT
63

64 65 66 67 68 69
/* define if struct addrinfo exists */
#undef HAVE_ADDRINFO

/* define is getaddrinfo() exists */
#undef HAVE_GETADDRINFO

70 71 72 73 74
/* define if pthread_setconcurrency() should be called to tell the
 * OS how many threads we might want to run.
 */
#undef CALL_PTHREAD_SETCONCURRENCY

75 76 77
/* define if IPv6 is not disabled */
#undef WANT_IPV6

78 79 80
/* define if flockfile() is available */
#undef HAVE_FLOCKFILE

81 82 83
/* define if rlim_t is defined via sys/types.h or sys/resource.h */
#undef HAVE_RLIM_T

84 85 86 87 88 89
/* Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */
#undef SHUTUP_SPUTAUX
#ifdef SHUTUP_SPUTAUX
struct __sFILE;
extern __inline int __sputaux(int _c, struct __sFILE *_p);
#endif
90

David Lawrence's avatar
David Lawrence committed
91 92 93 94 95 96
/* Shut up warnings about missing sigwait prototype on BSD/OS 4.0* */
#undef SHUTUP_SIGWAIT
#ifdef SHUTUP_SIGWAIT
int sigwait(const unsigned int *set, int *sig);
#endif

97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
/* Shut up warnings from gcc -Wcast-qual on BSD/OS 4.1. */
#undef SHUTUP_STDARG_CAST
#if defined(SHUTUP_STDARG_CAST) && defined(__GNUC__)
#include <stdarg.h>		/* Grr.  Must be included *every time*. */
/*
 * The silly continuation line is to keep configure from
 * commenting out the #undef.
 */
#undef \
	va_start
#define	va_start(ap, last) \
	do { \
		union { const void *konst; long *var; } _u; \
		_u.konst = &(last); \
		ap = (va_list)(_u.var + __va_words(__typeof(last))); \
	} while (0)
#endif /* SHUTUP_STDARG_CAST && __GNUC__ */
114 115

/* define if the system has a random number generating device */
116
#undef PATH_RANDOMDEV
117 118 119

/* define if pthread_attr_getstacksize() is available */
#undef HAVE_PTHREAD_ATTR_GETSTACKSIZE