config.h.in 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. /************************************************************************
  2. *
  3. * NRPE Common Header File
  4. * Copyright (c) 1999-2007 Ethan Galstad (nagios@nagios.org)
  5. * Last Modified: 11-23-2007
  6. *
  7. * License:
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. ************************************************************************/
  23. #ifndef _CONFIG_H
  24. #define _CONFIG_H
  25. #include <stdio.h>
  26. #include <stdlib.h>
  27. #define DEFAULT_SERVER_PORT @nrpe_port@ /* default port to use */
  28. #define NRPE_LOG_FACILITY @log_facility@
  29. #undef ENABLE_COMMAND_ARGUMENTS
  30. #undef ENABLE_BASH_COMMAND_SUBSTITUTION
  31. #undef socklen_t
  32. #undef HAVE_GETOPT_LONG
  33. #undef HAVE_LIBWRAP
  34. #undef STDC_HEADERS
  35. #undef HAVE_STRDUP
  36. #undef HAVE_STRSTR
  37. #undef HAVE_STRTOUL
  38. #undef HAVE_STRTOK_R
  39. #undef HAVE_INITGROUPS
  40. #undef HAVE_CLOSESOCKET
  41. #undef HAVE_SIGACTION
  42. #undef HAVE_RFC931_TIMEOUT
  43. #undef SIZEOF_INT
  44. #undef SIZEOF_SHORT
  45. #undef SIZEOF_LONG
  46. /* #undef const */
  47. #undef USE_SSL_DH
  48. /* stupid stuff for u_int32_t */
  49. #undef U_INT32_T_IS_USHORT
  50. #undef U_INT32_T_IS_UINT
  51. #undef U_INT32_T_IS_ULONG
  52. #undef U_INT32_T_IS_UINT32_T
  53. #ifdef U_INT32_T_IS_USHORT
  54. typedef unsigned short u_int32_t;
  55. #endif
  56. #ifdef U_INT32_T_IS_ULONG
  57. typedef unsigned long u_int32_t;
  58. #endif
  59. #ifdef U_INT32_T_IS_UINT
  60. typedef unsigned int u_int32_t;
  61. #endif
  62. #ifdef U_INT32_T_IS_UINT32_t
  63. typedef uint32_t u_int32_t;
  64. #endif
  65. /* stupid stuff for int32_t */
  66. #undef INT32_T_IS_SHORT
  67. #undef INT32_T_IS_INT
  68. #undef INT32_T_IS_LONG
  69. #ifdef INT32_T_IS_USHORT
  70. typedef short int32_t;
  71. #endif
  72. #ifdef INT32_T_IS_ULONG
  73. typedef long int32_t;
  74. #endif
  75. #ifdef INT32_T_IS_UINT
  76. typedef int int32_t;
  77. #endif
  78. /***** ASPRINTF() AND FRIENDS *****/
  79. #undef HAVE_VSNPRINTF
  80. #undef HAVE_SNPRINTF
  81. #undef HAVE_ASPRINTF
  82. #undef HAVE_VASPRINTF
  83. #undef HAVE_C99_VSNPRINTF
  84. #undef HAVE_VA_COPY
  85. #undef HAVE___VA_COPY
  86. #define SOCKET_SIZE_TYPE ""
  87. #define GETGROUPS_T ""
  88. #define RETSIGTYPE ""
  89. #undef HAVE_STRUCT_SOCKADDR_STORAGE
  90. /* Use seteuid() or setresuid() depending on the platform */
  91. #undef SETEUID
  92. /* Is this a Solaris 10 machine? */
  93. #undef SOLARIS_10
  94. #undef HAVE_GETOPT_H
  95. #ifdef HAVE_GETOPT_H
  96. #include <getopt.h>
  97. #endif
  98. #undef HAVE_STRINGS_H
  99. #undef HAVE_STRING_H
  100. #ifdef HAVE_STRINGS_H
  101. #include <strings.h>
  102. #endif
  103. #ifdef HAVE_STRINGS_H
  104. #include <string.h>
  105. #endif
  106. #undef HAVE_UNISTD_H
  107. #ifdef HAVE_UNISTD_H
  108. #include <unistd.h>
  109. #endif
  110. #undef HAVE_SIGNAL_H
  111. #ifdef HAVE_SIGNAL_H
  112. #include <signal.h>
  113. #endif
  114. #undef HAVE_SYSLOG_H
  115. #ifdef HAVE_SYSLOG_H
  116. #include <syslog.h>
  117. #endif
  118. #undef HAVE_SYS_STAT_H
  119. #ifdef HAVE_SYS_STAT_H
  120. #include <sys/stat.h>
  121. #endif
  122. #undef HAVE_FCNTL_H
  123. #ifdef HAVE_FCNTL_H
  124. #include <fcntl.h>
  125. #endif
  126. #undef HAVE_SYS_TYPES_H
  127. #ifdef HAVE_SYS_TYPES_H
  128. #include <sys/types.h>
  129. #endif
  130. #undef HAVE_SYS_WAIT_H
  131. #ifdef HAVE_SYS_WAIT_H
  132. #include <sys/wait.h>
  133. #endif
  134. #ifndef WEXITSTATUS
  135. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  136. #endif
  137. #ifndef WIFEXITED
  138. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  139. #endif
  140. #undef HAVE_ERRNO_H
  141. #ifdef HAVE_ERRNO_H
  142. #include <errno.h>
  143. #endif
  144. /* needed for the time_t structures we use later... */
  145. #undef TIME_WITH_SYS_TIME
  146. #undef HAVE_SYS_TIME_H
  147. #if TIME_WITH_SYS_TIME
  148. # include <sys/time.h>
  149. # include <time.h>
  150. #else
  151. # if HAVE_SYS_TIME_H
  152. # include <sys/time.h>
  153. # else
  154. # include <time.h>
  155. # endif
  156. #endif
  157. #undef HAVE_SYS_SOCKET_H
  158. #ifdef HAVE_SYS_SOCKET_H
  159. #include <sys/socket.h>
  160. #endif
  161. /* Define to 'int' if <sys/socket.h> does not define */
  162. #undef socklen_t
  163. #undef HAVE_SOCKET_H
  164. #ifdef HAVE_SOCKET_H
  165. #include <socket.h>
  166. #endif
  167. #undef HAVE_TCPD_H
  168. #ifdef HAVE_TCPD_H
  169. #include <tcpd.h>
  170. #endif
  171. #undef HAVE_NETINET_IN_H
  172. #ifdef HAVE_NETINET_IN_H
  173. #include <netinet/in.h>
  174. #endif
  175. #undef HAVE_ARPA_INET_H
  176. #ifdef HAVE_ARPA_INET_H
  177. #include <arpa/inet.h>
  178. #endif
  179. #undef HAVE_NETDB_H
  180. #ifdef HAVE_NETDB_H
  181. #include <netdb.h>
  182. #endif
  183. #undef HAVE_CTYPE_H
  184. #ifdef HAVE_CTYPE_H
  185. #include <ctype.h>
  186. #endif
  187. #undef HAVE_PWD_H
  188. #ifdef HAVE_PWD_H
  189. #include <pwd.h>
  190. #endif
  191. #undef HAVE_GRP_H
  192. #ifdef HAVE_GRP_H
  193. #include <grp.h>
  194. #endif
  195. #undef HAVE_DIRENT_H
  196. #ifdef HAVE_DIRENT_H
  197. #include <dirent.h>
  198. #endif
  199. #undef HAVE_SSL
  200. #ifdef HAVE_SSL
  201. #include <rsa.h>
  202. #include <crypto.h>
  203. # ifdef USE_SSL_DH
  204. #include <dh.h>
  205. # endif
  206. #include <pem.h>
  207. #include <ssl.h>
  208. #include <err.h>
  209. #include <rand.h>
  210. #endif
  211. #undef HAVE_KRB5_H
  212. #ifdef HAVE_KRB5_H
  213. #include <krb5.h>
  214. #endif
  215. #undef HAVE_INTTYPES_H
  216. #undef HAVE_STDINT_H
  217. #ifdef HAVE_INTTYPES_H
  218. #include <inttypes.h>
  219. #else
  220. #ifdef HAVE_STDINT_H
  221. #include <stdint.h>
  222. #endif
  223. #endif
  224. #endif