1 /* config/config.h.in. Generated automatically from configure.in by autoheader. */
6 /* Define to empty if the keyword does not work. */
9 /* Define if you don't have vprintf but do have _doprnt. */
12 /* Define if you have the strftime function. */
15 /* Define if you have the vprintf function. */
18 /* Define if you have the ANSI C header files. */
21 /* Define if you can safely include both <sys/time.h> and <time.h>. */
22 #undef TIME_WITH_SYS_TIME
24 /* Define if your <sys/time.h> declares struct tm. */
27 /* IEEE can be prevented from raising signals with fpsetmask(0) */
28 #undef MUST_DISABLE_FPMASK
30 #undef MUST_DISABLE_SIGFPE
32 /* realloc does not support NULL as argument */
33 #undef NO_NULL_REALLOC
35 /* Define if you have the class function. */
38 /* Define if you have the finite function. */
41 /* Define if you have the fp_class function. */
44 /* Define if you have the fpclass function. */
47 /* Define if you have the fpclassify function. */
48 #undef HAVE_FPCLASSIFY
50 /* Define if you have the getrusage function. */
53 /* Define if you have the gettimeofday function. */
54 #undef HAVE_GETTIMEOFDAY
56 /* Define if you have the isinf function. */
59 /* Define if you have the isnan function. */
62 /* Define if you have the memmove function. */
65 /* Define if you have the mktime function. */
68 /* Define if you have the snprintf function. */
71 /* Define if you have the strchr function. */
74 /* Define if you have the strerror function. */
77 /* Define if you have the vsnprintf function. */
80 /* Define if you have the <fcntl.h> header file. */
83 /* Define if you have the <float.h> header file. */
86 /* Define if you have the <fp_class.h> header file. */
87 #undef HAVE_FP_CLASS_H
89 /* Define if you have the <ieeefp.h> header file. */
92 /* Define if you have the <malloc.h> header file. */
95 /* Define if you have the <math.h> header file. */
98 /* Define if you have the <sys/param.h> header file. */
99 #undef HAVE_SYS_PARAM_H
101 /* Define if you have the <sys/resource.h> header file. */
102 #undef HAVE_SYS_RESOURCE_H
104 /* Define if you have the <sys/time.h> header file. */
105 #undef HAVE_SYS_TIME_H
107 /* Define if you have the <sys/times.h> header file. */
108 #undef HAVE_SYS_TIMES_H
110 /* Define if you have the <unistd.h> header file. */
113 /* Define if you have the m library (-lm). */
116 /* Name of package */
119 /* Version number of package */
123 /* define strrchr, strchr and memcpy, memmove in terms of bsd funcs
124 make sure you are NOT using bcopy, index or rindex in the code */
130 # define strchr index
131 # define strrchr rindex
133 char *strchr (), *strrchr ();
134 # ifndef HAVE_MEMMOVE
135 # define memcpy(d, s, n) bcopy ((s), (d), (n))
136 # define memmove(d, s, n) bcopy ((s), (d), (n))
142 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) ))
144 # define rrd_realloc(a,b) realloc((a), (b))
160 # include <fp_class.h>
164 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
165 # define HAVE_ISINF 1
166 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
169 /* for OSF1 Digital Unix */
170 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
171 # define HAVE_ISINF 1
172 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
175 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
176 # define HAVE_ISINF 1
177 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
180 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
181 # define HAVE_ISINF 1
182 # define isinf(a) (fpclassify(a) == FP_INFINITE)
186 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
187 # define HAVE_ISINF 1
188 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
191 #if (! defined (HAVE_FINITE) && defined (HAVE_ISFINITE))
192 # define HAVE_FINITE 1
193 # define finite(a) isfinite(a)
196 #if (! defined(HAVE_FINITE) && defined(HAVE_ISNAN) && defined(HAVE_ISINF))
197 # define HAVE_FINITE 1
198 # define finite(a) (! isnan(a) && ! isinf(a))
202 #error "Can't compile without finite function"
206 #error "Can't compile without isinf function"
209 #endif /* CONFIG_H */