[commit: integer-gmp] master: Never try to use the system gmp on Windows (b3bb538)
Ian Lynagh
igloo at earth.li
Sun Feb 10 00:48:06 CET 2013
Repository : ssh://darcs.haskell.org//srv/darcs/packages/integer-gmp
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/b3bb538f179cc05d9b500f067bbacce49e7635a8
>---------------------------------------------------------------
commit b3bb538f179cc05d9b500f067bbacce49e7635a8
Author: Ian Lynagh <ian at well-typed.com>
Date: Sat Feb 9 21:55:20 2013 +0000
Never try to use the system gmp on Windows
Apparently building on Windows failed when there is a system gmp
available.
>---------------------------------------------------------------
configure.ac | 21 +++++++++++++++------
gmp/ghc.mk | 6 ++++++
2 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac
index d7c0b3e..5593ca2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,12 @@ AC_ARG_WITH([gmp-framework-preferred],
[GMP_PREFER_FRAMEWORK=YES],
[GMP_PREFER_FRAMEWORK=NO])
+AC_ARG_WITH([intree-gmp],
+ [AC_HELP_STRING([--with-intree-gmp],
+ [force using the in-tree GMP])],
+ [GMP_FORCE_INTREE=YES],
+ [GMP_FORCE_INTREE=NO])
+
dnl--------------------------------------------------------------------
dnl * Detect gmp
dnl--------------------------------------------------------------------
@@ -42,13 +48,16 @@ GMP_LIBS=
HaveFrameworkGMP=NO
GMP_FRAMEWORK=
-if test "$GMP_PREFER_FRAMEWORK" = "YES"
+if test "$GMP_FORCE_INTREE" != "YES"
then
- LOOK_FOR_GMP_FRAMEWORK
- LOOK_FOR_GMP_LIB
-else
- LOOK_FOR_GMP_LIB
- LOOK_FOR_GMP_FRAMEWORK
+ if test "$GMP_PREFER_FRAMEWORK" = "YES"
+ then
+ LOOK_FOR_GMP_FRAMEWORK
+ LOOK_FOR_GMP_LIB
+ else
+ LOOK_FOR_GMP_LIB
+ LOOK_FOR_GMP_FRAMEWORK
+ fi
fi
if test "$HaveFrameworkGMP" = "YES" || test "$HaveLibGmp" = "YES"
then
diff --git a/gmp/ghc.mk b/gmp/ghc.mk
index b39f36a..227b52b 100644
--- a/gmp/ghc.mk
+++ b/gmp/ghc.mk
@@ -33,6 +33,12 @@ clean_gmp:
$(call removeTrees,libraries/integer-gmp/gmp/gmpbuild)
endif
+ifeq "$(Windows)" "YES"
+# Apparently building on Windows fails when there is a system gmp
+# available, so we never try to use the system gmp on Windows
+libraries/integer-gmp_dist-install_CONFIGURE_OPTS += --configure-option=--with-intree-gmp
+endif
+
ifeq "$(phase)" "final"
ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
diff --git a/gmp/ln b/gmp/ln
old mode 100644
new mode 100755
More information about the ghc-commits
mailing list