/******************************************************************* * Computer Algebra System SINGULAR * * mod2.h: Main configuration file for Singular * DO NOT EDIT! * *******************************************************************/ #ifndef MOD2_H #define MOD2_H /******************************************************************* * Defines which are set by configure ******************************************************************/ /* Define if you have TeXInfo */ #undef HAVE_INFO /* Define to use readline lib for fancy display */ #undef HAVE_READLINE /* Define to use built-in command line parser */ #undef HAVE_FEREAD /* Define if you want to use dld's */ #undef HAVE_DLD /* Define to have dbm links */ #undef HAVE_DBM /* Define to use gmp for rational arithmetic */ #undef HAVE_GMP /* Define to have smallgmp */ #undef HAVE_SMALLGMP /* Define to have MP links */ #undef HAVE_MPSR /* Define to have factory functionality added */ #undef HAVE_FACTORY /* Define to have libfac functionality added */ #undef HAVE_LIBFAC_P /* Define if you have stdc headers */ #undef STDC_HEADERS /* Define if you have sys/file.h */ #undef HAVE_SYS_FILE_H /* Define if you have sys/param.h */ #undef HAVE_SYS_PARAM_H /* Define if you have sys/file.h */ #undef HAVE_SYS_TYPES_H /* Define if you have sys/ioctl.h */ #undef HAVE_SYS_IOCTL_H /* Define if you have sys/time.h */ #undef HAVE_SYS_TIME_H /* Define if you have sys/times.h */ #undef HAVE_SYS_TIMES_H /* Define if time.h and sys/time.h can be included at the same time */ #undef TIME_WITH_SYS_TIME /* Define if you have alloca.h */ #undef HAVE_ALLOCA_H /* Define if you have pwd.h */ #undef HAVE_PWD_H /* Define if you have alloca */ #undef HAVE_ALLOCA /* Define if you have getpagesize */ #undef GETPAGESIZE /* Define if you have vprintf */ #undef HAVE_VPRINTF /* Define if you have gettimeofday */ #undef HAVE_GETTIMEOFDAY /* Define if you have strstr */ #undef HAVE_STRSTR /* Define if you have strtod */ #undef HAVE_STRTOD /* Define if you have strtol */ #undef HAVE_STRTOL /* Define if you have atexit */ #undef HAVE_ATEXIT /* Define if you have bcopy, bzero and bcmp Linux needs that define! */ #undef HAVE_BCOPY /* Define if sprintf does not return number of printed chars */ #undef BSD_SPRINTF /* Define if the `S_IS*' macros in do not work properly. */ #undef STAT_MACROS_BROKEN /* Define if you have the getcwd function. */ #undef HAVE_GETCWD /* Define if you have the getwd function. */ #undef HAVE_GETWD /* Define sizeof(char) */ #define SIZEOF_CHAR 1 /* Define sizeof(short) */ #define SIZEOF_SHORT 2 /* Define sizeof(int) */ #define SIZEOF_INT 4 /* Define sizeof(long) */ #define SIZEOF_LONG 4 /* Define sizeof(void*) */ #define SIZEOF_VOIDP 4 /* Define if your integer format is big endian */ #undef WORDS_BIGENDIAN /* Define the type of the exponents to be used in monomials */ #define EXPONENT_TYPE short /* Define the size of exponent */ #define SIZEOF_EXPONENT SIZEOF_SHORT /* Define major version of Singular -- should be set in configure.in!!!*/ #define SINGULAR_MAJOR_VERSION 0 /* Define minor version of Singular -- should be set in configure.in!!! */ #define SINGULAR_MINOR_VERSION 0 /* Define sub version of Singular -- should be set in configure.in!!! */ #define SINGULAR_SUB_VERSION 0 /* Define version as a string */ #define S_VERSION1 "" /* Define version date as a string */ #define S_VERSION2 "" /* Define the data directory where Singular searches for libs and gftables */ #define SINGULAR_DATADIR "/usr/local/share/Singular" /* Define the info directory where Singular searches for help files */ #define SINGULAR_INFODIR "/usr/local/info" /******************************************************************* * Defines which are not set by configure ******************************************************************/ /* Default value for timer resolution in ticks per second */ /* set to 10 for resolution of tenth of a second, etc */ #define TIMER_RESOLUTION 1 /* Undefine to disable the quote/eval of expressions */ #define SIQ 1 /* Define to enable TCL interface */ #undef HAVE_TCL /* Define to enable working in Weyl algebras */ #undef DRING /* Define to enable working in exterior algebras */ #undef SRING /* Undefine to disable Gerhard's and Wilfried's fast and dirty std computations */ #define FAST_AND_DIRTY /* works around a quirk in the generation of parser tables */ #define INIT_BUG /* Define to use new namespaces techniks */ #undef HAVE_NAMESPACES /* Define to use scanner when loading libraries */ #define HAVE_LIBPARSER /*#define PROFILING*/ #ifdef PROFILING #define PROFILER ,0,0 #else #define PROFILER #endif /******************************************************************* * Evaluate the set defines ******************************************************************/ /* FGLM needs factory */ #ifdef HAVE_FACTORY #define HAVE_FGLM #endif /* In case we do not have strstr, we provide our own version */ #ifndef HAVE_STRSTR char *strstr(const char *haystack, const char *needle); #endif /* Undefine to disable real time measurments */ #ifdef HAVE_GETTIMEOFDAY #if ! defined(macintosh) && ! defined(MSDOS) #define HAVE_RTIMER #else #undef HAVE_RTIMER #endif #endif #if SIZEOF_VOIDP == 8 #define ALIGN_8 #endif #define SINGULAR_VERSION (SINGULAR_MAJOR_VERSION*1000 + SINGULAR_MINOR_VERSION*100 + SINGULAR_SUB_VERSION) #ifdef DRING #define SDRING #endif #ifdef SRING #define SDRING #endif #if HAVE_INFO != 1 #define buildin_help 1 #endif #ifdef macintosh #ifndef buildin_help #define buildin_help 1 #endif #ifdef HAVE_GMP #define buildin_gmp 1 #endif #endif #if SIZEOF_EXPONENT == 1 #define MAX_EXPONENT 0x7f #elif SIZEOF_EXPONENT == 2 #define MAX_EXPONENT 0x7fff #else // SIZEOF_EXPONENT == 4 #define MAX_EXPONENT 0x7fffffff #endif /******************************************************************* * Miscellanous Defines ******************************************************************/ /* define MM_COUNT to enable "memory(0)" (resp. memory(1))*/ #define MM_COUNT 1 /* define YYDEBUG 1 for debugging bison texts, 0 otherwise */ #define YYDEBUG 0 #ifndef HAVE_LIBPARSER # undef YYLPDEBUG #else # define YYLPDEBUG 0 #endif #ifndef FALSE #define FALSE 0 #endif #ifndef TRUE #define TRUE 1 #endif #ifndef NULL #define NULL (0) #endif #ifndef SEEK_END #define SEEK_END 2 #endif #ifndef SEEK_SET #define SEEK_SET 0 #endif #define HALT() m2_end(2) #define memcpy4 memcpy /* define OLD_RES for res/sres/mres(i,j,k) */ #define OLD_RES /* the maximal ascii length of an int number + 1 = 11 for 32 bit int */ #define MAX_INT_LEN 11 extern int pShortOut; #ifdef DO_PROFILE /* define to enable explicit profiling of some crucial inline * routines and defines */ #define DO_DEEP_PROFILE #endif /******************************************************************* * DEBUG OPTIONS * -- only significant for for compiling without -DNDEBUG * -- you better know what your are doing, if you touch this ******************************************************************/ #define buildin_rand 1 #ifndef NDEBUG /* define MDEBUG 0 for checking Alloc/Free */ #define MDEBUG 0 /* define MDEBUG 1 for allowing to keep track of Alloc/Free */ /* undefine MMDEBUG otherwise */ /*#define MDEBUG 0 */ /* define MLIST for listing used blocks at programm end */ /* undefine otherwise */ /*#define MLIST */ /* define MM_BEFORE for also printing the previous block while debugging */ /*#define MM_BEFORE 1 */ /* define PDEBUG checking polys, undefine otherwise */ /* define PDEBUG 1 for additionally checking access to polys -- vewry slow !*/ #define PDEBUG 1 /* define KDEBUG checking during standard base computation */ #define KDEBUG /* define LDEBUG checking numbers, undefine otherwise */ #define LDEBUG /* define RDEBUG checking rings (together with TRACE=9) */ #define RDEBUG /* define TEST for non time critical tests, undefine otherwise */ #define TEST /* define MM_STAT for printing block stats */ /* #define MM_STAT 1 */ /* #define PAGE_TEST */ /* #define PAGE_COUNT */ /* Undefine to disable debugging of MP stuff */ #ifdef HAVE_MPSR #define MPSR_DEBUG #endif /* MLIST requires MDEBUG */ #ifdef MLIST #ifndef MDEBUG #define MDEBUG 0 #endif #endif /* PDEBUG requires MDEBUG */ #ifdef PDEBUG #ifndef MDEBUG #define MDEBUG 0 #endif #endif #ifdef TEST #ifndef buildin_rand #define buildin_rand 1 #endif #endif #ifdef PAGE_COUNT #define PAGE_TEST #endif #endif /* not NDEBUG */ #endif /* MOD2_H */