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