1 AC_INIT(matitaTypes.ml)
3 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
4 if test $HAVE_OCAMLC = "no"; then
5 AC_MSG_ERROR(could not find ocamlc)
7 AC_CHECK_PROG(HAVE_OCAMLOPT, ocamlopt, yes, no)
8 if test $HAVE_OCAMLOPT = "no"; then
9 AC_MSG_WARN(could not find ocamlopt: native code compilation disabled)
11 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
12 if test $HAVE_OCAMLFIND = "yes"; then
15 AC_MSG_ERROR(could not find ocamlfind)
17 AC_CHECK_PROG(HAVE_LABLGLADECC, lablgladecc2, yes, no)
18 if test $HAVE_LABLGLADECC = "yes"; then
19 LABLGLADECC="lablgladecc2"
21 AC_MSG_ERROR(could not find lablgladecc2)
23 AC_CHECK_PROG(HAVE_CAMLP4O, camlp4o, yes, no)
24 if test $HAVE_CAMLP4O = "yes"; then
27 AC_MSG_ERROR(could not find camlp4o)
35 helm-cic_transformations \
39 helm-cic_textual_parser2 \
47 for r in $FINDLIB_REQUIRES
49 AC_MSG_CHECKING(for $r ocaml library)
50 if $OCAMLFIND query $r &> /dev/null; then
53 AC_MSG_ERROR(could not find $r ocaml library)
58 AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no)
59 if test $HAVE_OCAMLC_OPT = "yes"; then
60 if test "$OCAMLFIND_COMMANDS" = ""; then
61 OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt"
63 OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt"
66 AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no)
67 if test $HAVE_OCAMLOPT_OPT = "yes"; then
68 if test "$OCAMLFIND_COMMANDS" = ""; then
69 OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt"
71 OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
74 if test "$OCAMLFIND_COMMANDS" != ""; then
75 OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
78 [ --enable-debug Turn on debugging],
79 [case "${enableval}" in
82 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
85 if test "$DEBUG" = "true"; then
86 echo "debugging enabled"
89 MATITA_GTKRC="matita.gtkrc"
93 AC_SUBST(TRANSFORMER_MODULE)
94 AC_SUBST(FINDLIB_REQUIRES)
95 AC_SUBST(FINDLIB_CREQUIRES)
96 AC_SUBST(HAVE_OCAMLOPT)
99 AC_SUBST(MATITA_GTKRC)