/contrib/bind9/acconfig.h

https://bitbucket.org/freebsd/freebsd-head/ · C Header · 145 lines · 50 code · 35 blank · 60 comment · 2 complexity · bc0730c34907dce7bcdb682e8d7d2f39 MD5 · raw file

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