AC_INIT(minidom.ml) PACKAGE=mlminidom MLMINIDOM_MAJOR_VERSION=0 MLMINIDOM_MINOR_VERSION=2 MLMINIDOM_MICRO_VERSION=2 MLMINIDOM_VERSION=$MLMINIDOM_MAJOR_VERSION.$MLMINIDOM_MINOR_VERSION.$MLMINIDOM_MICRO_VERSION VERSION=$MLMINIDOM_VERSION AC_CHECK_PROG(HAVE_GLIB, glib-config, yes, no) if test $HAVE_GLIB = "no"; then AC_MSG_ERROR(could not font glib configuration script, please make sure glib (dev) is installed) fi AC_CHECK_PROG(HAVE_MINIDOM, minidom-config, yes, no) if test $HAVE_MINIDOM = "no"; then AC_MSG_ERROR(could not find minidom configuration script, please make sure minidom is installed) fi 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 the ocaml library dir") OCAML_LIB_DIR=`ocamlc -where` 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_OUTPUT([ Makefile mlminidom.spec META ])