[45e35b] | 1 | AC_DEFUN([SING_CHECK_ARITH_RINGS], |
---|
| 2 | [ |
---|
[8ddc676] | 3 | AC_MSG_CHECKING(whether arithmetical rings should be enabled) |
---|
[45e35b] | 4 | |
---|
[461f40] | 5 | AC_ARG_ENABLE(arith-rings, AS_HELP_STRING([--disable-arith-rings], [Disable arithmetical rings]), |
---|
[45e35b] | 6 | [if test $enableval = yes; then |
---|
| 7 | ENABLE_RINGS="yes" |
---|
| 8 | else |
---|
| 9 | ENABLE_RINGS="no" |
---|
| 10 | fi |
---|
| 11 | ],[ENABLE_RINGS="yes"]) |
---|
| 12 | |
---|
| 13 | if test x$ENABLE_RINGS = xyes; then |
---|
| 14 | AC_DEFINE(HAVE_RINGS,1,Enable arithmetical rings) |
---|
| 15 | fi |
---|
| 16 | |
---|
| 17 | AM_CONDITIONAL([ENABLE_RINGS],[test x$ENABLE_RINGS = xyes]) |
---|
| 18 | AC_MSG_RESULT($ENABLE_RINGS) |
---|
| 19 | ]) |
---|
| 20 | |
---|
| 21 | AC_DEFUN([SING_CHECK_FACTORY], |
---|
| 22 | [ |
---|
[8ddc676] | 23 | AC_MSG_CHECKING(whether factory should be enabled) |
---|
[45e35b] | 24 | |
---|
[461f40] | 25 | AC_ARG_ENABLE(factory, AS_HELP_STRING([--disable-factory], [Disable factory]), |
---|
[45e35b] | 26 | [if test $enableval = yes; then |
---|
| 27 | ENABLE_FACTORY="yes" |
---|
| 28 | else |
---|
| 29 | ENABLE_FACTORY="no" |
---|
| 30 | fi |
---|
[fa1d48] | 31 | ],[ENABLE_FACTORY="yes"]) |
---|
[45e35b] | 32 | |
---|
| 33 | if test x$ENABLE_FACTORY = xyes; then |
---|
[148d3c] | 34 | FACTORY_CFLAGS="" |
---|
| 35 | FACTORY_LIBS="-lfactory" |
---|
| 36 | |
---|
| 37 | AC_SUBST(FACTORY_CFLAGS) |
---|
| 38 | AC_SUBST(FACTORY_LIBS) |
---|
| 39 | |
---|
[45e35b] | 40 | AC_DEFINE(HAVE_FACTORY,1,Enable factory) |
---|
| 41 | fi |
---|
| 42 | |
---|
[148d3c] | 43 | |
---|
| 44 | |
---|
[45e35b] | 45 | AM_CONDITIONAL([ENABLE_FACTORY],[test x$ENABLE_FACTORY = xyes]) |
---|
| 46 | AC_MSG_RESULT($ENABLE_FACTORY) |
---|
| 47 | ]) |
---|
| 48 | |
---|
| 49 | AC_DEFUN([SING_CHECK_PLURAL], |
---|
| 50 | [ |
---|
[8ddc676] | 51 | AC_MSG_CHECKING(whether non-commutative subsystem should be enabled) |
---|
[45e35b] | 52 | |
---|
[461f40] | 53 | AC_ARG_ENABLE(plural, AS_HELP_STRING([--disable-plural], [Disable non-commutative subsystem]), |
---|
[45e35b] | 54 | [if test $enableval = yes; then |
---|
| 55 | ENABLE_PLURAL="yes" |
---|
| 56 | else |
---|
| 57 | ENABLE_PLURAL="no" |
---|
| 58 | fi |
---|
| 59 | ],[ENABLE_PLURAL="yes"]) |
---|
| 60 | |
---|
| 61 | if test x$ENABLE_PLURAL = xyes; then |
---|
| 62 | AC_DEFINE(HAVE_PLURAL,1,Enable non-commutative subsystem) |
---|
[662167] | 63 | #TODO make a seperate switch |
---|
| 64 | AC_DEFINE(HAVE_SHIFTBBA,1,Enable letterplace) |
---|
[45e35b] | 65 | fi |
---|
| 66 | |
---|
| 67 | AM_CONDITIONAL([ENABLE_PLURAL],[test x$ENABLE_PLURAL = xyes]) |
---|
| 68 | |
---|
| 69 | AC_MSG_RESULT($ENABLE_PLURAL) |
---|
| 70 | ]) |
---|