1 AC_INIT(matitaTypes.ml)
3 # Distribution settings (i.e. settings to be manipulated before a release)
5 RT_BASE_DIR_DEFAULT="`pwd`"
7 # End of distribution settings
9 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
10 if test $HAVE_OCAMLC = "no"; then
11 AC_MSG_ERROR(could not find ocamlc)
13 AC_CHECK_PROG(HAVE_OCAMLOPT, ocamlopt, yes, no)
14 if test $HAVE_OCAMLOPT = "no"; then
15 AC_MSG_WARN(could not find ocamlopt: native code compilation disabled)
17 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
18 if test $HAVE_OCAMLFIND = "yes"; then
21 AC_MSG_ERROR(could not find ocamlfind)
23 AC_CHECK_PROG(HAVE_LABLGLADECC, lablgladecc2, yes, no)
24 if test $HAVE_LABLGLADECC = "yes"; then
25 LABLGLADECC="lablgladecc2"
27 AC_MSG_ERROR(could not find lablgladecc2)
29 AC_CHECK_PROG(HAVE_CAMLP4O, camlp4o, yes, no)
30 if test $HAVE_CAMLP4O = "yes"; then
33 AC_MSG_ERROR(could not find camlp4o)
35 FINDLIB_COMREQUIRES="\
36 helm-cic_disambiguation \
43 FINDLIB_CLEANREQUIRES="$FINDLIB_COMREQUIRES"
44 FINDLIB_DEPREQUIRES="$FINDLIB_COMREQUIRES"
45 FINDLIB_MAKEREQUIRES=" \
50 $FINDLIB_COMREQUIRES \
59 for r in $FINDLIB_REQUIRES
61 AC_MSG_CHECKING(for $r ocaml library)
62 if OCAMLPATH=../ocaml/METAS $OCAMLFIND query $r &> /dev/null; then
65 AC_MSG_ERROR(could not find $r ocaml library)
70 # AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no)
71 # if test $HAVE_OCAMLC_OPT = "yes"; then
72 # if test "$OCAMLFIND_COMMANDS" = ""; then
73 # OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt"
75 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt"
78 # AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no)
79 # if test $HAVE_OCAMLOPT_OPT = "yes"; then
80 # if test "$OCAMLFIND_COMMANDS" = ""; then
81 # OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt"
83 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
86 if test "$OCAMLFIND_COMMANDS" != ""; then
87 OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
90 AC_MSG_CHECKING(--enable-debug argument)
92 [ --enable-debug Turn on debugging],
94 case "${enableval}" in
97 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
99 [GIVEN="no"; DEBUG="$DEBUG_DEFAULT"])
101 if test "$DEBUG" = "true"; then
102 MSG="$MSG, debugging enabled."
104 MSG="$MSG, debugging disabled."
108 AC_MSG_CHECKING(--with-runtime-dir argument)
109 AC_ARG_WITH(runtime-dir,
110 [ --with-runtime-dir Runtime directory (current working directory if not given)],
111 [ RT_BASE_DIR="${withval}" ],
112 [ RT_BASE_DIR="$RT_BASE_DIR_DEFAULT" ])
113 AC_MSG_RESULT($RT_BASE_DIR)
117 AC_SUBST(TRANSFORMER_MODULE)
118 AC_SUBST(FINDLIB_REQUIRES)
119 AC_SUBST(FINDLIB_CREQUIRES)
120 AC_SUBST(FINDLIB_DEPREQUIRES)
121 AC_SUBST(FINDLIB_CLEANREQUIRES)
122 AC_SUBST(FINDLIB_MAKEREQUIRES)
123 AC_SUBST(HAVE_OCAMLOPT)
124 AC_SUBST(LABLGLADECC)
126 AC_SUBST(RT_BASE_DIR)
127 AC_SUBST(MATITA_VERSION)
130 matita.conf.xml.sample
133 gtkmathview.matita.conf.xml