mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] mldonkey config/configure.in distrib/ChangeLog


From: mldonkey-commits
Subject: [Mldonkey-commits] mldonkey config/configure.in distrib/ChangeLog
Date: Thu, 09 Feb 2006 11:43:34 +0000

CVSROOT:        /sources/mldonkey
Module name:    mldonkey
Branch:         
Changes by:     spiralvoice <address@hidden>    06/02/09 11:43:34

Modified files:
        config         : configure.in 
        distrib        : ChangeLog 

Log message:
        patch #4891

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/mldonkey/mldonkey/config/configure.in.diff?tr1=1.253&tr2=1.254&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/mldonkey/mldonkey/distrib/ChangeLog.diff?tr1=1.724&tr2=1.725&r1=text&r2=text

Patches:
Index: mldonkey/config/configure.in
diff -u mldonkey/config/configure.in:1.253 mldonkey/config/configure.in:1.254
--- mldonkey/config/configure.in:1.253  Sun Feb  5 13:45:05 2006
+++ mldonkey/config/configure.in        Thu Feb  9 11:43:34 2006
@@ -189,7 +189,10 @@
 BATCH=no
 AC_ARG_ENABLE(batch, [  --enable-batch          reply YES to all queries in 
this script], [BATCH="$enableval"])
 
-AC_ARG_ENABLE(ocamlver, [  --enable-ocamlver=VER   allows you to change the 
required version of ocaml to VER], [REQUIRED_OCAML="$enableval"])
+FORCE_OCAML=no
+AC_ARG_ENABLE(force-ocaml, [  --enable-force-ocaml    force usage of 
self-compiled Ocaml], [FORCE_OCAML="$enableval"])
+
+AC_ARG_ENABLE(ocamlver, [  --enable-ocamlver=VER   force usage of specific 
Ocaml version (3.08.1|CVS), ], [REQUIRED_OCAML="$enableval"])
 
 FORCE_MINGW=no
 AC_ARG_ENABLE(mingw, [  --enable-mingw          forces compilation with MINGW 
on Cygwin], [FORCE_MINGW="$enableval"])
@@ -320,7 +323,7 @@
 
 
 BUILD_OCAML=no
-if test -z "$OCAMLC"; then
+if [ test -z "$OCAMLC" ] || [ test "$REQUIRED_OCAML" = "CVS" ]; then
    BUILD_OCAML=yes
 else
   OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
@@ -345,11 +348,10 @@
   ac_cv_prog_WGET="$ac_cv_path_WGET"
 fi
 WGET="$ac_cv_prog_WGET"
-
-if test "$BUILD_OCAML" = "yes"; then
+if [ test "$BUILD_OCAML" = "yes" ] || [ test "$FORCE_OCAML" = "yes" ]; then
 
   echo "********  Objective-Caml $REQUIRED_OCAML is required  *********" 1>&2;
-  if test "$WGET" = ""; then
+  if [ test "$WGET" = "" ] && [ test "$REQUIRED_OCAML" != "CVS" ]; then
     echo "********          wget is missing          *********" 1>&2;
     echo "********       cannot download Ocaml       *********" 1>&2;
     exit 1
@@ -361,21 +363,36 @@
   case "$i" in
    y* | Y*)
       cd $PATCH_DIR
-      if test ! -f ocaml-"$DOWNLOAD_OCAML".tar.gz; then
-        echo Downloading ...
-        $WGET 
http://caml.inria.fr/pub/distrib/ocaml-"$DOWNLOAD_OCAML_MAJOR"/ocaml-"$DOWNLOAD_OCAML".tar.gz
-      fi
-      if test ! -f ocaml-"$DOWNLOAD_OCAML".tar.gz; then exit 1; fi
+      if [ test "$REQUIRED_OCAML" = "CVS" ]; then
+        rm -rf $BUILD_DIR
+        mkdir -p $BUILD_DIR
+       cd $BUILD_DIR
+       cvs -d:pserver:anoncvs:""@camlcvs.inria.fr:/caml login
+       cvs -z3 -d:pserver:address@hidden:/caml co -P ocaml
+       cd ocaml
+      else
+        if test ! -f ocaml-"$REQUIRED_OCAML".tar.gz; then
+          echo Downloading ...
+          $WGET 
http://caml.inria.fr/pub/distrib/ocaml-"$DOWNLOAD_OCAML_MAJOR"/ocaml-"$REQUIRED_OCAML".tar.gz
+        fi
+        if test ! -f ocaml-"$REQUIRED_OCAML".tar.gz; then
+          $WGET 
http://caml.inria.fr/pub/distrib/ocaml-3.08/ocaml-"$REQUIRED_OCAML".tar.gz
+       fi
+        if test ! -f ocaml-"$REQUIRED_OCAML".tar.gz; then
+          $WGET 
http://caml.inria.fr/pub/distrib/ocaml-3.07/ocaml-"$REQUIRED_OCAML".tar.gz
+       fi
+        if test ! -f ocaml-"$REQUIRED_OCAML".tar.gz; then exit 1; fi
 
-      echo Uncompressing ...
-      mkdir -p $BUILD_DIR
-      cd $BUILD_DIR
-      rm -rf ocaml-"$REQUIRED_OCAML"
-      gzip -cd $PATCH_DIR/ocaml-"$DOWNLOAD_OCAML".tar.gz | tar vxf -
-      cd ocaml-"$DOWNLOAD_OCAML"
-      if test -f $PATCH_DIR/ocaml-"$REQUIRED_OCAML".patch; then
-        echo Patching ...
-        patch -p1 < $PATCH_DIR/ocaml-"$REQUIRED_OCAML".patch
+        echo Uncompressing ...
+        mkdir -p $BUILD_DIR
+        cd $BUILD_DIR
+        rm -rf ocaml-"$REQUIRED_OCAML"
+        gzip -cd $PATCH_DIR/ocaml-"$REQUIRED_OCAML".tar.gz | tar vxf -
+        cd ocaml-"$REQUIRED_OCAML"
+        if test -f $PATCH_DIR/ocaml-"$REQUIRED_OCAML".patch; then
+          echo Patching ...
+          patch -p1 < $PATCH_DIR/ocaml-"$REQUIRED_OCAML".patch
+        fi
       fi
       echo Configuring ...
       ./configure -prefix $LOCAL_DIR -host $host -cc $CC
@@ -394,7 +411,11 @@
         fi
       fi
       cd $BUILD_DIR
-      rm -rf ocaml-"$REQUIRED_OCAML"
+      if [ test "$REQUIRED_OCAML" = "CVS" ]; then
+        rm -rf ocaml
+      else
+        rm -rf ocaml-"$REQUIRED_OCAML"
+      fi
       cd $CONFIG_DIR
       echo Ocaml locally installed for mldonkey
 
@@ -463,14 +484,16 @@
     3.08.4*) ;;
     3.08.3*) ;;
     *)
+      if [ test "$REQUIRED_OCAML" != "CVS" ]; then
         REBUILD_OCAML=yes
-        ;;
-  esac
-    if test "$REBUILD_OCAML" = "yes"; then
-      echo "********  Version $REQUIRED_OCAML of Objective-Caml is required  
*********" 1>&2;
-      echo "*******  Check http://caml.inria.fr/  ********" 1>&2;
-      exit 1;
-    fi
+      fi
+      ;;
+esac
+if test "$REBUILD_OCAML" = "yes"; then
+  echo "********  Version $REQUIRED_OCAML of Objective-Caml is required  
*********" 1>&2;
+  echo "*******  Check http://caml.inria.fr/  ********" 1>&2;
+  exit 1;
+fi
 
 
 if test "$OCAMLOPT" = "no"; then
Index: mldonkey/distrib/ChangeLog
diff -u mldonkey/distrib/ChangeLog:1.724 mldonkey/distrib/ChangeLog:1.725
--- mldonkey/distrib/ChangeLog:1.724    Thu Feb  9 11:41:39 2006
+++ mldonkey/distrib/ChangeLog  Thu Feb  9 11:43:34 2006
@@ -15,6 +15,10 @@
 =========
 
 2006/02/09
+4891: Configure: Override system-installed Ocaml and force local compile
+  Use ./configure --enable-force-ocaml to force MLDonkey to compile Ocaml,
+  regardless if the system has Ocaml already installed or not.
+  --enable-ocamlver=CVS uses a CVS checkout of Ocaml HEAD.
 4885: EDK: Show correct IP of indirect clients in uploader list
 
 2006/02/06




reply via email to

[Prev in Thread] Current Thread [Next in Thread]