config.h.in 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. /****************************************************************************
  2. *
  3. * config.h - NRPE Configuration header file
  4. *
  5. * License: GPLv2
  6. * Copyright (c) 2006-2017 Nagios Enterprises
  7. * 1999-2006 Ethan Galstad (nagios@nagios.org)
  8. *
  9. * License Notice:
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. *
  25. ****************************************************************************/
  26. #ifndef _CONFIG_H
  27. #define _CONFIG_H
  28. #include <stdio.h>
  29. #include <stdlib.h>
  30. /* Default port for NRPE daemon */
  31. #undef DEFAULT_SERVER_PORT
  32. /* NRPE syslog facility */
  33. #undef NRPE_LOG_FACILITY
  34. /* Enable command-line arguments */
  35. #undef ENABLE_COMMAND_ARGUMENTS
  36. /* Enable bash command substitution */
  37. #undef ENABLE_BASH_COMMAND_SUBSTITUTION
  38. /* type to use in place of socklen_t if not defined */
  39. #undef socklen_t
  40. /* Define to 1 if you have the `getopt_long' function. */
  41. #undef HAVE_GETOPT_LONG
  42. /* Have the TCP wrappers library */
  43. #undef HAVE_LIBWRAP
  44. /* Define to 1 if you have the ANSI C header files. */
  45. #undef STDC_HEADERS
  46. /* Define to 1 if you have the `strdup' function. */
  47. #undef HAVE_STRDUP
  48. /* Define to 1 if you have the `strstr' function. */
  49. #undef HAVE_STRSTR
  50. /* Define to 1 if you have the `strtoul' function. */
  51. #undef HAVE_STRTOUL
  52. /* Define to 1 if you have the `strtok_r' function. */
  53. #undef HAVE_STRTOK_R
  54. /* Define to 1 if you have the `initgroups' function. */
  55. #undef HAVE_INITGROUPS
  56. /* Define to 1 if you have the `closesocket' function. */
  57. #undef HAVE_CLOSESOCKET
  58. /* Define to 1 if you have the `sigaction' function. */
  59. #undef HAVE_SIGACTION
  60. /* Define to 1 if you have the `scandir' function. */
  61. #undef HAVE_SCANDIR
  62. /* Set to 1 if you have rfc931_timeout */
  63. #undef HAVE_RFC931_TIMEOUT
  64. /* The size of `int', as computed by sizeof. */
  65. #undef SIZEOF_INT
  66. /* The size of `short', as computed by sizeof. */
  67. #undef SIZEOF_SHORT
  68. /* The size of `long', as computed by sizeof. */
  69. #undef SIZEOF_LONG
  70. /* Define to empty if `const' does not conform to ANSI C. */
  71. #undef const
  72. /* Set to 1 to use SSL DH */
  73. #undef USE_SSL_DH
  74. /* Define to auto configure SSL DH parameters */
  75. #undef AUTO_SSL_DH
  76. /* stupid stuff for u_int32_t */
  77. #undef U_INT32_T_IS_USHORT
  78. #undef U_INT32_T_IS_UINT
  79. #undef U_INT32_T_IS_ULONG
  80. #undef U_INT32_T_IS_UINT32_T
  81. #ifdef U_INT32_T_IS_USHORT
  82. typedef unsigned short u_int32_t;
  83. #endif
  84. #ifdef U_INT32_T_IS_ULONG
  85. typedef unsigned long u_int32_t;
  86. #endif
  87. #ifdef U_INT32_T_IS_UINT
  88. typedef unsigned int u_int32_t;
  89. #endif
  90. #ifdef U_INT32_T_IS_UINT32_t
  91. typedef uint32_t u_int32_t;
  92. #endif
  93. /* stupid stuff for int32_t */
  94. #undef INT32_T_IS_SHORT
  95. #undef INT32_T_IS_INT
  96. #undef INT32_T_IS_LONG
  97. #ifdef INT32_T_IS_USHORT
  98. typedef short int32_t;
  99. #endif
  100. #ifdef INT32_T_IS_ULONG
  101. typedef long int32_t;
  102. #endif
  103. #ifdef INT32_T_IS_UINT
  104. typedef int int32_t;
  105. #endif
  106. /***** ASPRINTF() AND FRIENDS *****/
  107. /* Whether vsnprintf() is available */
  108. #undef HAVE_VSNPRINTF
  109. /* Whether snprintf() is available */
  110. #undef HAVE_SNPRINTF
  111. /* Whether aprintf() is available */
  112. #undef HAVE_ASPRINTF
  113. /* Whether vaprintf() is available */
  114. #undef HAVE_VASPRINTF
  115. /* Define if system has C99 compatible vsnprintf */
  116. #undef HAVE_C99_VSNPRINTF
  117. /* Whether va_copy() is available */
  118. #undef HAVE_VA_COPY
  119. /* Whether __va_copy() is available */
  120. #undef HAVE___VA_COPY
  121. /* Socket Size Type */
  122. #undef SOCKET_SIZE_TYPE
  123. /* Define to the type of elements in the array set by `getgroups'. Usually
  124. this is either `int' or `gid_t'. */
  125. #undef GETGROUPS_T
  126. /* Define as the return type of signal handlers (`int' or `void'). */
  127. #undef RETSIGTYPE
  128. /* Define to 1 if the system has the type `struct sockaddr_storage'. */
  129. #undef HAVE_STRUCT_SOCKADDR_STORAGE
  130. /* Use seteuid() or setresuid() depending on the platform */
  131. #undef SETEUID
  132. /* Set to 1 if we are on Solaris 10 */
  133. #undef SOLARIS_10
  134. /* Define to 1 if you have the <getopt.h> header file. */
  135. #undef HAVE_GETOPT_H
  136. #ifdef HAVE_GETOPT_H
  137. #include <getopt.h>
  138. #endif
  139. /* Define to 1 if you have the <strings.h> header file. */
  140. #undef HAVE_STRINGS_H
  141. #ifdef HAVE_STRINGS_H
  142. #include <strings.h>
  143. #endif
  144. /* Define to 1 if you have the <string.h> header file. */
  145. #undef HAVE_STRING_H
  146. #ifdef HAVE_STRING_H
  147. #include <string.h>
  148. #endif
  149. /* Define to 1 if you have the <unistd.h> header file. */
  150. #undef HAVE_UNISTD_H
  151. #ifdef HAVE_UNISTD_H
  152. #include <unistd.h>
  153. #endif
  154. /* Define to 1 if you have the <signal.h> header file. */
  155. #undef HAVE_SIGNAL_H
  156. #ifdef HAVE_SIGNAL_H
  157. #include <signal.h>
  158. #endif
  159. /* Define to 1 if you have the <syslog.h> header file. */
  160. #undef HAVE_SYSLOG_H
  161. #ifdef HAVE_SYSLOG_H
  162. #include <syslog.h>
  163. #endif
  164. /* Define to 1 if you have the <sys/stat.h> header file. */
  165. #undef HAVE_SYS_STAT_H
  166. #ifdef HAVE_SYS_STAT_H
  167. #include <sys/stat.h>
  168. #endif
  169. /* Define to 1 if you have the <fcntl.h> header file. */
  170. #undef HAVE_FCNTL_H
  171. #ifdef HAVE_FCNTL_H
  172. #include <fcntl.h>
  173. #endif
  174. /* Define to 1 if you have the <sys/types.h> header file. */
  175. #undef HAVE_SYS_TYPES_H
  176. #ifdef HAVE_SYS_TYPES_H
  177. #include <sys/types.h>
  178. #endif
  179. /* Define to 1 if you have the <sys/wait.h> header file. */
  180. #undef HAVE_SYS_WAIT_H
  181. #ifdef HAVE_SYS_WAIT_H
  182. #include <sys/wait.h>
  183. #endif
  184. #ifndef WEXITSTATUS
  185. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  186. #endif
  187. #ifndef WIFEXITED
  188. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  189. #endif
  190. /* Define to 1 if you have the <errno.h> header file. */
  191. #undef HAVE_ERRNO_H
  192. #ifdef HAVE_ERRNO_H
  193. #include <errno.h>
  194. #endif
  195. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  196. #undef TIME_WITH_SYS_TIME
  197. /* Define to 1 if you have the <sys/time.h> header file. */
  198. #undef HAVE_SYS_TIME_H
  199. #if TIME_WITH_SYS_TIME
  200. # include <sys/time.h>
  201. # include <time.h>
  202. #else
  203. # if HAVE_SYS_TIME_H
  204. # include <sys/time.h>
  205. # else
  206. # include <time.h>
  207. # endif
  208. #endif
  209. /* Define to 1 if you have the <sys/socket.h> header file. */
  210. #undef HAVE_SYS_SOCKET_H
  211. #ifdef HAVE_SYS_SOCKET_H
  212. #include <sys/socket.h>
  213. #endif
  214. /* Define to 1 if you have the <socket.h> header file. */
  215. #undef HAVE_SOCKET_H
  216. #ifdef HAVE_SOCKET_H
  217. #include <socket.h>
  218. #endif
  219. /* Define to 1 if you have the <tcpd.h> header file. */
  220. #undef HAVE_TCPD_H
  221. #ifdef HAVE_TCPD_H
  222. #include <tcpd.h>
  223. #endif
  224. /* Define to 1 if you have the <netinet/in.h> header file. */
  225. #undef HAVE_NETINET_IN_H
  226. #ifdef HAVE_NETINET_IN_H
  227. #include <netinet/in.h>
  228. #endif
  229. /* Define to 1 if you have the <arpa/inet.h> header file. */
  230. #undef HAVE_ARPA_INET_H
  231. #ifdef HAVE_ARPA_INET_H
  232. #include <arpa/inet.h>
  233. #endif
  234. /* Define to 1 if you have the <netdb.h> header file. */
  235. #undef HAVE_NETDB_H
  236. #ifdef HAVE_NETDB_H
  237. #include <netdb.h>
  238. #endif
  239. /* Define to 1 if you have the <ctype.h> header file. */
  240. #undef HAVE_CTYPE_H
  241. #ifdef HAVE_CTYPE_H
  242. #include <ctype.h>
  243. #endif
  244. /* Define to 1 if you have the <pwd.h> header file. */
  245. #undef HAVE_PWD_H
  246. #ifdef HAVE_PWD_H
  247. #include <pwd.h>
  248. #endif
  249. /* Define to 1 if you have the <grp.h> header file. */
  250. #undef HAVE_GRP_H
  251. #ifdef HAVE_GRP_H
  252. #include <grp.h>
  253. #endif
  254. /* Define to 1 if you have the <dirent.h> header file. */
  255. #undef HAVE_DIRENT_H
  256. #ifdef HAVE_DIRENT_H
  257. #include <dirent.h>
  258. #endif
  259. /* Have SSL support */
  260. #undef HAVE_SSL
  261. #undef OPENSSL_V3
  262. /* Have the krb5.h header file */
  263. #undef HAVE_KRB5_H
  264. #ifdef HAVE_KRB5_H
  265. #include <krb5.h>
  266. #endif
  267. /* Define to 1 if you have the <inttypes.h> header file. */
  268. #undef HAVE_INTTYPES_H
  269. /* Define to 1 if you have the <stdint.h> header file. */
  270. #undef HAVE_STDINT_H
  271. #ifdef HAVE_INTTYPES_H
  272. #include <inttypes.h>
  273. #else
  274. #ifdef HAVE_STDINT_H
  275. #include <stdint.h>
  276. #endif
  277. #endif
  278. /* Define to 1 if you have the <paths.h> header file. */
  279. #undef HAVE_PATHS_H
  280. /* Define to 1 if you have the <sys/resource.h> header file. */
  281. #undef HAVE_SYS_RESOURCE_H
  282. #endif