2 AC_CONFIG_SRCDIR([matita/matitaTypes.ml])
4 # Distribution settings
5 # (i.e. settings (automatically) manipulated before a release)
7 DEFAULT_DBHOST="mysql://mowgli.cs.unibo.it"
8 RT_BASE_DIR_DEFAULT="`pwd`/matita"
9 MATITA_VERSION="0.99.4"
10 DISTRIBUTED="yes" # "yes" for distributed tarballs
11 # End of distribution settings
14 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
15 if test $HAVE_OCAMLC = "no"; then
16 AC_MSG_ERROR(could not find ocamlc)
18 AC_CHECK_PROG(HAVE_OCAMLOPT, ocamlopt, yes, no)
19 if test $HAVE_OCAMLOPT = "no"; then
20 AC_MSG_WARN(could not find ocamlopt: native code compilation disabled)
22 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
23 if test $HAVE_OCAMLFIND = "yes"; then
26 AC_MSG_ERROR(could not find ocamlfind)
28 AC_CHECK_PROG(HAVE_LABLGLADECC, lablgladecc3, yes, no)
29 if test $HAVE_LABLGLADECC = "yes"; then
30 LABLGLADECC="lablgladecc3"
32 AC_MSG_ERROR(could not find lablgladecc3)
34 AC_CHECK_PROG(HAVE_CAMLP5O, camlp5o, yes, no)
35 if test $HAVE_CAMLP5O = "yes"; then
38 AC_MSG_ERROR(could not find camlp5o)
43 LIBSPATH="`pwd`/components"
44 OCAMLPATHL="$LIBSPATH/METAS"
45 OCAMLPATH="$OCAMLPATHL:$OCAMLPATH"
49 echo -n "creating METAs ... "
50 for f in $OCAMLPATHL/meta.*.src; do
51 basename=`basename $f`
52 metaname=`echo $basename | sed 's/meta\.\(.*\)\.src/\1/'`
53 dirname=`echo $metaname | sed 's/^helm-//'`
54 metafile="$OCAMLPATHL/META.$metaname"
56 echo "directory=\"$LIBSPATH/$dirname\"" >> $metafile
60 # (libs) findlib requisites
64 FINDLIB_LIBSREQUIRES="\
72 lablgtk3-sourceview3 \
78 # (Matita) findlib requisites
81 FINDLIB_COMREQUIRES="\
85 helm-ng_disambiguation \
89 helm-ng_paramodulation \
93 $FINDLIB_COMREQUIRES \
97 lablgtk3-sourceview3 \
100 for r in $FINDLIB_LIBSREQUIRES $FINDLIB_REQUIRES
102 AC_MSG_CHECKING(for $r ocaml library)
103 if OCAMLPATH=$OCAMLPATH $OCAMLFIND query $r &> /dev/null; then
106 AC_MSG_ERROR(could not find $r ocaml library)
110 OCAMLFIND_COMMANDS=""
111 # AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no)
112 # if test $HAVE_OCAMLC_OPT = "yes"; then
113 # if test "$OCAMLFIND_COMMANDS" = ""; then
114 # OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt"
116 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt"
119 # AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no)
120 # if test $HAVE_OCAMLOPT_OPT = "yes"; then
121 # if test "$OCAMLFIND_COMMANDS" = ""; then
122 # OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt"
124 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
127 if test "$OCAMLFIND_COMMANDS" != ""; then
128 OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
131 AC_MSG_CHECKING(--enable-debug argument)
133 [ --enable-debug Turn on debugging],
135 case "${enableval}" in
138 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
140 [GIVEN="no"; DEBUG="$DEBUG_DEFAULT"])
142 if test "$DEBUG" = "true"; then
143 MSG="$MSG, debugging enabled."
145 MSG="$MSG, debugging disabled."
149 AC_MSG_CHECKING(--enable-annot argument)
151 [ --enable-annot Turn on -dtypes compilation option],
153 case "${enableval}" in
156 *) AC_MSG_ERROR(bad value ${enableval} for --enable-annot) ;;
158 [GIVEN="no"; ANNOT="false"])
160 if test "$ANNOT" = "true"; then
161 MSG="$MSG, type annotation enabled."
163 MSG="$MSG, type annotation disabled."
168 AC_MSG_CHECKING(--with-runtime-dir argument)
169 AC_ARG_WITH(runtime-dir,
170 [ --with-runtime-dir Runtime directory (current working directory if not given)],
171 [ RT_BASE_DIR="${withval}" ],
172 [ RT_BASE_DIR="$RT_BASE_DIR_DEFAULT" ])
174 if test "yes" = "$RT_BASE_DIR"; then
177 ** empty --with-runtime-dir argument, please use --with-runtime-dir=value **"
181 AC_MSG_CHECKING(--with-dbhost argument)
183 [ --with-dbhost SQL database hostname],
184 [ DBHOST="${withval}" ],
185 [ DBHOST="$DEFAULT_DBHOST" ])
187 if test "yes" = "$DBHOST"; then
190 ** empty --with-dbhost argument, please use --with-dbhost=value **"
198 AC_SUBST(DISTRIBUTED)
199 AC_SUBST(FINDLIB_CREQUIRES)
200 AC_SUBST(FINDLIB_REQUIRES)
201 AC_SUBST(HAVE_OCAMLOPT)
202 AC_SUBST(LABLGLADECC)
203 AC_SUBST(MATITA_VERSION)
206 AC_SUBST(RT_BASE_DIR)
208 AC_SUBST(TRANSFORMER_MODULE)
211 components/extlib/componentsConf.ml
212 matita/matita.conf.xml
213 matita/buildTimeConf.ml
214 matita/help/C/version.txt