X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FgTopLevel%2Fconfigure.ac;fp=helm%2FgTopLevel%2Fconfigure.ac;h=aaa661e0aee38df671c19e399e75d99913c198b3;hb=43791584692853e980f96b58f36fdfb9c316728f;hp=0000000000000000000000000000000000000000;hpb=9f60b3b0f4460aec52ec241037f6c475b421dd15;p=helm.git diff --git a/helm/gTopLevel/configure.ac b/helm/gTopLevel/configure.ac new file mode 100644 index 000000000..aaa661e0a --- /dev/null +++ b/helm/gTopLevel/configure.ac @@ -0,0 +1,58 @@ +AC_INIT(gTopLevel.ml) + +AC_ARG_WITH(term-editor, + AS_HELP_STRING([--with-term-editor=(tex|textual)], + [choose term editor (default is tex)]), + [TERM_EDITOR=$withval], [TERM_EDITOR=textual]) +if test $TERM_EDITOR = "tex"; then + CHOSEN_TERM_EDITOR="include TexTermEditor" +else + if test $TERM_EDITOR = "textual"; then + CHOSEN_TERM_EDITOR="include TermEditor" + else + AC_MSG_ERROR(unknwon term editor $TERM_EDITOR) + fi +fi + +AC_ARG_WITH(term-parser, + AS_HELP_STRING([--with-term-parser=(cscTex|cscTextual|new)], + [choose term parser (default is new)]), + [TERM_PARSER=$withval], [TERM_PARSER=new]) +if test $TERM_PARSER = "cscTex"; then + CHOSEN_TERM_PARSER="include CSCTexDisambiguatingParser" +else + if test $TERM_PARSER = "cscTextual"; then + CHOSEN_TERM_PARSER="include CSCTextualDisambiguatingParser" + else + if test $TERM_PARSER = "new"; then + CHOSEN_TERM_PARSER="include AndreaAndZackDisambiguatingParser" + else + AC_MSG_ERROR(unknwon term parser $TERM_PARSER) + fi + fi +fi + +AC_ARG_WITH(transformer, + AS_HELP_STRING([--with-transformer=(xslt|ocaml)], + [choose mathml transformer (default is ocaml)]), + [TRANSFORMER=$withval], [TRANSFORMER=ocaml]) +if test $TRANSFORMER = "xslt"; then + CHOSEN_TRANSFORMER="include ApplyStylesheets" +else + if test $TRANSFORMER = "ocaml"; then + CHOSEN_TRANSFORMER="include ApplyTransformation" + else + AC_MSG_ERROR(unknwon transformer $TRANSFORMER) + fi +fi + +AC_SUBST(CHOSEN_TERM_EDITOR) +AC_SUBST(CHOSEN_TERM_PARSER) +AC_SUBST(CHOSEN_TRANSFORMER) + +AC_OUTPUT([ + chosenTransformer.ml + chosenTermEditor.ml + disambiguatingParser.ml +]) +