source: git/m4/options.m4 @ fa1d48

spielwiese
Last change on this file since fa1d48 was fa1d48, checked in by mlee <martinlee84@…>, 13 years ago
enabled factory by default and included factory.h in coeffs.h
  • Property mode set to 100644
File size: 1.5 KB
Line 
1AC_DEFUN([SING_CHECK_ARITH_RINGS],
2[
3AC_MSG_CHECKING(whether arithmetical rings should be enabled)
4
5AC_ARG_ENABLE(arith-rings,
6[  --enable-arith-rings Enable arithmetical rings
7],
8[if test $enableval = yes; then
9     ENABLE_RINGS="yes"
10 else
11     ENABLE_RINGS="no"
12 fi
13],[ENABLE_RINGS="yes"])
14
15if test x$ENABLE_RINGS = xyes; then
16  AC_DEFINE(HAVE_RINGS,1,Enable arithmetical rings)
17fi
18
19AM_CONDITIONAL([ENABLE_RINGS],[test x$ENABLE_RINGS = xyes])
20AC_MSG_RESULT($ENABLE_RINGS)
21])
22
23AC_DEFUN([SING_CHECK_FACTORY],
24[
25AC_MSG_CHECKING(whether factory should be enabled)
26
27AC_ARG_ENABLE(factory,
28[  --enable-factory Enable factory
29],
30[if test $enableval = yes; then
31     ENABLE_FACTORY="yes"
32 else
33     ENABLE_FACTORY="no"
34 fi
35],[ENABLE_FACTORY="yes"])
36
37if test x$ENABLE_FACTORY = xyes; then
38  FACTORY_CFLAGS=""
39  FACTORY_LIBS="-lfactory"
40
41  AC_SUBST(FACTORY_CFLAGS)
42  AC_SUBST(FACTORY_LIBS)
43 
44  AC_DEFINE(HAVE_FACTORY,1,Enable factory)
45fi
46
47
48
49AM_CONDITIONAL([ENABLE_FACTORY],[test x$ENABLE_FACTORY = xyes])
50AC_MSG_RESULT($ENABLE_FACTORY)
51])
52
53AC_DEFUN([SING_CHECK_PLURAL],
54[
55AC_MSG_CHECKING(whether non-commutative subsystem should be enabled)
56
57AC_ARG_ENABLE(plural,
58[  --enable-plural Enable non-commutative subsystem
59],
60[if test $enableval = yes; then
61     ENABLE_PLURAL="yes"
62 else
63     ENABLE_PLURAL="no"
64 fi
65],[ENABLE_PLURAL="yes"])
66
67if test x$ENABLE_PLURAL = xyes; then
68  AC_DEFINE(HAVE_PLURAL,1,Enable non-commutative subsystem)
69fi
70
71AM_CONDITIONAL([ENABLE_PLURAL],[test x$ENABLE_PLURAL = xyes])
72
73AC_MSG_RESULT($ENABLE_PLURAL)
74])
Note: See TracBrowser for help on using the repository browser.