Debian Codegraph @

src/h/config-internal.h.in

raw
1 /* -*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*- */
2 /* vim: set filetype=c tabstop=8 shiftwidth=4 expandtab: */
3
4 /*
5 config-internal.h.in -- Template configuration file (not exported options).
6
7 Copyright (c) 1990, Giuseppe Attardi.
8 Copyright (c) 2001, Juan Jose Garcia Ripoll.
9
10 See top-level file 'LICENSE' for license details.
11 */
12
13 /* -------------------------------------------------------------------- *
14 * BUILD OPTIONS WHICH NEED NOT BE EXPORTED *
15 * -------------------------------------------------------------------- */
16
17 /*
18 * FEATURES LINKED IN:
19 */
20
21 /* Define this if you want a runtime version only without compiler */
22 #undef RUNTIME
23 /* Profile tool */
24 #undef PROFILE
25 /* Program Development Environment */
26 #undef PDE
27
28 /* Allow loading dynamically linked code */
29 #undef ENABLE_DLOPEN
30
31 /* Activate Boehm-Weiser incremental garbage collector */
32 #undef GBC_BOEHM_GENGC
33
34 /* Activate Boehm-Weiser precise garbage collector */
35 #undef GBC_BOEHM_PRECISE
36
37 /* Weak hash tables need the garbage collector and weak pointers */
38 #ifdef GBC_BOEHM
39 #define ECL_WEAK_HASH
40 #endif
41
42 /*
43 * SYSTEM FEATURES:
44 */
45
46 /* Most significant byte first */
47 #undef WORDS_BIGENDIAN
48 /* Has <sys/resource.h> */
49 #undef HAVE_SYS_RESOURCE_H
50 #undef HAVE_ULIMIT_H
51 /* High precision timer */
52 #undef HAVE_NANOSLEEP
53 /* Float version if isnan() */
54 #undef HAVE_ISNANF
55 /* float.h for epsilons, maximum real numbers, etc */
56 #undef HAVE_FLOAT_H
57 /* select() */
58 #ifndef NACL
59 #undef HAVE_SELECT
60 #endif
61 #undef HAVE_SYS_SELECT_H
62 #undef HAVE_SYS_IOCTL_H
63 /* putenv() or setenv() */
64 #undef HAVE_SETENV
65 #undef HAVE_PUTENV
66 /* times() and sys/times.h */
67 #ifndef NACL
68 #undef HAVE_TIMES
69 #endif
70 /* gettimeofday() and sys/time.h */
71 #undef HAVE_GETTIMEOFDAY
72 /* clock_gettime() */
73 #undef HAVE_CLOCK_GETTIME
74 /* getrusage() and sys/resource.h */
75 #ifndef NACL
76 #undef HAVE_GETRUSAGE
77 #endif
78 /* user home directory, user name, etc... */
79 #undef HAVE_PW_H
80 /* symbolic links and checking their existence */
81 #ifndef NACL
82 #undef HAVE_LSTAT
83 #endif
84 /* safe creation of temporary files */
85 #undef HAVE_MKSTEMP
86 /* timer for userland threads */
87 #undef HAVE_ALARM
88 /* filesytem */
89 #undef HAVE_DIRENT_H
90 /* dynamic linking of libraries */
91 #undef HAVE_DLFCN_H
92 #undef HAVE_LINK_H
93 #undef HAVE_MACH_O_DYLD_H
94 /* POSIX signals */
95 #ifndef NACL
96 #undef HAVE_SIGPROCMASK
97 #endif
98 /* isatty() checks whether a file is connected to a */
99 #undef HAVE_ISATTY
100 /* do we want to have signed zeros */
101 #undef ECL_SIGNED_ZERO
102 /* has support for large files */
103 #undef HAVE_FSEEKO
104 /* the tzset() function gets the current time zone */
105 #undef HAVE_TZSET
106 /* several floating point functions (ISO C99) */
107 #undef HAVE_EXPF
108 #undef HAVE_LOGF
109 #undef HAVE_SQRTF
110 #undef HAVE_COSF
111 #undef HAVE_SINF
112 #undef HAVE_TANF
113 #undef HAVE_SINHF
114 #undef HAVE_COSHF
115 #undef HAVE_TANHF
116 #undef HAVE_FLOORF
117 #undef HAVE_CEILF
118 #undef HAVE_FABSF
119 #undef HAVE_FREXPF
120 #undef HAVE_LDEXPF
121 #undef HAVE_LOG1P
122 #undef HAVE_LOG1PF
123 #undef HAVE_LOG1PL
124 #undef HAVE_COPYSIGNF
125 #undef HAVE_COPYSIGN
126 #undef HAVE_COPYSIGNL
127 /* whether we have sched_yield() that gives priority to other threads */
128 #undef HAVE_SCHED_YIELD
129 /* whether we have a working sem_init() */
130 #undef HAVE_SEM_INIT
131 /* whether we have mutex lock operations with timeout */
132 #undef HAVE_PTHREAD_MUTEX_TIMEDLOCK
133 /* whether we can set the clock for timed waits on condition variables */
134 #undef HAVE_PTHREAD_CONDATTR_SETCLOCK
135 /* uname() for system identification */
136 #undef HAVE_UNAME
137 #undef HAVE_UNISTD_H
138 #undef HAVE_SYS_WAIT_H
139 #undef HAVE_SYS_MMAN_H
140 /* size of long long */
141 #undef ECL_LONG_LONG_BITS
142 /* existence of char **environ */
143 #undef HAVE_ENVIRON
144 /* existence of pointer -> function name functions */
145 #undef HAVE_BACKTRACE
146 #undef HAVE_BACKTRACE_SYMBOLS
147 #undef HAVE_SCHED_H
148 #undef HAVE_SYSTEM
149
150 /* what characters are used to mark beginning of new line */
151 #undef ECL_NEWLINE_IS_CRLF
152 #undef ECL_NEWLINE_IS_LFCR
153
154 /*
155 * PARAMETERS:
156 */
157
158 /*
159 * Memory limits for the old garbage collector.
160 */
161 #define LISP_PAGESIZE 2048 /* Page size in bytes */
162 #define MAXPAGE 65536 /* Maximum Memory Size */
163
164 /* We allocate a number of strings in a pool which is used to speed up reading */
165 #define ECL_MAX_STRING_POOL_SIZE 10
166 #define ECL_BUFFER_STRING_SIZE 4192
167
168 /*
169 * Macros that depend on these system features.
170 */
171 #if defined(sparc) || defined(i386) || defined(mips)
172 # define stack_align(n) (((n) + 0x7) & ~0x7)
173 #else
174 # define stack_align(n) (((n) + 03) & ~03)
175 #endif
176
177 #undef FILE_CNT
178 #if @ECL_FILE_CNT@ == 1
179 # include <stdio_ext.h>
180 # define FILE_CNT(fp) (__freadahead((fp)))
181 #endif
182 #if @ECL_FILE_CNT@ == 2
183 # define FILE_CNT(fp) ((fp)->_IO_read_end - (fp)->_IO_read_ptr)
184 #endif
185 #if @ECL_FILE_CNT@ == 3
186 # define FILE_CNT(fp) ((fp)->_r)
187 #endif
188 #if @ECL_FILE_CNT@ == 4
189 # define FILE_CNT(fp) ((fp)->_cnt)
190 #endif
191
192 #if defined(cygwin) || defined(ECL_MS_WINDOWS_HOST)
193 # define IS_DIR_SEPARATOR(x) ((x=='/')||(x=='\\'))
194 # define DIR_SEPARATOR '/'
195 # define PATH_SEPARATOR ';'
196 #else
197 # define IS_DIR_SEPARATOR(x) (x=='/')
198 # define DIR_SEPARATOR '/'
199 # define PATH_SEPARATOR ':'
200 #endif
201
202 #define ECL_ARCHITECTURE "@ARCHITECTURE@"
203
204 #ifdef ECL_AVOID_FPE_H
205 # define ecl_detect_fpe()
206 #else
207 # include "@ECL_FPE_CODE@"
208 #endif
209
210 #ifdef ECL_INCLUDE_MATH_H
211 # include <math.h>
212 # ifdef _MSC_VER
213 # undef complex
214 # define signbit(x) (copysign(1.0,(x)))
215 # endif
216 # ifndef isfinite
217 # error "Function isfinite() is missing"
218 # endif
219 # ifndef signbit
220 # ifndef ECL_SIGNED_ZERO
221 # define signbit(x) ((x) < 0)
222 # else
223 # ifdef HAVE_COPYSIGN
224 # define signbit(x) (copysign(1.0,(x)) < 0)
225 # else
226 /* Fall back to no signed zero */
227 # undef \
228 ECL_SIGNED_ZERO
229 # define signbit(x) ((x) < 0)
230 # endif
231 # endif
232 # endif
233 /*
234 * GCC fails to compile the following code
235 * if (f == 0.0) { if (signbit(f)) ... }
236 */
237 # if defined(__sun__) && defined(__GNUC__)
238 # undef \
239 signbit /* Avoid autoconf removing this */
240 # define signbit(x) (copysign(1.0,(x)) < 0)
241 # endif
242 #endif
243
244 #if defined(HAVE_LIBFFI) && defined(ECL_INCLUDE_FFI_H)
245 #include "@ECL_LIBFFI_HEADER@"
246 #endif
247
248 /* Can we determine and set the stack size at runtime? */
249 #undef ECL_CAN_SET_STACK_SIZE
250
251 #if defined(ECL_CAN_SET_STACK_SIZE)
252 #define ECL_DEFAULT_C_STACK_SIZE 0 /* Use the stack size provided by the OS */
253 #else
254 #define ECL_DEFAULT_C_STACK_SIZE @ECL_DEFAULT_C_STACK_SIZE@
255 #endif