1 /* include/config.h. Generated by configure. */
2 /************************************************************************
4 * Nagios Config Header File
5 * Written By: Ethan Galstad (nagios@nagios.org)
6 * Last Modified: 11-10-2007
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 ************************************************************************/
23 /***** NAGIOS STUFF *****/
25 #define DEFAULT_NAGIOS_USER "nagios"
26 #define DEFAULT_NAGIOS_GROUP "nagios"
28 /* stop gcc from bitching about implicit asprintf declarations */
31 /* Event broker integration */
32 #define USE_EVENT_BROKER 1
34 /* Embed a PERL interpreter into Nagios with optional cache for compiled code (contributed by Stephen Davies) */
35 /* #undef EMBEDDEDPERL */
36 /* #undef THREADEDPERL */
37 /* 0 = cache, 1 = do not cache */
40 /* commands used by CGIs */
41 #define TRACEROUTE_COMMAND "/bin/traceroute"
42 /* #undef PING_COMMAND */
43 /* #undef PING_PACKETS_FIRST */
45 /* Debugging options */
46 /* function entry and exit */
48 /* general info messages */
50 /* warning messages */
52 /* service and host checks, other events */
54 /* service and host notifications */
56 /* SQL queries (defunct) */
59 /* I/O implementations */
60 #define USE_XSDDEFAULT 1
61 #define USE_XCDDEFAULT 1
62 #define USE_XRDDEFAULT 1
63 #define USE_XODTEMPLATE 1
64 #define USE_XPDDEFAULT 1
65 #define USE_XDDDEFAULT 1
69 /***** FUNCTION DEFINITIONS *****/
72 #define HAVE_UNSETENV 1
73 /* #undef HAVE_SOCKET */
76 #define HAVE_STRTOUL 1
77 #define HAVE_INITGROUPS 1
78 /* #undef HAVE_GETLOADAVG */
79 /* #undef HAVE_GLIB */
83 /***** ASPRINTF() AND FRIENDS *****/
85 /* #undef HAVE_VSNPRINTF */
86 /* #undef HAVE_SNPRINTF */
87 /* #undef HAVE_ASPRINTF */
88 /* #undef HAVE_VASPRINTF */
89 #define HAVE_C99_VSNPRINTF 1
90 #define HAVE_VA_COPY 1
91 /* #undef HAVE___VA_COPY */
95 /***** MISC DEFINITIONS *****/
97 #define USE_NANOSLEEP 1
98 #define STDC_HEADERS 1
99 #define HAVE_TM_ZONE 1
100 /* #undef HAVE_TZNAME */
101 /* #undef USE_PROC */
102 #define SOCKET_SIZE_TYPE size_t
103 #define GETGROUPS_T gid_t
104 #define RETSIGTYPE void
107 /***** HEADER FILES *****/
112 /* needed for the time_t structures we use later... */
113 /* this include must come before sys/resource.h or we can have problems on some OSes */
114 #define TIME_WITH_SYS_TIME 1
115 #define HAVE_SYS_TIME_H 1
116 #if TIME_WITH_SYS_TIME
117 #include <sys/time.h>
121 #include <sys/time.h>
127 #define HAVE_SYS_RESOURCE_H 1
128 #ifdef HAVE_SYS_RESOURCE_H
129 #include <sys/resource.h>
132 #define HAVE_LIMITS_H 1
147 #define HAVE_STRINGS_H 1
148 #ifdef HAVE_STRINGS_H
152 #define HAVE_STRING_H 1
153 #ifdef HAVE_STRINGS_H
157 #define HAVE_UNISTD_H 1
162 #define HAVE_SYSLOG_H 1
167 #define HAVE_SIGNAL_H 1
172 #define HAVE_SYS_STAT_H 1
173 #ifdef HAVE_SYS_STAT_H
174 #include <sys/stat.h>
177 #define HAVE_SYS_MMAN_H 1
178 #ifdef HAVE_SYS_MMAN_H
179 #include <sys/mman.h>
182 #define HAVE_FCNTL_H 1
188 /* #undef HAVE_GLIB_H */
191 /* #undef HAVE_GLIB_H */
197 #define HAVE_STDARG_H 1
202 #define HAVE_SYS_TYPES_H 1
203 #ifdef HAVE_SYS_TYPES_H
204 #include <sys/types.h>
207 #define HAVE_SYS_WAIT_H 1
208 #ifdef HAVE_SYS_WAIT_H
209 #include <sys/wait.h>
212 #define HAVE_ERRNO_H 1
217 #define HAVE_SYS_TIMEB_H 1
219 #include <sys/timeb.h>
222 #define HAVE_SYS_IPC_H 1
223 #ifdef HAVE_SYS_IPC_H
227 #define HAVE_SYS_MSG_H 1
228 #ifdef HAVE_SYS_MSG_H
232 #define HAVE_MATH_H 1
237 #define HAVE_CTYPE_H 1
242 #define HAVE_DIRENT_H 1
247 #define HAVE_PTHREAD_H 1
248 #ifdef HAVE_PTHREAD_H
252 #define HAVE_REGEX_H 1
256 #define HAVE_SYS_SOCKET_H 1
257 #ifdef HAVE_SYS_SOCKET_H
258 #include <sys/socket.h>
261 /* #undef HAVE_SOCKET */
266 #define HAVE_NETINET_IN_H 1
267 #ifdef HAVE_NETINET_IN_H
268 #include <netinet/in.h>
271 #define HAVE_ARPA_INET_H 1
272 #ifdef HAVE_ARPA_INET_H
273 #include <arpa/inet.h>
276 #define HAVE_NETDB_H 1
281 #define HAVE_LIBGEN_H 1
286 #define HAVE_SYS_UN_H 1
291 #define HAVE_SYS_POLL_H 1
292 #ifdef HAVE_SYS_POLL_H
293 #include <sys/poll.h>
296 #define HAVE_GETOPT_H 1
301 /* #undef HAVE_LINUX_MODULE_H */
302 #ifdef HAVE_LINUX_MODULE_H
303 #include <linux/module.h>
306 /* configure script should allow user to override ltdl choice, but this will do for now... */
307 /* #undef USE_LTDL */
308 /* #undef HAVE_LTDL_H */
316 #define HAVE_DLFCN_H 1
323 #define RTLD_GLOBAL 0
330 /***** MARO DEFINITIONS *****/
332 /* this needs to come after all system include files, so we don't accidentally attempt to redefine it */
334 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
337 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)