1 /* config/config.h. Generated automatically by configure. */
2 /* config/config.h.in. Generated automatically from configure.in by autoheader. */
7 /* Define to empty if the keyword does not work. */
10 /* Define if you don't have vprintf but do have _doprnt. */
11 /* #undef HAVE_DOPRNT */
13 /* Define if you have the strftime function. */
14 #define HAVE_STRFTIME 1
16 /* Define if you have the vprintf function. */
17 #define HAVE_VPRINTF 1
19 /* Define if you have the ANSI C header files. */
20 #define STDC_HEADERS 1
22 /* Define if you can safely include both <sys/time.h> and <time.h>. */
23 #define TIME_WITH_SYS_TIME 1
25 /* Define if your <sys/time.h> declares struct tm. */
26 /* #undef TM_IN_SYS_TIME */
28 /* IEEE can be prevented from raising signals with fpsetmask(0) */
29 /* #undef MUST_DISABLE_FPMASK */
31 /* #undef MUST_DISABLE_SIGFPE */
33 /* realloc does not support NULL as argument */
34 /* #undef NO_NULL_REALLOC */
36 /* Define if you have the class function. */
37 /* #undef HAVE_CLASS */
39 /* Define if you have the finite function. */
42 /* Define if you have the fp_class function. */
43 /* #undef HAVE_FP_CLASS */
45 /* Define if you have the fpclass function. */
46 #define HAVE_FPCLASS 1
48 /* Define if you have the fpclassify function. */
49 /* #undef HAVE_FPCLASSIFY */
51 /* Define if you have the getrusage function. */
52 #define HAVE_GETRUSAGE 1
54 /* Define if you have the gettimeofday function. */
55 #define HAVE_GETTIMEOFDAY 1
57 /* Define if you have the isinf function. */
58 /* #undef HAVE_ISINF */
60 /* Define if you have the isnan function. */
63 /* Define if you have the memmove function. */
64 #define HAVE_MEMMOVE 1
66 /* Define if you have the mktime function. */
69 /* Define if you have the snprintf function. */
70 #define HAVE_SNPRINTF 1
72 /* Define if you have the strchr function. */
75 /* Define if you have the strerror function. */
76 #define HAVE_STRERROR 1
78 /* Define if you have the vsnprintf function. */
79 #define HAVE_VSNPRINTF 1
81 /* Define if you have the <fcntl.h> header file. */
82 #define HAVE_FCNTL_H 1
84 /* Define if you have the <float.h> header file. */
85 #define HAVE_FLOAT_H 1
87 /* Define if you have the <fp_class.h> header file. */
88 /* #undef HAVE_FP_CLASS_H */
90 /* Define if you have the <ieeefp.h> header file. */
91 #define HAVE_IEEEFP_H 1
93 /* Define if you have the <malloc.h> header file. */
94 #define HAVE_MALLOC_H 1
96 /* Define if you have the <math.h> header file. */
99 /* Define if you have the <sys/param.h> header file. */
100 #define HAVE_SYS_PARAM_H 1
102 /* Define if you have the <sys/resource.h> header file. */
103 #define HAVE_SYS_RESOURCE_H 1
105 /* Define if you have the <sys/time.h> header file. */
106 #define HAVE_SYS_TIME_H 1
108 /* Define if you have the <sys/times.h> header file. */
109 #define HAVE_SYS_TIMES_H 1
111 /* Define if you have the <unistd.h> header file. */
112 #define HAVE_UNISTD_H 1
114 /* Define if you have the m library (-lm). */
117 /* Name of package */
118 #define PACKAGE "rrdtool"
120 /* Version number of package */
121 #define VERSION "1.0.33"
124 /* define strrchr, strchr and memcpy, memmove in terms of bsd funcs
125 make sure you are NOT using bcopy, index or rindex in the code */
131 # define strchr index
132 # define strrchr rindex
134 char *strchr (), *strrchr ();
135 # ifndef HAVE_MEMMOVE
136 # define memcpy(d, s, n) bcopy ((s), (d), (n))
137 # define memmove(d, s, n) bcopy ((s), (d), (n))
143 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) ))
145 # define rrd_realloc(a,b) realloc((a), (b))
161 # include <fp_class.h>
165 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
166 # define HAVE_ISINF 1
167 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
170 /* for OSF1 Digital Unix */
171 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
172 # define HAVE_ISINF 1
173 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
176 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
177 # define HAVE_ISINF 1
178 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
181 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
182 # define HAVE_ISINF 1
183 # define isinf(a) (fpclassify(a) == FP_INFINITE)
187 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
188 # define HAVE_ISINF 1
189 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
192 #if (! defined (HAVE_FINITE) && defined (HAVE_ISFINITE))
193 # define HAVE_FINITE 1
194 # define finite(a) isfinite(a)
197 #if (! defined(HAVE_FINITE) && defined(HAVE_ISNAN) && defined(HAVE_ISINF))
198 # define HAVE_FINITE 1
199 # define finite(a) (! isnan(a) && ! isinf(a))
203 #error "Can't compile without finite function"
207 #error "Can't compile without isinf function"
210 #endif /* CONFIG_H */