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