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