nagios-nrpe/include/config.h.in

355 lines
8.0 KiB
C
Raw Normal View History

2017-11-02 09:55:48 +01:00
/****************************************************************************
2016-06-24 12:21:25 +02:00
*
2017-11-02 09:55:48 +01:00
* config.h - NRPE Configuration header file
2016-06-24 12:21:25 +02:00
*
2017-11-02 09:55:48 +01:00
* License: GPLv2
* Copyright (c) 2006-2017 Nagios Enterprises
* 1999-2006 Ethan Galstad (nagios@nagios.org)
*
* License Notice:
2016-06-24 12:21:25 +02:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2017-11-02 09:55:48 +01:00
*
****************************************************************************/
2016-06-24 12:21:25 +02:00
#ifndef _CONFIG_H
#define _CONFIG_H
#include <stdio.h>
#include <stdlib.h>
2017-05-13 13:05:54 +02:00
/* Default port for NRPE daemon */
#undef DEFAULT_SERVER_PORT
2016-06-24 12:21:25 +02:00
2017-05-13 13:05:54 +02:00
/* NRPE syslog facility */
#undef NRPE_LOG_FACILITY
2016-06-24 12:21:25 +02:00
2017-05-13 13:05:54 +02:00
/* Enable command-line arguments */
2016-06-24 12:21:25 +02:00
#undef ENABLE_COMMAND_ARGUMENTS
2017-05-13 13:05:54 +02:00
/* Enable bash command substitution */
2016-06-24 12:21:25 +02:00
#undef ENABLE_BASH_COMMAND_SUBSTITUTION
2017-05-13 13:05:54 +02:00
/* type to use in place of socklen_t if not defined */
2016-06-24 12:21:25 +02:00
#undef socklen_t
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the `getopt_long' function. */
2016-06-24 12:21:25 +02:00
#undef HAVE_GETOPT_LONG
2017-05-13 13:05:54 +02:00
/* Have the TCP wrappers library */
2016-06-24 12:21:25 +02:00
#undef HAVE_LIBWRAP
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the ANSI C header files. */
2016-06-24 12:21:25 +02:00
#undef STDC_HEADERS
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the `strdup' function. */
2016-06-24 12:21:25 +02:00
#undef HAVE_STRDUP
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the `strstr' function. */
2016-06-24 12:21:25 +02:00
#undef HAVE_STRSTR
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the `strtoul' function. */
2017-05-04 11:53:58 +02:00
#undef HAVE_STRTOUL
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the `strtok_r' function. */
2017-05-04 11:53:58 +02:00
#undef HAVE_STRTOK_R
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the `initgroups' function. */
2016-06-24 12:21:25 +02:00
#undef HAVE_INITGROUPS
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the `closesocket' function. */
2016-06-24 12:21:25 +02:00
#undef HAVE_CLOSESOCKET
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the `sigaction' function. */
2017-05-04 11:53:58 +02:00
#undef HAVE_SIGACTION
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the `scandir' function. */
#undef HAVE_SCANDIR
/* Set to 1 if you have rfc931_timeout */
2017-05-04 11:53:58 +02:00
#undef HAVE_RFC931_TIMEOUT
2016-06-24 12:21:25 +02:00
2017-05-13 13:05:54 +02:00
/* The size of `int', as computed by sizeof. */
2016-06-24 12:21:25 +02:00
#undef SIZEOF_INT
2017-05-13 13:05:54 +02:00
/* The size of `short', as computed by sizeof. */
2016-06-24 12:21:25 +02:00
#undef SIZEOF_SHORT
2017-05-13 13:05:54 +02:00
/* The size of `long', as computed by sizeof. */
2016-06-24 12:21:25 +02:00
#undef SIZEOF_LONG
2017-05-13 13:05:54 +02:00
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Set to 1 to use SSL DH */
2017-05-04 11:53:58 +02:00
#undef USE_SSL_DH
2016-06-24 12:21:25 +02:00
/* stupid stuff for u_int32_t */
#undef U_INT32_T_IS_USHORT
#undef U_INT32_T_IS_UINT
#undef U_INT32_T_IS_ULONG
#undef U_INT32_T_IS_UINT32_T
#ifdef U_INT32_T_IS_USHORT
typedef unsigned short u_int32_t;
#endif
#ifdef U_INT32_T_IS_ULONG
typedef unsigned long u_int32_t;
#endif
#ifdef U_INT32_T_IS_UINT
typedef unsigned int u_int32_t;
#endif
#ifdef U_INT32_T_IS_UINT32_t
typedef uint32_t u_int32_t;
#endif
/* stupid stuff for int32_t */
#undef INT32_T_IS_SHORT
#undef INT32_T_IS_INT
#undef INT32_T_IS_LONG
#ifdef INT32_T_IS_USHORT
typedef short int32_t;
#endif
#ifdef INT32_T_IS_ULONG
typedef long int32_t;
#endif
#ifdef INT32_T_IS_UINT
typedef int int32_t;
#endif
/***** ASPRINTF() AND FRIENDS *****/
2017-05-13 13:05:54 +02:00
/* Whether vsnprintf() is available */
2016-06-24 12:21:25 +02:00
#undef HAVE_VSNPRINTF
2017-05-13 13:05:54 +02:00
/* Whether snprintf() is available */
2016-06-24 12:21:25 +02:00
#undef HAVE_SNPRINTF
2017-05-13 13:05:54 +02:00
/* Whether aprintf() is available */
2016-06-24 12:21:25 +02:00
#undef HAVE_ASPRINTF
2017-05-13 13:05:54 +02:00
/* Whether vaprintf() is available */
2016-06-24 12:21:25 +02:00
#undef HAVE_VASPRINTF
2017-05-13 13:05:54 +02:00
/* Define if system has C99 compatible vsnprintf */
2016-06-24 12:21:25 +02:00
#undef HAVE_C99_VSNPRINTF
2017-05-13 13:05:54 +02:00
/* Whether va_copy() is available */
2016-06-24 12:21:25 +02:00
#undef HAVE_VA_COPY
2017-05-13 13:05:54 +02:00
/* Whether __va_copy() is available */
2016-06-24 12:21:25 +02:00
#undef HAVE___VA_COPY
2017-05-13 13:05:54 +02:00
/* Socket Size Type */
#undef SOCKET_SIZE_TYPE
/* Define to the type of elements in the array set by `getgroups'. Usually
this is either `int' or `gid_t'. */
#undef GETGROUPS_T
/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE
/* Define to 1 if the system has the type `struct sockaddr_storage'. */
2017-05-04 11:53:58 +02:00
#undef HAVE_STRUCT_SOCKADDR_STORAGE
/* Use seteuid() or setresuid() depending on the platform */
#undef SETEUID
2017-05-13 13:05:54 +02:00
/* Set to 1 if we are on Solaris 10 */
2017-05-04 11:53:58 +02:00
#undef SOLARIS_10
2016-06-24 12:21:25 +02:00
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <getopt.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_GETOPT_H
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <strings.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_STRINGS_H
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
#ifdef HAVE_STRING_H
2016-06-24 12:21:25 +02:00
#include <string.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <unistd.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <signal.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_SIGNAL_H
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <syslog.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_SYSLOG_H
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <sys/stat.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_SYS_STAT_H
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <fcntl.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_FCNTL_H
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <sys/types.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_SYS_TYPES_H
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <sys/wait.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_SYS_WAIT_H
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif
#ifndef WIFEXITED
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <errno.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_ERRNO_H
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
2016-06-24 12:21:25 +02:00
#undef TIME_WITH_SYS_TIME
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <sys/time.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_SYS_TIME_H
2017-05-13 13:05:54 +02:00
2016-06-24 12:21:25 +02:00
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <sys/socket.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_SYS_SOCKET_H
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <socket.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_SOCKET_H
#ifdef HAVE_SOCKET_H
#include <socket.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <tcpd.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_TCPD_H
#ifdef HAVE_TCPD_H
#include <tcpd.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <netinet/in.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_NETINET_IN_H
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <arpa/inet.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_ARPA_INET_H
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <netdb.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_NETDB_H
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <ctype.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_CTYPE_H
#ifdef HAVE_CTYPE_H
#include <ctype.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <pwd.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_PWD_H
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
2017-05-04 11:53:58 +02:00
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <grp.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_GRP_H
#ifdef HAVE_GRP_H
#include <grp.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <dirent.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_DIRENT_H
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
2017-05-13 13:05:54 +02:00
/* Have SSL support */
2016-06-24 12:21:25 +02:00
#undef HAVE_SSL
2017-05-13 13:05:54 +02:00
/* Have the krb5.h header file */
2016-06-24 12:21:25 +02:00
#undef HAVE_KRB5_H
#ifdef HAVE_KRB5_H
#include <krb5.h>
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <inttypes.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_INTTYPES_H
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <stdint.h> header file. */
2016-06-24 12:21:25 +02:00
#undef HAVE_STDINT_H
2017-05-13 13:05:54 +02:00
2016-06-24 12:21:25 +02:00
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#else
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#endif
2017-05-13 13:05:54 +02:00
/* Define to 1 if you have the <paths.h> header file. */
#undef HAVE_PATHS_H
/* Define to 1 if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
2016-06-24 12:21:25 +02:00
#endif