1 AC_INIT(matita/matitaTypes.ml)
3 # Distribution settings
4 # (i.e. settings (automatically) manipulated before a release)
6 DEFAULT_DBHOST="mysql://mowgli.cs.unibo.it"
7 RT_BASE_DIR_DEFAULT="`pwd`/matita"
9 DISTRIBUTED="no" # "yes" for distributed tarballs
10 # End of distribution settings
13 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
14 if test $HAVE_OCAMLC = "no"; then
15 AC_MSG_ERROR(could not find ocamlc)
17 AC_CHECK_PROG(HAVE_OCAMLOPT, ocamlopt, yes, no)
18 if test $HAVE_OCAMLOPT = "no"; then
19 AC_MSG_WARN(could not find ocamlopt: native code compilation disabled)
21 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
22 if test $HAVE_OCAMLFIND = "yes"; then
25 AC_MSG_ERROR(could not find ocamlfind)
27 AC_CHECK_PROG(HAVE_LABLGLADECC, lablgladecc2, yes, no)
28 if test $HAVE_LABLGLADECC = "yes"; then
29 LABLGLADECC="lablgladecc2"
31 AC_MSG_ERROR(could not find lablgladecc2)
33 AC_CHECK_PROG(HAVE_CAMLP5O, camlp5o, yes, no)
34 if test $HAVE_CAMLP5O = "yes"; then
37 AC_MSG_ERROR(could not find camlp5o)
42 LIBSPATH="`pwd`/components"
43 OCAMLPATH="$LIBSPATH/METAS"
47 echo -n "creating METAs ... "
48 for f in $OCAMLPATH/meta.*.src; do
49 basename=`basename $f`
50 metaname=`echo $basename | sed 's/meta\.\(.*\)\.src/\1/'`
51 dirname=`echo $metaname | sed 's/^helm-//'`
52 metafile="$OCAMLPATH/META.$metaname"
54 echo "directory=\"$LIBSPATH/$dirname\"" >> $metafile
58 # (libs) findlib requisites
60 FINDLIB_LIBSREQUIRES="\
65 lablgtksourceview2.gtksourceview2 \
74 # (Matita) findlib requisites
76 FINDLIB_COMREQUIRES="\
80 helm-ng_disambiguation \
84 helm-ng_paramodulation \
88 $FINDLIB_COMREQUIRES \
93 lablgtksourceview2.gtksourceview2 \
101 for r in $FINDLIB_LIBSREQUIRES $FINDLIB_REQUIRES $FINDLIB_WREQUIRES
103 AC_MSG_CHECKING(for $r ocaml library)
104 if OCAMLPATH=$OCAMLPATH $OCAMLFIND query $r &> /dev/null; then
107 AC_MSG_ERROR(could not find $r ocaml library)
111 OCAMLFIND_COMMANDS=""
112 # AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no)
113 # if test $HAVE_OCAMLC_OPT = "yes"; then
114 # if test "$OCAMLFIND_COMMANDS" = ""; then
115 # OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt"
117 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt"
120 # AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no)
121 # if test $HAVE_OCAMLOPT_OPT = "yes"; then
122 # if test "$OCAMLFIND_COMMANDS" = ""; then
123 # OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt"
125 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
128 if test "$OCAMLFIND_COMMANDS" != ""; then
129 OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
132 AC_MSG_CHECKING(--enable-debug argument)
134 [ --enable-debug Turn on debugging],
136 case "${enableval}" in
139 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
141 [GIVEN="no"; DEBUG="$DEBUG_DEFAULT"])
143 if test "$DEBUG" = "true"; then
144 MSG="$MSG, debugging enabled."
146 MSG="$MSG, debugging disabled."
150 AC_MSG_CHECKING(--enable-annot argument)
152 [ --enable-annot Turn on -dtypes compilation option],
154 case "${enableval}" in
157 *) AC_MSG_ERROR(bad value ${enableval} for --enable-annot) ;;
159 [GIVEN="no"; ANNOT="false"])
161 if test "$ANNOT" = "true"; then
162 MSG="$MSG, type annotation enabled."
164 MSG="$MSG, type annotation disabled."
169 AC_MSG_CHECKING(--with-runtime-dir argument)
170 AC_ARG_WITH(runtime-dir,
171 [ --with-runtime-dir Runtime directory (current working directory if not given)],
172 [ RT_BASE_DIR="${withval}" ],
173 [ RT_BASE_DIR="$RT_BASE_DIR_DEFAULT" ])
175 if test "yes" = "$RT_BASE_DIR"; then
178 ** empty --with-runtime-dir argument, please use --with-runtime-dir=value **"
182 AC_MSG_CHECKING(--with-dbhost argument)
184 [ --with-dbhost SQL database hostname],
185 [ DBHOST="${withval}" ],
186 [ DBHOST="$DEFAULT_DBHOST" ])
188 if test "yes" = "$DBHOST"; then
191 ** empty --with-dbhost argument, please use --with-dbhost=value **"
199 AC_SUBST(DISTRIBUTED)
200 AC_SUBST(FINDLIB_CREQUIRES)
201 AC_SUBST(FINDLIB_REQUIRES)
202 AC_SUBST(FINDLIB_WREQUIRES)
203 AC_SUBST(HAVE_OCAMLOPT)
204 AC_SUBST(LABLGLADECC)
205 AC_SUBST(MATITA_VERSION)
208 AC_SUBST(RT_BASE_DIR)
210 AC_SUBST(TRANSFORMER_MODULE)
213 components/extlib/componentsConf.ml
214 matita/matita.conf.xml
215 matita/buildTimeConf.ml
216 matita/help/C/version.txt