My Project  debian-1:4.1.2-p1+ds-2
factoryconf.h
Go to the documentation of this file.
1 /* factoryconf.h automatically generated by makeheader from factoryconf.template */
2 /* emacs edit mode for this file is -*- C -*- */
3 
4 #ifndef INCL_FACTORYCONF_H
5 #define INCL_FACTORYCONF_H
6 
7 /* template to generate `factoryconf.h'. */
8 
9 /**
10 *
11 * @file factoryconf.h
12 *
13 * `factoryconf.h' serves as a configuration file for the
14 * installed source files (templates and `factory.h') the same
15 * way as `config.h' serves as a configuration file for the
16 * source files from which the library is build. Additionally,
17 * we paste a copy of our `cf_assert.h' into this file which is
18 * necessary for the templates to translate.
19 *
20 **/
21 #include "factory/globaldefs.h"
22 
23 /* stuff included from ./config.h */
24 
25 #ifndef _FACTORY_CONFIG_H
26 #define _FACTORY_CONFIG_H 1
27 
28 /* config.h. Generated automatically at end of configure. */
29 
30 /* _config.h. Generated from _config.h.in by configure. */
31 /* _config.h.in. Generated from configure.ac by autoheader. */
32 
33 /* define to use "configurable inline methods" (see cf_inline.cc) */
34 #ifndef CF_USE_INLINE
35 #define CF_USE_INLINE 1
36 #endif
37 
38 /* define if you want to have debugging output */
39 /* #undef DEBUGOUTPUT */
40 
41 /* DISABLE_GMP_CPP */
42 #ifndef DISABLE_GMP_CPP
43 #define DISABLE_GMP_CPP 1
44 #endif
45 
46 /* factory configuration */
47 #ifndef FACTORYCONFIGURATION
48 #define FACTORYCONFIGURATION "' '--disable-option-checking' '--prefix=/usr' '--build=x86_64-linux-gnu' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/singular-Rp00A6/singular-4.1.2-p1+ds=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/singular-Rp00A6/singular-4.1.2-p1+ds=. -fstack-protector-strong -Wformat -Werror=format-security' '--enable-omalloc' 'OMALLOC_LIBS=/build/singular-Rp00A6/singular-4.1.2-p1+ds/omalloc/libsingular-omalloc.la' 'OMALLOC_INCLUDES=-I/build/singular-Rp00A6/singular-4.1.2-p1+ds' '--with-Singular' 'RESOURCES_LIBS=/build/singular-Rp00A6/singular-4.1.2-p1+ds/resources/libsingular-resources.la' 'RESOURCES_INCLUDES=-I/build/singular-Rp00A6/singular-4.1.2-p1+ds ' 'FACTORY_LIBS=/build/singular-Rp00A6/singular-4.1.2-p1+ds/factory/libsingular-factory.la' 'FACTORY_INCLUDES=-I/build/singular-Rp00A6/singular-4.1.2-p1+ds -I/build/singular-Rp00A6/singular-4.1.2-p1+ds/factory/include' '--cache-file=/dev/null' '--srcdir=.'' in /build/singular-Rp00A6/singular-4.1.2-p1+ds/factory"
49 #endif
50 
51 /* factory version */
52 #ifndef FACTORYVERSION
53 #define FACTORYVERSION "4.1.1"
54 #endif
55 
56 /* Define if GMP is version 3.xxx */
57 /* #undef GMP_VERSION_3 */
58 
59 /* Define to 1 if you have the <cstdio> header file. */
60 #ifndef HAVE_CSTDIO
61 #define HAVE_CSTDIO 1
62 #endif
63 
64 /* Define to 1 if you have the <ctype.h> header file. */
65 /* #undef HAVE_CTYPE_H */
66 
67 /* Define to 1 if you have the <dlfcn.h> header file. */
68 #ifndef HAVE_DLFCN_H
69 #define HAVE_DLFCN_H 1
70 #endif
71 
72 /* Define to 1 if you have the <errno.h> header file. */
73 /* #undef HAVE_ERRNO_H */
74 
75 /* Define if FLINT is installed */
76 #ifndef HAVE_FLINT
77 #define HAVE_FLINT 1
78 #endif
79 
80 /* Define to 1 if you have the <fstream> header file. */
81 /* #undef HAVE_FSTREAM */
82 
83 /* Define to 1 if you have the <fstream.h> header file. */
84 /* #undef HAVE_FSTREAM_H */
85 
86 /* Define if GMP is installed */
87 #ifndef HAVE_GMP
88 #define HAVE_GMP 1
89 #endif
90 
91 /* Define to 1 if you have the <inttypes.h> header file. */
92 #ifndef HAVE_INTTYPES_H
93 #define HAVE_INTTYPES_H 1
94 #endif
95 
96 /* Define to 1 if you have the <iostream> header file. */
97 /* #undef HAVE_IOSTREAM */
98 
99 /* Define to 1 if you have the <iostream.h> header file. */
100 /* #undef HAVE_IOSTREAM_H */
101 
102 /* Define to 1 if you have the `m' library (-lm). */
103 #ifndef HAVE_LIBM
104 #define HAVE_LIBM 1
105 #endif
106 
107 /* Define to 1 if you have the <math.h> header file. */
108 #ifndef HAVE_MATH_H
109 #define HAVE_MATH_H 1
110 #endif
111 
112 /* Define to 1 if you have the <memory.h> header file. */
113 #ifndef HAVE_MEMORY_H
114 #define HAVE_MEMORY_H 1
115 #endif
116 
117 /* Define if NTL is installed */
118 #ifndef HAVE_NTL
119 #define HAVE_NTL 1
120 #endif
121 
122 /* define if build with OMALLOC */
123 #ifndef HAVE_OMALLOC
124 #define HAVE_OMALLOC 1
125 #endif
126 
127 /* Define to 1 if you have the <omalloc/omalloc.h> header file. */
128 /* #undef HAVE_OMALLOC_OMALLOC_H */
129 
130 /* Define to 1 if you have the <signal.h> header file. */
131 /* #undef HAVE_SIGNAL_H */
132 
133 /* Define to 1 if you have the <stdarg.h> header file. */
134 /* #undef HAVE_STDARG_H */
135 
136 /* Define to 1 if you have the <stdint.h> header file. */
137 #ifndef HAVE_STDINT_H
138 #define HAVE_STDINT_H 1
139 #endif
140 
141 /* Define to 1 if you have the <stdio.h> header file. */
142 #ifndef HAVE_STDIO_H
143 #define HAVE_STDIO_H 1
144 #endif
145 
146 /* Define to 1 if you have the <stdlib.h> header file. */
147 #ifndef HAVE_STDLIB_H
148 #define HAVE_STDLIB_H 1
149 #endif
150 
151 /* Define to 1 if you have the <string> header file. */
152 /* #undef HAVE_STRING */
153 
154 /* Define to 1 if you have the <strings.h> header file. */
155 #ifndef HAVE_STRINGS_H
156 #define HAVE_STRINGS_H 1
157 #endif
158 
159 /* Define to 1 if you have the <string.h> header file. */
160 #ifndef HAVE_STRING_H
161 #define HAVE_STRING_H 1
162 #endif
163 
164 /* Define to 1 if you have the <strstream.h> header file. */
165 /* #undef HAVE_STRSTREAM_H */
166 
167 /* Define to 1 if you have the <sys/param.h> header file. */
168 /* #undef HAVE_SYS_PARAM_H */
169 
170 /* Define to 1 if you have the <sys/stat.h> header file. */
171 #ifndef HAVE_SYS_STAT_H
172 #define HAVE_SYS_STAT_H 1
173 #endif
174 
175 /* Define to 1 if you have the <sys/times.h> header file. */
176 /* #undef HAVE_SYS_TIMES_H */
177 
178 /* Define to 1 if you have the <sys/types.h> header file. */
179 #ifndef HAVE_SYS_TYPES_H
180 #define HAVE_SYS_TYPES_H 1
181 #endif
182 
183 /* Define to 1 if you have the <time.h> header file. */
184 #ifndef HAVE_TIME_H
185 #define HAVE_TIME_H 1
186 #endif
187 
188 /* Define to 1 if you have the <unistd.h> header file. */
189 #ifndef HAVE_UNISTD_H
190 #define HAVE_UNISTD_H 1
191 #endif
192 
193 /* Define to the sub-directory where libtool stores uninstalled libraries. */
194 #ifndef LT_OBJDIR
195 #define LT_OBJDIR ".libs/"
196 #endif
197 
198 /* define if you do not want to activate assertions */
199 /* #undef NOASSERT */
200 
201 /* define to build factory without stream IO */
202 #ifndef NOSTREAMIO
203 #define NOSTREAMIO 1
204 #endif
205 
206 /* "Disable OM Debug" */
207 #ifndef OM_NDEBUG
208 #define OM_NDEBUG 1
209 #endif
210 
211 /* Name of package */
212 #ifndef PACKAGE
213 #define PACKAGE "factory"
214 #endif
215 
216 /* Define to the address where bug reports for this package should be sent. */
217 #ifndef PACKAGE_BUGREPORT
218 #define PACKAGE_BUGREPORT ""
219 #endif
220 
221 /* Define to the full name of this package. */
222 #ifndef PACKAGE_NAME
223 #define PACKAGE_NAME "factory"
224 #endif
225 
226 /* Define to the full name and version of this package. */
227 #ifndef PACKAGE_STRING
228 #define PACKAGE_STRING "factory 4.1.2"
229 #endif
230 
231 /* Define to the one symbol short name of this package. */
232 #ifndef PACKAGE_TARNAME
233 #define PACKAGE_TARNAME "factory"
234 #endif
235 
236 /* Define to the home page for this package. */
237 #ifndef PACKAGE_URL
238 #define PACKAGE_URL ""
239 #endif
240 
241 /* Define to the version of this package. */
242 #ifndef PACKAGE_VERSION
243 #define PACKAGE_VERSION "4.1.2"
244 #endif
245 
246 /* define if linked to Singular */
247 #ifndef SINGULAR
248 #define SINGULAR 1
249 #endif
250 
251 /* SINGULAR_CFLAGS */
252 #ifndef SINGULAR_CFLAGS
253 #define SINGULAR_CFLAGS "-DSING_NDEBUG -DOM_NDEBUG"
254 #endif
255 
256 /* "Disable Singular Debug" */
257 #ifndef SING_NDEBUG
258 #define SING_NDEBUG 1
259 #endif
260 
261 /* The size of `long', as computed by sizeof. */
262 #ifndef SIZEOF_LONG
263 #define SIZEOF_LONG 8
264 #endif
265 
266 /* Define to 1 if you have the ANSI C header files. */
267 #ifndef STDC_HEADERS
268 #define STDC_HEADERS 1
269 #endif
270 
271 /* define if you want to activate the timing stuff */
272 /* #undef TIMING */
273 
274 /* Version number of package */
275 #ifndef VERSION
276 #define VERSION "4.1.2"
277 #endif
278 
279 /* Define to empty if `const' does not conform to ANSI C. */
280 /* #undef const */
281 
282 /* Define to `__inline__' or `__inline' if that's what the C compiler
283  calls it, or to nothing if 'inline' is not supported under any name. */
284 #ifndef __cplusplus
285 /* #undef inline */
286 #endif
287 
288 /* once: _FACTORY_CONFIG_H */
289 #endif
290 
291 /* stuff included from ./cf_assert.h */
292 
293 /* emacs edit mode for this file is -*- C -*- */
294 
295 /**
296  * @file cf_assert.h
297  *
298  * assertions for Factory
299  *
300  * @note needs --enable-assertions at configure
301 **/
302 
303 /* This is for compatibility with standard cf_assert.h */
304 #if defined (SING_NDEBUG) && ! defined (NOASSERT)
305 #define NOASSERT
306 #endif
307 
308 /* It should be possible to include this file multiple times for different */
309 /* settings of NOASSERT */
310 
311 /* {{{ undefines */
312 #undef __ASSERT
313 #undef __ASSERT1
314 #undef STICKYASSERT
315 #undef STICKYASSERT1
316 #undef ASSERT
317 #undef ASSERT1
318 
319 #undef __WARN
320 #undef STICKYWARN
321 #undef WARN
322 
323 #undef PVIRT_VOID
324 #undef PVIRT_INTCF
325 #undef PVIRT_BOOL
326 #undef PVIRT_INT
327 #undef PVIRT_CHARCC
328 /* }}} */
329 
330 #ifdef __cplusplus
331 #ifndef NOSTREAMIO
332 #ifdef HAVE_CSTDIO
333 #include <cstdio>
334 #include <cstdlib>
335 #else
336 extern "C" {
337 #include <stdio.h>
338 #include <stdlib.h>
339 }
340 #endif
341 #else
342 #include <stdio.h>
343 #include <stdlib.h>
344 #endif
345 #endif
346 
347 /* {{{ permanent macro definitions */
348 #ifndef __GNUC__
349 #define __ASSERT(expression, message, file, line) \
350 (fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
351  file, line, expression ), abort(), 0 )
352 #define __ASSERT1(expression, message, parameter1, file, line) \
353 (fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
354  parameter1, file, line, expression ), abort(), 0 )
355 
356 #define STICKYASSERT(expression, message) \
357 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
358 #define STICKYASSERT1(expression, message, parameter1) \
359 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
360 
361 #define __WARN(expression, message, file, line) \
362 (fprintf( stderr, "warning: " message "\n%s:%u: failed assertion `%s'\n", \
363  file, line, expression ), 0 )
364 #define STICKYWARN(expression, message) \
365 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
366 #else /* __GNUCC__ */
367 /* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
368 #define __ASSERT(expression, message, file, line, function) \
369 (fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
370  file, line, function, expression ), abort(), 0 )
371 #define __ASSERT1(expression, message, parameter1, file, line, function) \
372 (fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
373  parameter1, file, line, function, expression ), abort(), 0 )
374 
375 #define STICKYASSERT(expression, message) \
376 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
377 #define STICKYASSERT1(expression, message, parameter1) \
378 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
379 
380 #define __WARN(expression, message, file, line, function) \
381 (fprintf( stderr, "warning: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
382  file, line, function, expression ), 0 )
383 #define STICKYWARN(expression, message) \
384 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
385 #endif /* __GNUCC__ */
386 /* }}} */
387 
388 /* {{{ macro definitions dependent on NOASSERT */
389 #ifndef NOASSERT
390 #ifndef __GNUC__
391 #define ASSERT(expression, message) \
392 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
393 #define ASSERT1(expression, message, parameter1) \
394 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
395 
396 #define WARN(expression, message) \
397 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
398 #else /* __GNUCC__ */
399 /* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
400 #define ASSERT(expression, message) \
401 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
402 #define ASSERT1(expression, message, parameter1) \
403 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
404 
405 #define WARN(expression, message) \
406 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
407 #endif /* __GNUCC__ */
408 
409 #define PVIRT_VOID(msg) \
410 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); }
411 #define PVIRT_INTCF(msg) \
412 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
413 #define PVIRT_BOOL(msg) \
414 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return false; }
415 #define PVIRT_INT(msg) \
416 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
417 #define PVIRT_CHARCC(msg) \
418 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
419 #else /* NOASSERT */
420 #define ASSERT(expression, message) do {} while (0)
421 #define ASSERT1(expression, message, parameter1) do {} while (0)
422 
423 #define WARN(expression, message) do {} while (0)
424 
425 #define PVIRT_VOID(msg) = 0
426 #define PVIRT_INTCF(msg) = 0
427 #define PVIRT_BOOL(msg) = 0
428 #define PVIRT_INT(msg) = 0
429 #define PVIRT_CHARCC(msg) = 0
430 #endif /* NOASSERT */
431 /* }}} */
432 
433 #endif /* ! INCL_FACTORYCONF_H */
globaldefs.h