3 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
4 if test $HAVE_OCAMLFIND = "yes"; then
7 AC_MSG_ERROR(could not find ocamlfind)
10 AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no)
11 if test $HAVE_OCAMLC_OPT = "yes"; then
12 if test "$OCAMLFIND_COMMANDS" = ""; then
13 OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt"
15 OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt"
18 AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no)
19 if test $HAVE_OCAMLOPT_OPT = "yes"; then
20 if test "$OCAMLFIND_COMMANDS" = ""; then
21 OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt"
23 OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
26 if test "$OCAMLFIND_COMMANDS" != ""; then
27 OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
31 AC_ARG_WITH(term-editor,
32 AS_HELP_STRING([--with-term-editor=(tex|textual)],
33 [choose term editor (default is tex)]),
34 [TERM_EDITOR=$withval], [TERM_EDITOR=textual])
35 if test $TERM_EDITOR = "tex"; then
36 CHOSEN_TERM_EDITOR="include TexTermEditor"
38 if test $TERM_EDITOR = "textual"; then
39 CHOSEN_TERM_EDITOR="include TermEditor"
41 AC_MSG_ERROR(unknwon term editor $TERM_EDITOR)
45 AC_ARG_WITH(term-parser,
46 AS_HELP_STRING([--with-term-parser=(cscTex|cscTextual|new)],
47 [choose term parser (default is new)]),
48 [TERM_PARSER=$withval], [TERM_PARSER=new])
49 if test $TERM_PARSER = "cscTex"; then
50 CHOSEN_TERM_PARSER="include CSCTexDisambiguatingParser"
52 if test $TERM_PARSER = "cscTextual"; then
53 CHOSEN_TERM_PARSER="include CSCTextualDisambiguatingParser"
55 if test $TERM_PARSER = "new"; then
56 CHOSEN_TERM_PARSER="include AndreaAndZackDisambiguatingParser"
58 AC_MSG_ERROR(unknwon term parser $TERM_PARSER)
63 AC_ARG_WITH(transformer,
64 AS_HELP_STRING([--with-transformer=(xslt|ocaml)],
65 [choose mathml transformer (default is ocaml)]),
66 [TRANSFORMER=$withval], [TRANSFORMER=ocaml])
67 if test $TRANSFORMER = "xslt"; then
68 CHOSEN_TRANSFORMER="include ApplyStylesheets"
70 if test $TRANSFORMER = "ocaml"; then
71 CHOSEN_TRANSFORMER="include ApplyTransformation"
73 AC_MSG_ERROR(unknwon transformer $TRANSFORMER)
77 if test $TERM_EDITOR = "tex"; then
78 CHOSEN_TERM_EDITOR="include TexTermEditor"
80 if test $TERM_EDITOR = "textual"; then
81 CHOSEN_TERM_EDITOR="include TermEditor"
83 AC_MSG_ERROR(unknwon term editor $TERM_EDITOR)
88 AC_SUBST(CHOSEN_TERM_EDITOR)
89 AC_SUBST(CHOSEN_TERM_PARSER)
90 AC_SUBST(CHOSEN_TRANSFORMER)
95 disambiguatingParser.ml