config.h.in 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. /************************************************************************
  2. *
  3. * NRPE Common Header File
  4. * Copyright (c) 1999-2003 Ethan Galstad (nagios@nagios.org)
  5. * Last Modified: 04-29-2003
  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. #include <stdio.h>
  24. #include <stdlib.h>
  25. #define DEFAULT_SERVER_PORT @nrpe_port@ /* default port to use */
  26. #undef ENABLE_COMMAND_ARGUMENTS
  27. #undef STDC_HEADERS
  28. #undef HAVE_STRDUP
  29. #undef HAVE_STRSTR
  30. #undef HAVE_STRTOUL
  31. #undef HAVE_INITGROUPS
  32. #undef SIZEOF_INT
  33. #undef SIZEOF_SHORT
  34. #undef SIZEOF_LONG
  35. /* stupid stuff for u_int32_t */
  36. #undef U_INT32_T_IS_USHORT
  37. #undef U_INT32_T_IS_UINT
  38. #undef U_INT32_T_IS_ULONG
  39. #ifdef U_INT32_T_IS_USHORT
  40. typedef unsigned short u_int32_t;
  41. typedef short int32_t;
  42. #endif
  43. #ifdef U_INT32_T_IS_ULONG
  44. typedef unsigned long u_int32_t;
  45. typedef long int32_t;
  46. #endif
  47. #ifdef U_INT32_T_IS_UINT
  48. typedef unsigned int u_int32_t;
  49. typedef int int32_t;
  50. #endif
  51. #define SOCKET_SIZE_TYPE ""
  52. #define GETGROUPS_T ""
  53. #define RETSIGTYPE ""
  54. #undef HAVE_GETOPT_H
  55. #ifdef HAVE_GETOPT_H
  56. #include <getopt.h>
  57. #endif
  58. #undef HAVE_STRINGS_H
  59. #undef HAVE_STRING_H
  60. #ifdef HAVE_STRINGS_H
  61. #include <strings.h>
  62. #endif
  63. #ifdef HAVE_STRINGS_H
  64. #include <string.h>
  65. #endif
  66. #undef HAVE_UNISTD_H
  67. #ifdef HAVE_UNISTD_H
  68. #include <unistd.h>
  69. #endif
  70. #undef HAVE_SIGNAL_H
  71. #ifdef HAVE_SIGNAL_H
  72. #include <signal.h>
  73. #endif
  74. #undef HAVE_SYSLOG_H
  75. #ifdef HAVE_SYSLOG_H
  76. #include <syslog.h>
  77. #endif
  78. #undef HAVE_SYS_STAT_H
  79. #ifdef HAVE_SYS_STAT_H
  80. #include <sys/stat.h>
  81. #endif
  82. #undef HAVE_FCNTL_H
  83. #ifdef HAVE_FCNTL_H
  84. #include <fcntl.h>
  85. #endif
  86. #undef HAVE_SYS_TYPES_H
  87. #ifdef HAVE_SYS_TYPES_H
  88. #include <sys/types.h>
  89. #endif
  90. #undef HAVE_SYS_WAIT_H
  91. #ifdef HAVE_SYS_WAIT_H
  92. #include <sys/wait.h>
  93. #endif
  94. #ifndef WEXITSTATUS
  95. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  96. #endif
  97. #ifndef WIFEXITED
  98. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  99. #endif
  100. #undef HAVE_ERRNO_H
  101. #ifdef HAVE_ERRNO_H
  102. #include <errno.h>
  103. #endif
  104. /* needed for the time_t structures we use later... */
  105. #undef TIME_WITH_SYS_TIME
  106. #undef HAVE_SYS_TIME_H
  107. #if TIME_WITH_SYS_TIME
  108. # include <sys/time.h>
  109. # include <time.h>
  110. #else
  111. # if HAVE_SYS_TIME_H
  112. # include <sys/time.h>
  113. # else
  114. # include <time.h>
  115. # endif
  116. #endif
  117. #undef HAVE_SYS_SOCKET_H
  118. #ifdef HAVE_SYS_SOCKET_H
  119. #include <sys/socket.h>
  120. #endif
  121. #undef HAVE_SOCKET
  122. #ifdef HAVE_SOCKET_H
  123. #include <socket.h>
  124. #endif
  125. #undef HAVE_NETINET_IN_H
  126. #ifdef HAVE_NETINET_IN_H
  127. #include <netinet/in.h>
  128. #endif
  129. #undef HAVE_ARPA_INET_H
  130. #ifdef HAVE_ARPA_INET_H
  131. #include <arpa/inet.h>
  132. #endif
  133. #undef HAVE_NETDB_H
  134. #ifdef HAVE_NETDB_H
  135. #include <netdb.h>
  136. #endif
  137. #undef HAVE_CTYPE_H
  138. #ifdef HAVE_CTYPE_H
  139. #include <ctype.h>
  140. #endif
  141. #undef HAVE_PWD_H
  142. #ifdef HAVE_PWD_H
  143. #include <pwd.h>
  144. #endif
  145. #undef HAVE_GRP_H
  146. #ifdef HAVE_GRP_H
  147. #include <grp.h>
  148. #endif
  149. #undef HAVE_DIRENT_H
  150. #ifdef HAVE_DIRENT_H
  151. #include <dirent.h>
  152. #endif
  153. #undef HAVE_SSL
  154. #ifdef HAVE_SSL
  155. #include <rsa.h>
  156. #include <crypto.h>
  157. #include <dh.h>
  158. #include <pem.h>
  159. #include <ssl.h>
  160. #include <err.h>
  161. #include <rand.h>
  162. #endif
  163. #undef HAVE_KRB5_H
  164. #ifdef HAVE_KRB5_H
  165. #include <krb5.h>
  166. #endif