Imported Upstream version 3.0
[debian/gnuradio] / config.h.in
1 /* config.h.in.  Generated from configure.ac by autoheader.  */
2
3 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
4    systems. This function is required for `alloca.c' support on those systems.
5    */
6 #undef CRAY_STACKSEG_END
7
8 /* Define if for loop scoping is broken */
9 #undef CXX_HAS_BUGGY_FOR_LOOPS
10
11 /* Define if C++ is missing bool type */
12 #undef CXX_HAS_NO_BOOL
13
14 /* Define if has std::isnan */
15 #undef CXX_HAS_STD_ISNAN
16
17 /* Define to 1 if using `alloca.c'. */
18 #undef C_ALLOCA
19
20 /* Define to 1 if you have `alloca', as a function or macro. */
21 #undef HAVE_ALLOCA
22
23 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
24    */
25 #undef HAVE_ALLOCA_H
26
27 /* Define to 1 if you have the <AudioToolbox/AudioToolbox.h> header file. */
28 #undef HAVE_AUDIOTOOLBOX_AUDIOTOOLBOX_H
29
30 /* Define to 1 if you have the <AudioUnit/AudioUnit.h> header file. */
31 #undef HAVE_AUDIOUNIT_AUDIOUNIT_H
32
33 /* Define to 1 if you have the <byteswap.h> header file. */
34 #undef HAVE_BYTESWAP_H
35
36 /* Define to 1 if you have the `clock_gettime' function. */
37 #undef HAVE_CLOCK_GETTIME
38
39 /* Define to 1 if your system has `cosf'. */
40 #undef HAVE_COSF
41
42 /* Define if you have the CreateFilemapping function(win32). */
43 #undef HAVE_CREATEFILEMAPPING
44
45 /* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
46    */
47 #undef HAVE_DECL_GETENV
48
49 /* Define to 1 if you have the <dlfcn.h> header file. */
50 #undef HAVE_DLFCN_H
51
52 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
53 #undef HAVE_DOPRNT
54
55 /* Define to 1 if your system has 'exp10'. */
56 #undef HAVE_EXP10
57
58 /* Define to 1 if you have the <fcntl.h> header file. */
59 #undef HAVE_FCNTL_H
60
61 /* Define to 1 if you have the `getopt' function. */
62 #undef HAVE_GETOPT
63
64 /* Define to 1 if you have the `getpagesize' function. */
65 #undef HAVE_GETPAGESIZE
66
67 /* Define to 1 if you have the `getrusage' function. */
68 #undef HAVE_GETRUSAGE
69
70 /* Define to 1 if you have the `gettimeofday' function. */
71 #undef HAVE_GETTIMEOFDAY
72
73 /* Define to 1 if you have the <inttypes.h> header file. */
74 #undef HAVE_INTTYPES_H
75
76 /* Define to 1 if you have the <io.h> header file. */
77 #undef HAVE_IO_H
78
79 /* Define to 1 if you have the `ossaudio' library (-lossaudio). */
80 #undef HAVE_LIBOSSAUDIO
81
82 /* Define to 1 if you have the `socket' library (-lsocket). */
83 #undef HAVE_LIBSOCKET
84
85 /* Define to 1 if you have the `winmm' library (-lwinmm). */
86 #undef HAVE_LIBWINMM
87
88 /* Define to 1 if you have the <limits.h> header file. */
89 #undef HAVE_LIMITS_H
90
91 /* Define to 1 if you have the <linux/ppdev.h> header file. */
92 #undef HAVE_LINUX_PPDEV_H
93
94 /* Define to 1 if you have the `lstat' function. */
95 #undef HAVE_LSTAT
96
97 /* Define to 1 if you have the <memory.h> header file. */
98 #undef HAVE_MEMORY_H
99
100 /* Define to 1 if you have the `mkstemp' function. */
101 #undef HAVE_MKSTEMP
102
103 /* Define to 1 if you have the `mmap' function. */
104 #undef HAVE_MMAP
105
106 /* Define to 1 if you have the `modf' function. */
107 #undef HAVE_MODF
108
109 /* Define to 1 if you have the `nanosleep' function. */
110 #undef HAVE_NANOSLEEP
111
112 /* Define if you have POSIX threads libraries and header files. */
113 #undef HAVE_PTHREAD
114
115 /* Define to 1 if you have the <Python.h> header file. */
116 #undef HAVE_PYTHON_H
117
118 /* Define to 1 if you have the `rand' function. */
119 #undef HAVE_RAND
120
121 /* Define to 1 if you have the `random' function. */
122 #undef HAVE_RANDOM
123
124 /* Define to 1 if you have the <sched.h> header file. */
125 #undef HAVE_SCHED_H
126
127 /* Define to 1 if you have the `sched_setscheduler' function. */
128 #undef HAVE_SCHED_SETSCHEDULER
129
130 /* Define to 1 if you have the `select' function. */
131 #undef HAVE_SELECT
132
133 /* Define to 1 if you have the `shm_open' function. */
134 #undef HAVE_SHM_OPEN
135
136 /* Define to 1 if you have the `sigaction' function. */
137 #undef HAVE_SIGACTION
138
139 /* Define to 1 if your system has `sincos'. */
140 #undef HAVE_SINCOS
141
142 /* Define to 1 if your system has `sincosf'. */
143 #undef HAVE_SINCOSF
144
145 /* Define to 1 if your system has `sinf'. */
146 #undef HAVE_SINF
147
148 /* Define to 1 if you have the `sleep' function. */
149 #undef HAVE_SLEEP
150
151 /* Define to 1 if you have the `snprintf' function. */
152 #undef HAVE_SNPRINTF
153
154 /* Define to 1 if you have the `socket' function. */
155 #undef HAVE_SOCKET
156
157 /* Define to 1 if you have the `sqrt' function. */
158 #undef HAVE_SQRT
159
160 /* Define to 1 if you have the `srand' function. */
161 #undef HAVE_SRAND
162
163 /* Define to 1 if you have the `srandom' function. */
164 #undef HAVE_SRANDOM
165
166 /* Define to 1 if the system has the type `ssize_t'. */
167 #undef HAVE_SSIZE_T
168
169 /* Define to 1 if you have win32 Sleep */
170 #undef HAVE_SSLEEP
171
172 /* Define to 1 if you have the <stdint.h> header file. */
173 #undef HAVE_STDINT_H
174
175 /* Define to 1 if you have the <stdlib.h> header file. */
176 #undef HAVE_STDLIB_H
177
178 /* Define to 1 if you have the `strcspn' function. */
179 #undef HAVE_STRCSPN
180
181 /* Define to 1 if you have the `strerror' function. */
182 #undef HAVE_STRERROR
183
184 /* Define to 1 if you have the <strings.h> header file. */
185 #undef HAVE_STRINGS_H
186
187 /* Define to 1 if you have the <string.h> header file. */
188 #undef HAVE_STRING_H
189
190 /* Define to 1 if you have the `strspn' function. */
191 #undef HAVE_STRSPN
192
193 /* Define to 1 if the system has the type `struct timespec'. */
194 #undef HAVE_STRUCT_TIMESPEC
195
196 /* Define to 1 if the system has the type `struct timezone'. */
197 #undef HAVE_STRUCT_TIMEZONE
198
199 /* Define to 1 if you have the `sysconf' function. */
200 #undef HAVE_SYSCONF
201
202 /* Define to 1 if you have the <sys/ioctl.h> header file. */
203 #undef HAVE_SYS_IOCTL_H
204
205 /* Define to 1 if you have the <sys/ipc.h> header file. */
206 #undef HAVE_SYS_IPC_H
207
208 /* Define to 1 if you have the <sys/mman.h> header file. */
209 #undef HAVE_SYS_MMAN_H
210
211 /* Define to 1 if you have the <sys/resource.h> header file. */
212 #undef HAVE_SYS_RESOURCE_H
213
214 /* Define to 1 if you have the <sys/select.h> header file. */
215 #undef HAVE_SYS_SELECT_H
216
217 /* Define to 1 if you have the <sys/shm.h> header file. */
218 #undef HAVE_SYS_SHM_H
219
220 /* Define to 1 if you have the <sys/stat.h> header file. */
221 #undef HAVE_SYS_STAT_H
222
223 /* Define to 1 if you have the <sys/time.h> header file. */
224 #undef HAVE_SYS_TIME_H
225
226 /* Define to 1 if you have the <sys/types.h> header file. */
227 #undef HAVE_SYS_TYPES_H
228
229 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
230 #undef HAVE_SYS_WAIT_H
231
232 /* Define to 1 if you have the <time.h> header file. */
233 #undef HAVE_TIME_H
234
235 /* Define to 1 if your system has `trunc'. */
236 #undef HAVE_TRUNC
237
238 /* Define to 1 if you have the <unistd.h> header file. */
239 #undef HAVE_UNISTD_H
240
241 /* Define to 1 if you have the <usb.h> header file. */
242 #undef HAVE_USB_H
243
244 /* Define to 1 if you have the `usleep' function. */
245 #undef HAVE_USLEEP
246
247 /* Define to 1 if you have the `vprintf' function. */
248 #undef HAVE_VPRINTF
249
250 /* Define to 1 if you have the <winbase.h> header file. */
251 #undef HAVE_WINBASE_H
252
253 /* Define to 1 if you have the <windows.h> header file. */
254 #undef HAVE_WINDOWS_H
255
256 /* Define to 1 if you have the <winioctl.h> header file. */
257 #undef HAVE_WINIOCTL_H
258
259 /* Define to 1 if you have the `__secure_getenv' function. */
260 #undef HAVE___SECURE_GETENV
261
262 /* Define if mkdir accepts only one arg */
263 #undef MKDIR_TAKES_ONE_ARG
264
265 /* Define to disable asserts (don't doit!) */
266 #undef NDEBUG
267
268 /* Define to 1 to enable NT thread */
269 #undef OMNITHREAD_NT
270
271 /* Define to 1 to enable pthread */
272 #undef OMNITHREAD_POSIX
273
274 /* Name of package */
275 #undef PACKAGE
276
277 /* Define to the address where bug reports for this package should be sent. */
278 #undef PACKAGE_BUGREPORT
279
280 /* Define to the full name of this package. */
281 #undef PACKAGE_NAME
282
283 /* Define to the full name and version of this package. */
284 #undef PACKAGE_STRING
285
286 /* Define to the one symbol short name of this package. */
287 #undef PACKAGE_TARNAME
288
289 /* Define to the version of this package. */
290 #undef PACKAGE_VERSION
291
292 /* Define to 1 if the C compiler supports function prototypes. */
293 #undef PROTOTYPES
294
295 /* Define to the necessary symbol if this constant uses a non-standard name on
296    your system. */
297 #undef PTHREAD_CREATE_JOINABLE
298
299 /* Define to 1 if the `setvbuf' function takes the buffering type as its
300    second argument and the buffer pointer as the third, as on System V before
301    release 3. */
302 #undef SETVBUF_REVERSED
303
304 /* If using the C implementation of alloca, define if you know the
305    direction of stack growth for your system; otherwise it will be
306    automatically deduced at runtime.
307         STACK_DIRECTION > 0 => grows toward higher addresses
308         STACK_DIRECTION < 0 => grows toward lower addresses
309         STACK_DIRECTION = 0 => direction of growth unknown */
310 #undef STACK_DIRECTION
311
312 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
313 #undef STAT_MACROS_BROKEN
314
315 /* Define to 1 if you have the ANSI C header files. */
316 #undef STDC_HEADERS
317
318 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
319 #undef TIME_WITH_SYS_TIME
320
321 /* Define to 1 if your <sys/time.h> declares `struct tm'. */
322 #undef TM_IN_SYS_TIME
323
324 /* Version number of package */
325 #undef VERSION
326
327 /* Define to 1 if your processor stores words with the most significant byte
328    first (like Motorola and SPARC, unlike Intel and VAX). */
329 #undef WORDS_BIGENDIAN
330
331 /* Define to 1 if on AIX 3.
332    System headers sometimes define this.
333    We just want to avoid a redefinition error message.  */
334 #ifndef _ALL_SOURCE
335 # undef _ALL_SOURCE
336 #endif
337
338 /* Define to 1 if on MINIX. */
339 #undef _MINIX
340
341 /* Define to 2 if the system does not provide POSIX.1 features except with
342    this defined. */
343 #undef _POSIX_1_SOURCE
344
345 /* Define to 1 if you need to in order for `stat' and other things to work. */
346 #undef _POSIX_SOURCE
347
348 /* Define like PROTOTYPES; this can be used by system headers. */
349 #undef __PROTOTYPES
350
351 /* Define to empty if `const' does not conform to ANSI C. */
352 #undef const
353
354 /* Define to `__inline__' or `__inline' if that's what the C compiler
355    calls it, or to nothing if 'inline' is not supported under any name.  */
356 #ifndef __cplusplus
357 #undef inline
358 #endif
359
360 /* Define to rpl_mkstemp if the replacement function should be used. */
361 #undef mkstemp
362
363 /* Define to `unsigned int' if <sys/types.h> does not define. */
364 #undef size_t
365
366 // Workaround for compilers with buggy for-loop scoping
367 // That's quite a few compilers actually including recent versions of
368 // Dec Alpha cxx, HP-UX CC and SGI CC.
369 // The trivial "if" statement provides the correct scoping to the 
370 // for loop
371
372 #ifdef CXX_HAS_BUGGY_FOR_LOOPS
373 #undef for
374 #define for if(1) for
375 #endif
376
377
378 // If the C++ compiler we use doesn't have bool, then
379 // the following is a near-perfect work-around. 
380 // You must make sure your code does not depend on "int" and "bool"
381 // being two different types, in overloading for instance.
382
383 #ifdef CXX_HAS_NO_BOOL
384 #define bool int
385 #define true 1
386 #define false 0
387 #endif
388
389
390
391 #ifndef HAVE_TRUNC
392 #include <math.h>
393 inline static double trunc(double x)
394 {
395   return x >= 0 ? floor(x) : ceil(x);
396 }
397 #endif
398
399 #ifndef HAVE_EXP10
400 #include <math.h>
401 inline static double exp10(double x)
402 {
403   return pow(10.0, x);
404 }
405 #endif
406
407
408
409 /* Define missing prototypes, implemented in replacement lib */
410 #ifdef  __cplusplus
411 extern "C" {
412 #endif
413
414 #ifndef HAVE_GETOPT
415 int getopt (int argc, char * const argv[], const char * optstring);
416 extern char * optarg;
417 extern int optind, opterr, optopt;
418 #endif
419
420 #ifndef HAVE_USLEEP
421 int usleep(unsigned long usec); /* SUSv2 */
422 #endif
423
424 #ifndef HAVE_NANOSLEEP
425 #ifndef HAVE_STRUCT_TIMESPEC
426 #if HAVE_SYS_TYPES_H
427 # include <sys/types.h> /* need time_t */
428 #endif
429 struct timespec {
430         time_t  tv_sec;
431         long    tv_nsec;
432 };
433 #endif
434 static inline int nanosleep(const struct timespec *req, struct timespec *rem) { return usleep(req->tv_sec*1000000+req->tv_nsec/1000); }
435 #endif
436
437 #if defined(HAVE_SSLEEP) && !defined(HAVE_SLEEP)
438 #ifdef HAVE_WINBASE_H
439 #include <windows.h>
440 #include <winbase.h>
441 #endif
442 /* TODO: what about SleepEx? */
443 static inline unsigned int sleep (unsigned int nb_sec) { Sleep(nb_sec*1000); return 0; }
444 #endif
445
446 #ifndef HAVE_GETTIMEOFDAY
447 #ifdef HAVE_SYS_TIME_H
448 #include <sys/time.h>
449 #endif
450 #ifndef HAVE_STRUCT_TIMEZONE
451 struct timezone {
452         int  tz_minuteswest;
453         int  tz_dsttime;
454 };
455 #endif
456 int gettimeofday(struct timeval *tv, struct timezone *tz);
457 #endif
458
459 #if !defined(HAVE_RANDOM) && defined(HAVE_RAND)
460 #include <stdlib.h>
461 static inline long int random (void) { return rand(); }
462 #endif
463
464 #if !defined(HAVE_SRANDOM) && defined(HAVE_SRAND)
465 static inline void srandom (unsigned int seed) { srand(seed); }
466 #endif
467
468 #ifndef HAVE_SSIZE_T
469 typedef size_t ssize_t;
470 #endif
471
472 #ifdef  __cplusplus
473 }
474 #endif
475
476
477
478   #ifndef HAVE_MKSTEMP
479   #ifdef  __cplusplus
480   extern "C" {
481   #endif
482   int rpl_mkstemp (char *templ);
483   #ifdef  __cplusplus
484   }
485   #endif
486   #endif
487