AC_INIT(gMathView.ml) PACKAGE=lablgtkmathview LABLGTKMATHVIEW_MAJOR_VERSION=0 LABLGTKMATHVIEW_MINOR_VERSION=7 LABLGTKMATHVIEW_MICRO_VERSION=2 LABLGTKMATHVIEW_VERSION=$LABLGTKMATHVIEW_MAJOR_VERSION.$LABLGTKMATHVIEW_MINOR_VERSION.$LABLGTKMATHVIEW_MICRO_VERSION VERSION=$LABLGTKMATHVIEW_VERSION PKG_CHECK_MODULES(GDOME, gdome2 >= 0.7.0,, AC_MSG_ERROR(could not find Gdome2)) AC_SUBST(GDOME_CFLAGS) AC_SUBST(GDOME_LIBS) PKG_CHECK_MODULES(GTKMATHVIEW, gtkmathview-gmetadom >= 0.6.2,, AC_MSG_ERROR(could not find gtkmathview-gmetadom)) AC_SUBST(GTKMATHVIEW_CFLAGS) AC_SUBST(GTKMATHVIEW_LIBS) AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no) if test $HAVE_OCAMLC = "no"; then AC_MSG_ERROR(could not find ocamlc in PATH, please make sure ocaml is installed) fi AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no) if test $HAVE_OCAMLFIND = "no"; then AC_MSG_ERROR(could not find ocamlfind in PATH, please make sure findlib is installed) fi AC_MSG_CHECKING("for gdome2") ocamlfind query gdome2 || AC_MSG_ERROR(gdome2 not installed (according to findlib)) AC_MSG_CHECKING("for lablgtk2") ocamlfind query lablgtk2 || AC_MSG_ERROR(lablgtk2 not installed (according to findlib)) AC_MSG_CHECKING("for the ocaml library dir") OCAML_LIB_DIR=`ocamlc -where` OCAML_STUB_DIR="$OCAML_LIB_DIR/stublibs" AC_MSG_RESULT($OCAML_LIB_DIR) AC_CHECK_FILE(/usr/include/caml/mlvalues.h, OCAML_INCLUDE_DIR=/usr/include/caml, OCAML_INCLUDE_DIR=$OCAML_LIB_DIR/caml ) AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(OCAML_INCLUDE_DIR) AC_SUBST(OCAML_LIB_DIR) AC_SUBST(OCAML_STUB_DIR) AC_OUTPUT([ test/Makefile Makefile META ])