[Top][All Lists]
[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: |
Wed, 28 Dec 2005 21:28:30 +0000 |
CVSROOT: /sources/mldonkey
Module name: mldonkey
Branch:
Changes by: spiralvoice <address@hidden> 05/12/28 21:28:29
Modified files:
config : configure.in
distrib : ChangeLog
Log message:
patch #4739
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/mldonkey/mldonkey/config/configure.in.diff?tr1=1.239&tr2=1.240&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/mldonkey/mldonkey/distrib/ChangeLog.diff?tr1=1.637&tr2=1.638&r1=text&r2=text
Patches:
Index: mldonkey/config/configure.in
diff -u mldonkey/config/configure.in:1.239 mldonkey/config/configure.in:1.240
--- mldonkey/config/configure.in:1.239 Sun Dec 18 16:51:32 2005
+++ mldonkey/config/configure.in Wed Dec 28 21:28:29 2005
@@ -241,7 +241,7 @@
AC_PROG_CPP
AC_PROG_CXX
-AC_CHECK_PROG(NEWCXX, [$CXX], [$CXX], [no])
+AC_CHECK_TOOL(NEWCXX, [$CXX], [$CXX], [no])
if test x"$NEWCXX" = x"no"
then
AC_MSG_ERROR("No valid c++ compiler found")
@@ -291,7 +291,7 @@
LOCAL_OCAML=$LOCAL_DIR/bin
AC_PATH_PROG(OCAMLC,ocamlc.opt,"",[$LOCAL_DIR/bin:$PATH])
-AC_CHECK_PROG(OCAMLC,ocamlc,ocamlrun ocamlc)
+AC_CHECK_TOOL(OCAMLC,ocamlc,ocamlrun ocamlc)
case "$host" in
alpha*-*-osf*) arch=alpha; system=digital;;
@@ -326,7 +326,7 @@
BUILD_OCAML=no
-if test -z "$ac_cv_prog_OCAMLC"; then
+if test -z "$OCAMLC"; then
BUILD_OCAML=yes
else
OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
@@ -334,17 +334,6 @@
"$REQUIRED_OCAML"*) ;;
3.08.4*) ;;
3.08.3*) ;;
- 3.08.2*)
- if test "$system" = "rhapsody"; then
- case "$OCAMLVERSION" in
- 3.08.2+4* | 3.08.2+5* | 3.08.2+6* | 3.08.2+7* | 3.08.2+8*) ;;
- *)
- echo "Need build"
- BUILD_OCAML=yes
- ;;
- esac
- fi
- ;;
*)
echo "Need build"
BUILD_OCAML=yes
@@ -352,36 +341,6 @@
esac
fi
-if test "$BUILD_OCAML" = "yes"; then
-
- AC_CHECK_FILE("$LOCAL_OCAML"/ocamlc.opt, [
- OCAMLVERSION=`$LOCAL_OCAML/ocamlc.opt -v | sed -n -e 's|.*version*
*\(.*\)$|\1|p' `
- REBUILD_OCAML=no
- case "$OCAMLVERSION" in
- "$REQUIRED_OCAML"*) ;;
- 3.08.2*)
- if test "$system" = "rhapsody"; then
- case "$OCAMLVERSION" in
- 3.08.2+4* | 3.08.2+5* | 3.08.2+6* | 3.08.2+7* | 3.08.2+8*) ;;
- *)
- REBUILD_OCAML=yes
- ;;
- esac
- fi
- ;;
- *)
- REBUILD_OCAML=yes
- ;;
- esac
- if test "$REBUILD_OCAML" = "no"; then
- echo "Need rebuild"
- BUILD_OCAML=no
- OCAMLC=$LOCAL_OCAML/ocamlc.opt
- ac_cv_prog_OCAMLC=$LOCAL_OCAML/ocamlc.opt
- fi
- ])
-fi
-
AC_CHECK_PROG(RPMBUILD,rpmbuild,rpmbuild)
AC_CHECK_PROG(RPMBUILD,rpm,rpm)
AC_CHECK_PROG(WGET, wget, wget)
@@ -410,8 +369,6 @@
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
- # $WGET
http://savannah.nongnu.org/download/mldonkey/tools/ocaml-"$REQUIRED_OCAML".tar.gz
- # $WGET
http://pauillac.inria.fr/~lefessan/mldonkey/ocaml-"$REQUIRED_OCAML".tar.gz
fi
if test ! -f ocaml-"$DOWNLOAD_OCAML".tar.gz; then exit 1; fi
@@ -426,7 +383,7 @@
patch -p1 < $PATCH_DIR/ocaml-"$REQUIRED_OCAML".patch
fi
echo Configuring ...
- ./configure -prefix $LOCAL_DIR
+ ./configure -prefix $LOCAL_DIR -host $host -cc $CC
cd config
cp -f Makefile Makefile.old
sed "s/OTHERLIBRARIES=.*/OTHERLIBRARIES=unix dynlink num str bigarray
threads/" Makefile.old > Makefile
@@ -509,16 +466,6 @@
"$REQUIRED_OCAML"*) ;;
3.08.4*) ;;
3.08.3*) ;;
- 3.08.2*)
- if test "$system" = "rhapsody"; then
- case "$OCAMLVERSION" in
- 3.08.2+4* | 3.08.2+5* | 3.08.2+6* | 3.08.2+7* | 3.08.2+8*) ;;
- *)
- REBUILD_OCAML=yes
- ;;
- esac
- fi
- ;;
*)
REBUILD_OCAML=yes
;;
Index: mldonkey/distrib/ChangeLog
diff -u mldonkey/distrib/ChangeLog:1.637 mldonkey/distrib/ChangeLog:1.638
--- mldonkey/distrib/ChangeLog:1.637 Wed Dec 28 10:38:33 2005
+++ mldonkey/distrib/ChangeLog Wed Dec 28 21:28:29 2005
@@ -12,6 +12,10 @@
http://mldonkey.berlios.de/modules.php?name=Wiki&pagename=Windows
2005/12/28
+4739: Fix some cross-compiling obstacles, remove Ocaml 3.08.2 compatability
+* Cross-compiling is only possible with a correct Ocaml toolchain
+* MLDonkey can not build this Ocaml toolchain
+* This patch only fixes some autoconf checks
4735: MinGW: pause before core exit because of existing Pid file
4736: New commands: sysinfo, runinfo and diskinfo
* removed temp_directory and core_directory from shares command output