Initial revision
[rrdtool.git] / config / config.h
1 /* config/config.h.  Generated automatically by configure.  */
2 /* config/config.h.in.  Generated automatically from configure.in by autoheader.  */
3 #ifndef CONFIG_H
4 #define CONFIG_H
5
6
7 /* Define to empty if the keyword does not work.  */
8 /* #undef const */
9
10 /* Define if you don't have vprintf but do have _doprnt.  */
11 /* #undef HAVE_DOPRNT */
12
13 /* Define if you have the strftime function.  */
14 #define HAVE_STRFTIME 1
15
16 /* Define if you have the vprintf function.  */
17 #define HAVE_VPRINTF 1
18
19 /* Define if you have the ANSI C header files.  */
20 #define STDC_HEADERS 1
21
22 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
23 #define TIME_WITH_SYS_TIME 1
24
25 /* Define if your <sys/time.h> declares struct tm.  */
26 /* #undef TM_IN_SYS_TIME */
27
28 /* IEEE can be prevented from raising signals with fpsetmask(0) */
29 /* #undef MUST_DISABLE_FPMASK */
30
31 /* #undef MUST_DISABLE_SIGFPE */
32
33 /* realloc does not support NULL as argument */
34 /* #undef NO_NULL_REALLOC */
35
36 /* Define if you have the class function.  */
37 /* #undef HAVE_CLASS */
38
39 /* Define if you have the finite function.  */
40 #define HAVE_FINITE 1
41
42 /* Define if you have the fp_class function.  */
43 /* #undef HAVE_FP_CLASS */
44
45 /* Define if you have the fpclass function.  */
46 #define HAVE_FPCLASS 1
47
48 /* Define if you have the fpclassify function.  */
49 /* #undef HAVE_FPCLASSIFY */
50
51 /* Define if you have the getrusage function.  */
52 #define HAVE_GETRUSAGE 1
53
54 /* Define if you have the gettimeofday function.  */
55 #define HAVE_GETTIMEOFDAY 1
56
57 /* Define if you have the isinf function.  */
58 /* #undef HAVE_ISINF */
59
60 /* Define if you have the isnan function.  */
61 #define HAVE_ISNAN 1
62
63 /* Define if you have the memmove function.  */
64 #define HAVE_MEMMOVE 1
65
66 /* Define if you have the mktime function.  */
67 #define HAVE_MKTIME 1
68
69 /* Define if you have the snprintf function.  */
70 #define HAVE_SNPRINTF 1
71
72 /* Define if you have the strchr function.  */
73 #define HAVE_STRCHR 1
74
75 /* Define if you have the strerror function.  */
76 #define HAVE_STRERROR 1
77
78 /* Define if you have the vsnprintf function.  */
79 #define HAVE_VSNPRINTF 1
80
81 /* Define if you have the <fcntl.h> header file.  */
82 #define HAVE_FCNTL_H 1
83
84 /* Define if you have the <float.h> header file.  */
85 #define HAVE_FLOAT_H 1
86
87 /* Define if you have the <fp_class.h> header file.  */
88 /* #undef HAVE_FP_CLASS_H */
89
90 /* Define if you have the <ieeefp.h> header file.  */
91 #define HAVE_IEEEFP_H 1
92
93 /* Define if you have the <malloc.h> header file.  */
94 #define HAVE_MALLOC_H 1
95
96 /* Define if you have the <math.h> header file.  */
97 #define HAVE_MATH_H 1
98
99 /* Define if you have the <sys/param.h> header file.  */
100 #define HAVE_SYS_PARAM_H 1
101
102 /* Define if you have the <sys/resource.h> header file.  */
103 #define HAVE_SYS_RESOURCE_H 1
104
105 /* Define if you have the <sys/time.h> header file.  */
106 #define HAVE_SYS_TIME_H 1
107
108 /* Define if you have the <sys/times.h> header file.  */
109 #define HAVE_SYS_TIMES_H 1
110
111 /* Define if you have the <unistd.h> header file.  */
112 #define HAVE_UNISTD_H 1
113
114 /* Define if you have the m library (-lm).  */
115 #define HAVE_LIBM 1
116
117 /* Name of package */
118 #define PACKAGE "rrdtool"
119
120 /* Version number of package */
121 #define VERSION "1.0.33"
122
123
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 */
126       
127 #if STDC_HEADERS
128 # include <string.h>
129 #else
130 # ifndef HAVE_STRCHR
131 #  define strchr index
132 #  define strrchr rindex
133 # endif
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))
138 # endif
139 #endif
140
141
142 #if NO_NULL_REALLOC
143 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) ))
144 #else
145 # define rrd_realloc(a,b) realloc((a), (b))
146 #endif      
147
148 #if HAVE_MATH_H
149 #  include <math.h>
150 #endif
151
152 #if HAVE_FLOAT_H
153 #  include <float.h>
154 #endif
155
156 #if HAVE_IEEEFP_H
157 #  include <ieeefp.h>
158 #endif
159
160 #if HAVE_FP_CLASS_H
161 #  include <fp_class.h>
162 #endif
163
164 /* for Solaris */
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)
168 #endif
169
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)
174 #endif
175
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)
179 #endif
180
181 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
182 #  define HAVE_ISINF 1
183 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
184 #endif
185
186 /* for AIX */
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)
190 #endif
191
192 #if (! defined (HAVE_FINITE) && defined (HAVE_ISFINITE))
193 #  define HAVE_FINITE 1
194 #  define finite(a) isfinite(a)
195 #endif
196
197 #if (! defined(HAVE_FINITE) && defined(HAVE_ISNAN) && defined(HAVE_ISINF))
198 #  define HAVE_FINITE 1
199 #  define finite(a) (! isnan(a) && ! isinf(a))
200 #endif
201
202 #ifndef HAVE_FINITE
203 #error "Can't compile without finite function"
204 #endif
205
206 #ifndef HAVE_ISINF
207 #error "Can't compile without isinf function"
208 #endif
209
210 #endif /* CONFIG_H */
211