config.h.in 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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. /* stupid stuff for u_int32_t */
  75. #undef U_INT32_T_IS_USHORT
  76. #undef U_INT32_T_IS_UINT
  77. #undef U_INT32_T_IS_ULONG
  78. #undef U_INT32_T_IS_UINT32_T
  79. #ifdef U_INT32_T_IS_USHORT
  80. typedef unsigned short u_int32_t;
  81. #endif
  82. #ifdef U_INT32_T_IS_ULONG
  83. typedef unsigned long u_int32_t;
  84. #endif
  85. #ifdef U_INT32_T_IS_UINT
  86. typedef unsigned int u_int32_t;
  87. #endif
  88. #ifdef U_INT32_T_IS_UINT32_t
  89. typedef uint32_t u_int32_t;
  90. #endif
  91. /* stupid stuff for int32_t */
  92. #undef INT32_T_IS_SHORT
  93. #undef INT32_T_IS_INT
  94. #undef INT32_T_IS_LONG
  95. #ifdef INT32_T_IS_USHORT
  96. typedef short int32_t;
  97. #endif
  98. #ifdef INT32_T_IS_ULONG
  99. typedef long int32_t;
  100. #endif
  101. #ifdef INT32_T_IS_UINT
  102. typedef int int32_t;
  103. #endif
  104. /***** ASPRINTF() AND FRIENDS *****/
  105. /* Whether vsnprintf() is available */
  106. #undef HAVE_VSNPRINTF
  107. /* Whether snprintf() is available */
  108. #undef HAVE_SNPRINTF
  109. /* Whether aprintf() is available */
  110. #undef HAVE_ASPRINTF
  111. /* Whether vaprintf() is available */
  112. #undef HAVE_VASPRINTF
  113. /* Define if system has C99 compatible vsnprintf */
  114. #undef HAVE_C99_VSNPRINTF
  115. /* Whether va_copy() is available */
  116. #undef HAVE_VA_COPY
  117. /* Whether __va_copy() is available */
  118. #undef HAVE___VA_COPY
  119. /* Socket Size Type */
  120. #undef SOCKET_SIZE_TYPE
  121. /* Define to the type of elements in the array set by `getgroups'. Usually
  122. this is either `int' or `gid_t'. */
  123. #undef GETGROUPS_T
  124. /* Define as the return type of signal handlers (`int' or `void'). */
  125. #undef RETSIGTYPE
  126. /* Define to 1 if the system has the type `struct sockaddr_storage'. */
  127. #undef HAVE_STRUCT_SOCKADDR_STORAGE
  128. /* Use seteuid() or setresuid() depending on the platform */
  129. #undef SETEUID
  130. /* Set to 1 if we are on Solaris 10 */
  131. #undef SOLARIS_10
  132. /* Define to 1 if you have the <getopt.h> header file. */
  133. #undef HAVE_GETOPT_H
  134. #ifdef HAVE_GETOPT_H
  135. #include <getopt.h>
  136. #endif
  137. /* Define to 1 if you have the <strings.h> header file. */
  138. #undef HAVE_STRINGS_H
  139. #ifdef HAVE_STRINGS_H
  140. #include <strings.h>
  141. #endif
  142. /* Define to 1 if you have the <string.h> header file. */
  143. #undef HAVE_STRING_H
  144. #ifdef HAVE_STRING_H
  145. #include <string.h>
  146. #endif
  147. /* Define to 1 if you have the <unistd.h> header file. */
  148. #undef HAVE_UNISTD_H
  149. #ifdef HAVE_UNISTD_H
  150. #include <unistd.h>
  151. #endif
  152. /* Define to 1 if you have the <signal.h> header file. */
  153. #undef HAVE_SIGNAL_H
  154. #ifdef HAVE_SIGNAL_H
  155. #include <signal.h>
  156. #endif
  157. /* Define to 1 if you have the <syslog.h> header file. */
  158. #undef HAVE_SYSLOG_H
  159. #ifdef HAVE_SYSLOG_H
  160. #include <syslog.h>
  161. #endif
  162. /* Define to 1 if you have the <sys/stat.h> header file. */
  163. #undef HAVE_SYS_STAT_H
  164. #ifdef HAVE_SYS_STAT_H
  165. #include <sys/stat.h>
  166. #endif
  167. /* Define to 1 if you have the <fcntl.h> header file. */
  168. #undef HAVE_FCNTL_H
  169. #ifdef HAVE_FCNTL_H
  170. #include <fcntl.h>
  171. #endif
  172. /* Define to 1 if you have the <sys/types.h> header file. */
  173. #undef HAVE_SYS_TYPES_H
  174. #ifdef HAVE_SYS_TYPES_H
  175. #include <sys/types.h>
  176. #endif
  177. /* Define to 1 if you have the <sys/wait.h> header file. */
  178. #undef HAVE_SYS_WAIT_H
  179. #ifdef HAVE_SYS_WAIT_H
  180. #include <sys/wait.h>
  181. #endif
  182. #ifndef WEXITSTATUS
  183. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  184. #endif
  185. #ifndef WIFEXITED
  186. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  187. #endif
  188. /* Define to 1 if you have the <errno.h> header file. */
  189. #undef HAVE_ERRNO_H
  190. #ifdef HAVE_ERRNO_H
  191. #include <errno.h>
  192. #endif
  193. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  194. #undef TIME_WITH_SYS_TIME
  195. /* Define to 1 if you have the <sys/time.h> header file. */
  196. #undef HAVE_SYS_TIME_H
  197. #if TIME_WITH_SYS_TIME
  198. # include <sys/time.h>
  199. # include <time.h>
  200. #else
  201. # if HAVE_SYS_TIME_H
  202. # include <sys/time.h>
  203. # else
  204. # include <time.h>
  205. # endif
  206. #endif
  207. /* Define to 1 if you have the <sys/socket.h> header file. */
  208. #undef HAVE_SYS_SOCKET_H
  209. #ifdef HAVE_SYS_SOCKET_H
  210. #include <sys/socket.h>
  211. #endif
  212. /* Define to 1 if you have the <socket.h> header file. */
  213. #undef HAVE_SOCKET_H
  214. #ifdef HAVE_SOCKET_H
  215. #include <socket.h>
  216. #endif
  217. /* Define to 1 if you have the <tcpd.h> header file. */
  218. #undef HAVE_TCPD_H
  219. #ifdef HAVE_TCPD_H
  220. #include <tcpd.h>
  221. #endif
  222. /* Define to 1 if you have the <netinet/in.h> header file. */
  223. #undef HAVE_NETINET_IN_H
  224. #ifdef HAVE_NETINET_IN_H
  225. #include <netinet/in.h>
  226. #endif
  227. /* Define to 1 if you have the <arpa/inet.h> header file. */
  228. #undef HAVE_ARPA_INET_H
  229. #ifdef HAVE_ARPA_INET_H
  230. #include <arpa/inet.h>
  231. #endif
  232. /* Define to 1 if you have the <netdb.h> header file. */
  233. #undef HAVE_NETDB_H
  234. #ifdef HAVE_NETDB_H
  235. #include <netdb.h>
  236. #endif
  237. /* Define to 1 if you have the <ctype.h> header file. */
  238. #undef HAVE_CTYPE_H
  239. #ifdef HAVE_CTYPE_H
  240. #include <ctype.h>
  241. #endif
  242. /* Define to 1 if you have the <pwd.h> header file. */
  243. #undef HAVE_PWD_H
  244. #ifdef HAVE_PWD_H
  245. #include <pwd.h>
  246. #endif
  247. /* Define to 1 if you have the <grp.h> header file. */
  248. #undef HAVE_GRP_H
  249. #ifdef HAVE_GRP_H
  250. #include <grp.h>
  251. #endif
  252. /* Define to 1 if you have the <dirent.h> header file. */
  253. #undef HAVE_DIRENT_H
  254. #ifdef HAVE_DIRENT_H
  255. #include <dirent.h>
  256. #endif
  257. /* Have SSL support */
  258. #undef HAVE_SSL
  259. /* Have the krb5.h header file */
  260. #undef HAVE_KRB5_H
  261. #ifdef HAVE_KRB5_H
  262. #include <krb5.h>
  263. #endif
  264. /* Define to 1 if you have the <inttypes.h> header file. */
  265. #undef HAVE_INTTYPES_H
  266. /* Define to 1 if you have the <stdint.h> header file. */
  267. #undef HAVE_STDINT_H
  268. #ifdef HAVE_INTTYPES_H
  269. #include <inttypes.h>
  270. #else
  271. #ifdef HAVE_STDINT_H
  272. #include <stdint.h>
  273. #endif
  274. #endif
  275. /* Define to 1 if you have the <paths.h> header file. */
  276. #undef HAVE_PATHS_H
  277. /* Define to 1 if you have the <sys/resource.h> header file. */
  278. #undef HAVE_SYS_RESOURCE_H
  279. #endif