Code

Merged branch 'master' into experimental.
[pkg-rrdtool.git] / rrd_config.h.in
1 /* rrd_config.h.in.  Generated from configure.ac by autoheader.  */
5 #ifndef RRD_CONFIG_H
6 #define RRD_CONFIG_H
7 /* IEEE can be prevented from raising signals with fpsetmask(0) */
8 #undef MUST_DISABLE_FPMASK
10 /* IEEE math only works if SIGFPE gets actively set to IGNORE */
12 #undef MUST_DISABLE_SIGFPE
14 /* realloc does not support NULL as argument */
15 #undef NO_NULL_REALLOC
17 /* lets enable madvise defines in NetBSD */ 
18 #if defined(__NetBSD__)
19 # if !defined(_NETBSD_SOURCE)
20 #  define _NETBSD_SOURCE
21 # endif
22 #endif
24  
26 /* Use this in code sections to mark them for libintl build */
27 #undef BUILD_LIBINTL
29 /* always defined to indicate that i18n is enabled */
30 #undef ENABLE_NLS
32 /* Gettext package */
33 #undef GETTEXT_PACKAGE
35 /* Define to 1 if you have the `bind_textdomain_codeset' function. */
36 #undef HAVE_BIND_TEXTDOMAIN_CODESET
38 /* Define to 1 if you have the `chdir' function. */
39 #undef HAVE_CHDIR
41 /* Define to 1 if you have the `chroot' function. */
42 #undef HAVE_CHROOT
44 /* Define to 1 if you have the `class' function. */
45 #undef HAVE_CLASS
47 /* Define to 1 if you have the <ctype.h> header file. */
48 #undef HAVE_CTYPE_H
50 /* Define to 1 if you have the `dcgettext' function. */
51 #undef HAVE_DCGETTEXT
53 /* Define to 1 if you have the declaration of `madvise', and to 0 if you
54    don't. */
55 #undef HAVE_DECL_MADVISE
57 /* Define to 1 if you have the declaration of `posix_fadvise', and to 0 if you
58    don't. */
59 #undef HAVE_DECL_POSIX_FADVISE
61 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
62    */
63 #undef HAVE_DIRENT_H
65 /* Define to 1 if you have the <dlfcn.h> header file. */
66 #undef HAVE_DLFCN_H
68 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
69 #undef HAVE_DOPRNT
71 /* Define to 1 if you have the <errno.h> header file. */
72 #undef HAVE_ERRNO_H
74 /* Define to 1 if you have the <fcntl.h> header file. */
75 #undef HAVE_FCNTL_H
77 /* Define to 1 if you have the `fdatasync' function. */
78 #undef HAVE_FDATASYNC
80 /* Define to 1 if you have the <features.h> header file. */
81 #undef HAVE_FEATURES_H
83 /* Define to 1 if you have the `finite' function. */
84 #undef HAVE_FINITE
86 /* Define to 1 if you have the <float.h> header file. */
87 #undef HAVE_FLOAT_H
89 /* Define to 1 if you have the `fpclass' function. */
90 #undef HAVE_FPCLASS
92 /* Define to 1 if you have the `fpclassify' function. */
93 #undef HAVE_FPCLASSIFY
95 /* Define to 1 if you have the `fp_class' function. */
96 #undef HAVE_FP_CLASS
98 /* Define to 1 if you have the <fp_class.h> header file. */
99 #undef HAVE_FP_CLASS_H
101 /* Define to 1 if you have the `fsync' function. */
102 #undef HAVE_FSYNC
104 /* Define to 1 if you have the `getpagesize' function. */
105 #undef HAVE_GETPAGESIZE
107 /* Define to 1 if you have the `getrusage' function. */
108 #undef HAVE_GETRUSAGE
110 /* Define if the GNU gettext() function is already present or preinstalled. */
111 #undef HAVE_GETTEXT
113 /* Define to 1 if you have the `gettimeofday' function. */
114 #undef HAVE_GETTIMEOFDAY
116 /* Define to 1 if you have the `getuid' function. */
117 #undef HAVE_GETUID
119 /* Define to 1 if you have the <ieeefp.h> header file. */
120 #undef HAVE_IEEEFP_H
122 /* Define to 1 if you have the <inttypes.h> header file. */
123 #undef HAVE_INTTYPES_H
125 /* Define to 1 if you have the `isfinite' function. */
126 #undef HAVE_ISFINITE
128 /* Define to 1 if you have the `isinf' function. */
129 #undef HAVE_ISINF
131 /* Define to 1 if you have the `isnan' function. */
132 #undef HAVE_ISNAN
134 /* Define if your <locale.h> file defines LC_MESSAGES. */
135 #undef HAVE_LC_MESSAGES
137 /* Define to 1 if you have the <libintl.h> header file. */
138 #undef HAVE_LIBINTL_H
140 /* Define to 1 if you have the `m' library (-lm). */
141 #undef HAVE_LIBM
143 /* Define to 1 if you have the <locale.h> header file. */
144 #undef HAVE_LOCALE_H
146 /* Define to 1 if you have the `madvise' function. */
147 #undef HAVE_MADVISE
149 /* Define to 1 if you have the <malloc.h> header file. */
150 #undef HAVE_MALLOC_H
152 /* Define to 1 if you have the <math.h> header file. */
153 #undef HAVE_MATH_H
155 /* Define to 1 if you have the `mbstowcs' function. */
156 #undef HAVE_MBSTOWCS
158 /* Define to 1 if you have the `memmove' function. */
159 #undef HAVE_MEMMOVE
161 /* Define to 1 if you have the <memory.h> header file. */
162 #undef HAVE_MEMORY_H
164 /* Define to 1 if you have the `mktime' function. */
165 #undef HAVE_MKTIME
167 /* Define to 1 if you have the `mmap' function. */
168 #undef HAVE_MMAP
170 /* Define to 1 if you have the `msync' function. */
171 #undef HAVE_MSYNC
173 /* Define to 1 if you have the `munmap' function. */
174 #undef HAVE_MUNMAP
176 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
177 #undef HAVE_NDIR_H
179 /* Define to 1 if you have the `opendir' function. */
180 #undef HAVE_OPENDIR
182 /* Define to 1 if you have the `posix_fadvise' function. */
183 #undef HAVE_POSIX_FADVISE
185 /* Define to 1 if you have the `posix_madvise' function. */
186 #undef HAVE_POSIX_MADVISE
188 /* Define if you have POSIX threads libraries and header files. */
189 #undef HAVE_PTHREAD
191 /* Define to 1 if you have the `readdir' function. */
192 #undef HAVE_READDIR
194 /* Define to 1 if you have the `setlocale' function. */
195 #undef HAVE_SETLOCALE
197 /* Define to 1 if you have the <signal.h> header file. */
198 #undef HAVE_SIGNAL_H
200 /* Define to 1 if you have the `snprintf' function. */
201 #undef HAVE_SNPRINTF
203 /* Define to 1 if you have the <stdint.h> header file. */
204 #undef HAVE_STDINT_H
206 /* Define to 1 if you have the <stdio.h> header file. */
207 #undef HAVE_STDIO_H
209 /* Define to 1 if you have the <stdlib.h> header file. */
210 #undef HAVE_STDLIB_H
212 /* Define to 1 if you have the `strchr' function. */
213 #undef HAVE_STRCHR
215 /* Define to 1 if you have the `strerror' function. */
216 #undef HAVE_STRERROR
218 /* Define to 1 if you have the `strerror_r' function. */
219 #undef HAVE_STRERROR_R
221 /* Define to 1 if you have the `strftime' function. */
222 #undef HAVE_STRFTIME
224 /* Define to 1 if you have the <strings.h> header file. */
225 #undef HAVE_STRINGS_H
227 /* Define to 1 if you have the <string.h> header file. */
228 #undef HAVE_STRING_H
230 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
231    */
232 #undef HAVE_SYS_DIR_H
234 /* Define to 1 if you have the <sys/mman.h> header file. */
235 #undef HAVE_SYS_MMAN_H
237 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
238    */
239 #undef HAVE_SYS_NDIR_H
241 /* Define to 1 if you have the <sys/param.h> header file. */
242 #undef HAVE_SYS_PARAM_H
244 /* Define to 1 if you have the <sys/resource.h> header file. */
245 #undef HAVE_SYS_RESOURCE_H
247 /* Define to 1 if you have the <sys/stat.h> header file. */
248 #undef HAVE_SYS_STAT_H
250 /* Define to 1 if you have the <sys/times.h> header file. */
251 #undef HAVE_SYS_TIMES_H
253 /* Define to 1 if you have the <sys/types.h> header file. */
254 #undef HAVE_SYS_TYPES_H
256 /* Define to 1 if you have the `tzset' function. */
257 #undef HAVE_TZSET
259 /* Define to 1 if you have the <unistd.h> header file. */
260 #undef HAVE_UNISTD_H
262 /* Define to 1 if you have the `vprintf' function. */
263 #undef HAVE_VPRINTF
265 /* Define to 1 if you have the `vsnprintf' function. */
266 #undef HAVE_VSNPRINTF
268 /* Name of package */
269 #undef PACKAGE
271 /* Define to the address where bug reports for this package should be sent. */
272 #undef PACKAGE_BUGREPORT
274 /* Define to the full name of this package. */
275 #undef PACKAGE_NAME
277 /* Define to the full name and version of this package. */
278 #undef PACKAGE_STRING
280 /* Define to the one symbol short name of this package. */
281 #undef PACKAGE_TARNAME
283 /* Define to the version of this package. */
284 #undef PACKAGE_VERSION
286 /* Define to necessary symbol if this constant uses a non-standard name on
287    your system. */
288 #undef PTHREAD_CREATE_JOINABLE
290 /* Vertical label angle: -90.0 (default) or 90.0 */
291 #undef RRDGRAPH_YLEGEND_ANGLE
293 /* Define to 1 if you have the ANSI C header files. */
294 #undef STDC_HEADERS
296 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
297 #undef TIME_WITH_SYS_TIME
299 /* Define to 1 if your <sys/time.h> declares `struct tm'. */
300 #undef TM_IN_SYS_TIME
302 /* Version number of package */
303 #undef VERSION
305 /* Define to 1 if your processor stores words with the most significant byte
306    first (like Motorola and SPARC, unlike Intel and VAX). */
307 #undef WORDS_BIGENDIAN
309 /* Define to empty if `const' does not conform to ANSI C. */
310 #undef const
313 /* make sure that we pickup the correct stuff from all headers */
314 #ifdef HAVE_FEATURES_H
315 #undef _XOPEN_SOURCE /* keep unmodified */
316 #undef _BSD_SOURCE /* keep unmodified */
317 #define _XOPEN_SOURCE 600
318 #define _BSD_SOURCE 1
319 # include <features.h>
320 #endif
322 /* FreeBSD 4.8 wants this included BEFORE sys/types.h */
323 #ifdef HAVE_SYS_MMAN_H
324 # include <sys/mman.h>
325 #endif
327 #ifdef HAVE_SYS_TYPES_H
328 # include <sys/types.h>
329 #endif
331 #ifdef HAVE_SYS_PARAM_H
332 # include <sys/param.h>
333 #endif
334 #ifndef MAXPATH
335 # ifdef PATH_MAX
336 #  define MAXPATH PATH_MAX
337 # endif
338 #endif
339 #ifndef MAXPATH
340 /* else try the BSD variant */
341 # ifdef MAXPATHLEN
342 #  define MAXPATH MAXPATHLEN
343 # endif
344 #endif
346 #ifdef HAVE_ERRNO_H
347 # include <errno.h>
348 #endif
350 #if !defined HAVE_MADVISE && defined HAVE_POSIX_MADVISE
351 /* use posix_madvise family */
352 # define madvise posix_madvise
353 # define MADV_NORMAL POSIX_MADV_NORMAL
354 # define MADV_RANDOM POSIX_MADV_RANDOM
355 # define MADV_SEQUENTIAL POSIX_MADV_SEQUENTIAL
356 # define MADV_WILLNEED POSIX_MADV_WILLNEED
357 # define MADV_DONTNEED POSIX_MADV_DONTNEED
358 #endif
359 #if defined HAVE_MADVISE || defined HAVE_POSIX_MADVISE
360 # define USE_MADVISE 1
361 #endif
363 #ifdef HAVE_SYS_STAT_H
364 # include <sys/stat.h>
365 #endif
367 #ifdef HAVE_FCNTL_H
368 #include <fcntl.h>
369 #endif
371 #ifdef HAVE_UNISTD_H
372 # include <unistd.h>
373 #endif
375 #ifdef TIME_WITH_SYS_TIME
376 # include <sys/time.h>
377 # include <time.h>
378 #else
379 # ifdef HAVE_SYS_TIME_H
380 #  include <sys/time.h>
381 # else
382 #  include <time.h>
383 # endif
384 #endif
386 #ifdef HAVE_SYS_TIMES_H
387 # include <sys/times.h>
388 #endif
390 #ifdef HAVE_SYS_RESOURCE_H
391 # include <sys/resource.h>
392 #if (defined(__svr4__) && defined(__sun__))
393 /* Solaris headers (pre 2.6) do not have a getrusage prototype. 
394    Use this instead. */
395 extern int getrusage(int, struct rusage *);
396 #endif /* __svr4__ && __sun__ */
397 #endif
400 /* define strrchr, strchr and memcpy, memmove in terms of bsd funcs
401    make sure you are NOT using bcopy, index or rindex in the code */
402       
403 #ifdef STDC_HEADERS
404 # include <string.h>
405 #else
406 # ifndef HAVE_STRCHR
407 #  define strchr index
408 #  define strrchr rindex
409 # endif
410 char *strchr (), *strrchr ();
411 # ifndef HAVE_MEMMOVE
412 #  define memcpy(d, s, n) bcopy ((s), (d), (n))
413 #  define memmove(d, s, n) bcopy ((s), (d), (n))
414 # endif
415 #endif
417 #ifdef NO_NULL_REALLOC
418 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) ))
419 #else
420 # define rrd_realloc(a,b) realloc((a), (b))
421 #endif
423 #ifdef NEED_MALLOC_MALLOC_H
424 #  include <malloc/malloc.h>
425 #endif
427 #ifdef HAVE_STDIO_H
428 # include <stdio.h>
429 #endif
431 #ifdef HAVE_STDLIB_H
432 # include <stdlib.h>
433 #endif
435 #ifdef HAVE_CTYPE_H
436 # include <ctype.h>
437 #endif
439 #ifdef HAVE_DIRENT_H
440 # include <dirent.h>
441 # define NAMLEN(dirent) strlen((dirent)->d_name)
442 #else
443 # define dirent direct
444 # define NAMLEN(dirent) (dirent)->d_namlen
445 # ifdef HAVE_SYS_NDIR_H
446 #  include <sys/ndir.h>
447 # endif
448 # ifdef HAVE_SYS_DIR_H
449 #  include <sys/dir.h>
450 # endif
451 # ifdef HAVE_NDIR_H
452 #  include <ndir.h>
453 # endif
454 #endif
456 #ifdef MUST_DISABLE_SIGFPE
457 # include <signal.h>
458 #endif
460 #ifdef MUST_DISABLE_FPMASK
461 # include <floatingpoint.h>
462 #endif
465 #ifdef HAVE_MATH_H
466 # include <math.h>
467 #endif
469 #ifdef HAVE_FLOAT_H
470 # include <float.h>
471 #endif
473 #ifdef HAVE_IEEEFP_H
474 # include <ieeefp.h>
475 #endif
477 #ifdef HAVE_FP_CLASS_H
478 # include <fp_class.h>
479 #endif
481 /* for Solaris */
482 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
483 #  define HAVE_ISINF 1
484 #  ifdef isinf
485 #  undef isinf /* confuse autoconf */
486 #  endif
487 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
488 #endif
490 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
491 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
492 #  undef isnan /* confuse autoconf to NOT remove this */
493 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
494 #endif
496 /* for OSF1 Digital Unix */
497 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
498 #  define HAVE_ISINF 1
499 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
500 #endif
502 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
503 #  define HAVE_ISINF 1
504 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
505 #endif
507 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
508 #  define HAVE_ISINF 1
509 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
510 #endif
512 /* for AIX */
513 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
514 #  define HAVE_ISINF 1
515 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
516 #endif
518 #if (! defined (HAVE_FINITE) && defined (HAVE_ISFINITE))
519 #  define HAVE_FINITE 1
520 #  define finite(a) isfinite(a)
521 #endif
523 #if (! defined(HAVE_FINITE) && defined(HAVE_ISNAN) && defined(HAVE_ISINF))
524 #  define HAVE_FINITE 1
525 #  define finite(a) (! isnan(a) && ! isinf(a))
526 #endif
528 #ifndef HAVE_FINITE
529 #error "Can't compile without finite function"
530 #endif
532 #ifndef HAVE_ISINF
533 #error "Can't compile without isinf function"
534 #endif
536 #if (! defined(HAVE_FDATASYNC) && defined(HAVE_FSYNC))
537 #define fdatasync fsync
538 #endif
540 #if (!defined(HAVE_FDATASYNC) && !defined(HAVE_FSYNC))
541 #error "Can't compile with without fsync and fdatasync"
542 #endif
544 #endif /* RRD_CONFIG_H */