]> matita.cs.unibo.it Git - helm.git/commitdiff
patched configure.in for Debian (different location of mlvalues.h)
authorLuca Padovani <luca.padovani@unito.it>
Mon, 22 Jan 2001 10:00:38 +0000 (10:00 +0000)
committerLuca Padovani <luca.padovani@unito.it>
Mon, 22 Jan 2001 10:00:38 +0000 (10:00 +0000)
helm/DEVEL/mlminidom/Makefile.in
helm/DEVEL/mlminidom/configure.in

index e311c5e1ca3e78c9e8781c49fa5fd1029931d5dd..05103a48be6414e68c2c5b8f5f1803c238608418 100644 (file)
@@ -1,6 +1,7 @@
 PACKAGE = @PACKAGE@
 VERSION = @MLMINIDOM_VERSION@
-LIBDIR = @OCAML_ROOT@
+INCLUDEDIR = @OCAML_INCLUDE_DIR@
+LIBDIR = @OCAML_LIB_DIR@
 INSTALLDIR = $(LIBDIR)/mlminidom
 OBJECTS = minidom.cmi minidom.cmo ml_minidom.o ominidom.cmi ominidom.cmo
 OBJECTS_OPT = minidom.cmx ominidom.cmx
@@ -20,7 +21,7 @@ dist:
        rm -rf $(PACKAGE)-$(VERSION)
        
 ml_minidom.o: ml_minidom.c
-       gcc -c -I$(LIBDIR)/caml/ `glib-config --cflags` `minidom-config --cflags` $<
+       gcc -c -I$(INCLUDEDIR) `glib-config --cflags` `minidom-config --cflags` $<
 
 minidom.cmi: minidom.mli
        ocamlc -c $<
index 44f00d854a67eb694be5aa0750dafe0f395a73ce..03a1d9df59a20525b2dcdca3d5386b0938ece95c 100644 (file)
@@ -23,12 +23,19 @@ if test $HAVE_OCAMLC = "no"; then
   AC_MSG_ERROR(could not find ocamlc in PATH, please make sure ocaml is installed)
 fi
 
+
 AC_MSG_CHECKING("for the ocaml library dir")
-OCAML_ROOT=`ocamlc -v | grep "^Standard" | sed 's/^.*: *//'`
-AC_MSG_RESULT($OCAML_ROOT)
+OCAML_LIB_DIR=`ocamlc -v | grep "^Standard" | sed 's/^.*: *//'`
+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
+)
 
 AC_SUBST(PACKAGE)
 AC_SUBST(VERSION)
-AC_SUBST(OCAML_ROOT)
+AC_SUBST(OCAML_INCLUDE_DIR)
+AC_SUBST(OCAML_LIB_DIR)
 
 AC_OUTPUT([Makefile])