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