1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/ppl/0.10.2/100-fix-configure-with-gmp-5_0_1.patch Sun Oct 03 23:10:46 2010 +0200
1.3 @@ -0,0 +1,28 @@
1.4 +--- ppl-0.10.2/configure.orig 2010-08-04 21:48:19.000000000 -0400
1.5 ++++ ppl-0.10.2/configure 2010-08-04 21:50:04.000000000 -0400
1.6 +@@ -16443,6 +16443,10 @@
1.7 + #GMP version 4.1.3 or higher is required
1.8 + #endif
1.9 +
1.10 ++#ifndef BITS_PER_MP_LIMB
1.11 ++#define BITS_PER_MP_LIMB GMP_LIMB_BITS
1.12 ++#endif
1.13 ++
1.14 + int
1.15 + main() {
1.16 + std::string header_version;
1.17 +@@ -16469,11 +16473,11 @@
1.18 + return 1;
1.19 + }
1.20 +
1.21 +- if (sizeof(mp_limb_t)*CHAR_BIT != GMP_LIMB_BITS
1.22 +- || GMP_LIMB_BITS != mp_bits_per_limb) {
1.23 ++ if (sizeof(mp_limb_t)*CHAR_BIT != BITS_PER_MP_LIMB
1.24 ++ || BITS_PER_MP_LIMB != mp_bits_per_limb) {
1.25 + std::cerr
1.26 + << "GMP header (gmp.h) and library (ligmp.*) bits-per-limb mismatch:\n"
1.27 +- << "header gives " << __GMP_BITS_PER_MP_LIMB << ";\n"
1.28 ++ << "header gives " << BITS_PER_MP_LIMB << ";\n"
1.29 + << "library gives " << mp_bits_per_limb << ".\n"
1.30 + << "This probably means you are on a bi-arch system and\n"
1.31 + << "you are compiling with the wrong header or linking with\n"