patches/mpc/0.8.1/100-fix-build-with-mpfr-3_0_9.diff
author Matthieu Crapet <mcrapet@gmail.com>
Wed Jun 06 12:03:12 2012 +0200 (2012-06-06)
changeset 2991 252ade1e9e17
permissions -rw-r--r--
libc/eglibc: fix missing LIBC_TRY_CC_OPTION definition (eglibc 2.15)

Upstream SVN is currently broken:
http://www.eglibc.org/svn/branches/eglibc-2_15/libc/

LIBC_TRY_CC_OPTION macro is not defined in aclocal.m4.
This patch fix the configure script.

Once upstream branch will be fixed this patch could be reverted.

Related patch (committed to eglibc trunk):
Use autoconf macro for testing compiler options with empty input
http://sourceware.org/ml/libc-alpha/2012-03/msg00816.html

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>

diff -r 1f6c8e4b2b92 -r d10afc5bcc25
patches/eglibc/2_15/110-aclocal-LIBC_TRY_CC_OPTION.patch
lacombar@2069
     1
--- trunk/src/acos.c	2009/12/08 16:49:43	733
lacombar@2069
     2
+++ trunk/src/acos.c	2009/12/09 20:51:38	734
lacombar@2069
     3
@@ -188,10 +188,7 @@
lacombar@2069
     4
   else
lacombar@2069
     5
     rnd_im = rnd_im == GMP_RNDU ? GMP_RNDD
lacombar@2069
     6
       : rnd_im == GMP_RNDD ? GMP_RNDU
lacombar@2069
     7
-#if MPFR_VERSION_MAJOR >= 3
lacombar@2069
     8
-      : rnd_im == GMP_RNDA ? GMP_RNDZ
lacombar@2069
     9
-#endif
lacombar@2069
    10
-      : rnd_im;
lacombar@2069
    11
+      : rnd_im; /* both RNDZ and RNDA map to themselves for -asin(z) */
lacombar@2069
    12
   rnd1 = RNDC(GMP_RNDN, rnd_im);
lacombar@2069
    13
   mpfr_init2 (pi_over_2, p);
lacombar@2069
    14
   for (;;)