]> matita.cs.unibo.it Git - helm.git/commitdiff
added ocamldep.opt checking
authorEnrico Tassi <enrico.tassi@inria.fr>
Tue, 20 Dec 2005 09:28:05 +0000 (09:28 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Tue, 20 Dec 2005 09:28:05 +0000 (09:28 +0000)
helm/ocaml/configure.ac

index 36bd36194277d16f2f408ab04a37a78799405b93..357d1018f1c89a31b77aa1f6247eca72727d4a1e 100644 (file)
@@ -29,6 +29,14 @@ if test $HAVE_OCAMLOPT_OPT = "yes"; then
     OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
   fi
 fi
+AC_CHECK_PROG(HAVE_OCAMLDEP_OPT, ocamldep.opt, yes, no)
+if test $HAVE_OCAMLDEP_OPT = "yes"; then
+  if test "$OCAMLFIND_COMMANDS" = ""; then
+    OCAMLFIND_COMMANDS="ocamldep=ocamldep.opt"
+  else
+    OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamldep=ocamldep.opt"
+  fi
+fi
 if test "$OCAMLFIND_COMMANDS" != ""; then
   OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
 fi