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