[PATCH 1/3] allow build with upcoming OCaml 4.00

ygrek <[email protected]> Mon, 18 Jun 2012 00:57:10 +0300
Newsgroups gmane.network.mldonkey.user
Message-ID <[email protected]>
---
 config/configure.in |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/configure.in b/config/configure.in
index 0b89948..4b621d4 100644
--- a/config/configure.in
+++ b/config/configure.in
@@ -557,7 +557,7 @@ if [ test -z "$OCAMLC" ] || [ test -z "$CAMLP4" ] || [ test "$REQUIRED_OCAML" =
 else
   OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
   case "$OCAMLVERSION" in
-    "$REQUIRED_OCAML"*|3.12.*|3.11.*|3.10.1*|3.10.2*) ;;
+    "$REQUIRED_OCAML"*|4.*|3.12.*|3.11.*|3.10.1*|3.10.2*) ;;
     *)
         echo "Need build"
         BUILD_OCAML=yes
@@ -727,7 +727,7 @@ fi
 
 # force usage of supported Ocaml versions
 case "$OCAMLVERSION" in
-    3.10.1*|3.10.2*|3.1*) ;;
+    3.10.1*|3.10.2*|3.1*|4.*) ;;
     *)
       if [ test "$REQUIRED_OCAML" != "SVN" ]; then
         echo "********  Version $REQUIRED_OCAML of Objective-Caml is required  *********" 1>&2;
-- 
1.7.10