]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/gdome_xslt/ocaml/gdome_xslt/configure.in
...
[helm.git] / helm / DEVEL / gdome_xslt / ocaml / gdome_xslt / configure.in
1 AC_INIT(gdome_xslt.ml)
2
3 PACKAGE=gdome2-xslt
4
5 GDOMEXSLT_MAJOR_VERSION=0
6 GDOMEXSLT_MINOR_VERSION=0
7 GDOMEXSLT_MICRO_VERSION=1
8 GDOMEXSLT_VERSION=$GDOMEXSLT_MAJOR_VERSION.$GDOMEXSLT_MINOR_VERSION.$GDOMEXSLT_MICRO_VERSION
9 VERSION=$GDOMEXSLT_VERSION
10
11 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
12 if test $HAVE_OCAMLC = "no"; then
13   AC_MSG_ERROR(could not find ocamlc in PATH, please make sure ocaml is installed)
14 fi
15
16 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
17 if test $HAVE_OCAMLFIND = "no"; then
18   AC_MSG_ERROR(could not find ocamlfind in PATH, please make sure findlib is installed)
19 fi
20
21 AC_MSG_CHECKING("for gdome2")
22 ocamlfind query gdome2 ||
23   AC_MSG_ERROR(gdome2 not installed (according to findlib))
24
25 AC_MSG_CHECKING("for the ocaml library dir")
26 OCAML_LIB_DIR=`ocamlc -where`
27 AC_MSG_RESULT($OCAML_LIB_DIR)
28
29 AC_CHECK_FILE(/usr/include/caml/mlvalues.h,
30         OCAML_INCLUDE_DIR=/usr/include/caml,
31         OCAML_INCLUDE_DIR=$OCAML_LIB_DIR/caml
32 )
33
34 AC_SUBST(PACKAGE)
35 AC_SUBST(VERSION)
36 AC_SUBST(OCAML_INCLUDE_DIR)
37
38 AC_OUTPUT([
39   Makefile
40   META
41 ])