Code

Initial revision
[rrdtool-all.git] / program / config / config.h.in
1 /* config/config.h.in.  Generated automatically from configure.in by autoheader.  */
2 #ifndef CONFIG_H
3 #define CONFIG_H
6 /* Define to empty if the keyword does not work.  */
7 #undef const
9 /* Define if you don't have vprintf but do have _doprnt.  */
10 #undef HAVE_DOPRNT
12 /* Define if you have the strftime function.  */
13 #undef HAVE_STRFTIME
15 /* Define if you have the vprintf function.  */
16 #undef HAVE_VPRINTF
18 /* Define if you have the ANSI C header files.  */
19 #undef STDC_HEADERS
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.  */
25 #undef TM_IN_SYS_TIME
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.  */
36 #undef HAVE_CLASS
38 /* Define if you have the finite function.  */
39 #undef HAVE_FINITE
41 /* Define if you have the fp_class function.  */
42 #undef HAVE_FP_CLASS
44 /* Define if you have the fpclass function.  */
45 #undef HAVE_FPCLASS
47 /* Define if you have the fpclassify function.  */
48 #undef HAVE_FPCLASSIFY
50 /* Define if you have the getrusage function.  */
51 #undef HAVE_GETRUSAGE
53 /* Define if you have the gettimeofday function.  */
54 #undef HAVE_GETTIMEOFDAY
56 /* Define if you have the isinf function.  */
57 #undef HAVE_ISINF
59 /* Define if you have the isnan function.  */
60 #undef HAVE_ISNAN
62 /* Define if you have the memmove function.  */
63 #undef HAVE_MEMMOVE
65 /* Define if you have the mktime function.  */
66 #undef HAVE_MKTIME
68 /* Define if you have the snprintf function.  */
69 #undef HAVE_SNPRINTF
71 /* Define if you have the strchr function.  */
72 #undef HAVE_STRCHR
74 /* Define if you have the strerror function.  */
75 #undef HAVE_STRERROR
77 /* Define if you have the vsnprintf function.  */
78 #undef HAVE_VSNPRINTF
80 /* Define if you have the <fcntl.h> header file.  */
81 #undef HAVE_FCNTL_H
83 /* Define if you have the <float.h> header file.  */
84 #undef HAVE_FLOAT_H
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.  */
90 #undef HAVE_IEEEFP_H
92 /* Define if you have the <malloc.h> header file.  */
93 #undef HAVE_MALLOC_H
95 /* Define if you have the <math.h> header file.  */
96 #undef HAVE_MATH_H
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.  */
111 #undef HAVE_UNISTD_H
113 /* Define if you have the m library (-lm).  */
114 #undef HAVE_LIBM
116 /* Name of package */
117 #undef PACKAGE
119 /* Version number of package */
120 #undef VERSION
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 */
125       
126 #if STDC_HEADERS
127 # include <string.h>
128 #else
129 # ifndef HAVE_STRCHR
130 #  define strchr index
131 #  define strrchr rindex
132 # endif
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))
137 # endif
138 #endif
141 #if NO_NULL_REALLOC
142 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) ))
143 #else
144 # define rrd_realloc(a,b) realloc((a), (b))
145 #endif      
147 #if HAVE_MATH_H
148 #  include <math.h>
149 #endif
151 #if HAVE_FLOAT_H
152 #  include <float.h>
153 #endif
155 #if HAVE_IEEEFP_H
156 #  include <ieeefp.h>
157 #endif
159 #if HAVE_FP_CLASS_H
160 #  include <fp_class.h>
161 #endif
163 /* for Solaris */
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)
167 #endif
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)
173 #endif
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)
178 #endif
180 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
181 #  define HAVE_ISINF 1
182 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
183 #endif
185 /* for AIX */
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)
189 #endif
191 #if (! defined (HAVE_FINITE) && defined (HAVE_ISFINITE))
192 #  define HAVE_FINITE 1
193 #  define finite(a) isfinite(a)
194 #endif
196 #if (! defined(HAVE_FINITE) && defined(HAVE_ISNAN) && defined(HAVE_ISINF))
197 #  define HAVE_FINITE 1
198 #  define finite(a) (! isnan(a) && ! isinf(a))
199 #endif
201 #ifndef HAVE_FINITE
202 #error "Can't compile without finite function"
203 #endif
205 #ifndef HAVE_ISINF
206 #error "Can't compile without isinf function"
207 #endif
209 #endif /* CONFIG_H */