patches/ppl/0.11.2/200-fix-build-with-local-gmp.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 --- a/m4/ac_check_gmp.m4~	2011-02-27 04:07:47.000000000 -0500
     2 +++ b/m4/ac_check_gmp.m4	2013-07-10 19:57:35.894457259 -0400
     3 @@ -32,6 +32,9 @@
     4      with_libgmpxx_prefix="$with_libgmp_prefix"
     5    fi
     6  fi
     7 +CPPFLAGS="$CPPFLAGS -I$with_libgmp_prefix/include"
     8 +CXXFLAGS="$CXXFLAGS -I$with_libgmpxx_prefix/include"
     9 +LDFLAGS="$CPPFLAGS -L$with_libgmpxx_prefix/lib -L$with_libgmp_prefix/lib"
    10  
    11  AC_ARG_WITH(gmp-build,
    12    AS_HELP_STRING([--with-gmp-build=DIR],
    13 --- a/configure~	2011-02-27 04:07:47.000000000 -0500
    14 +++ b/configure		2013-07-10 19:57:35.894457259 -0400
    15 @@ -10217,6 +10217,9 @@
    16      with_libgmpxx_prefix="$with_libgmp_prefix"
    17    fi
    18  fi
    19 +CPPFLAGS="$CPPFLAGS -I$with_libgmp_prefix/include"
    20 +CXXFLAGS="$CXXFLAGS -I$with_libgmpxx_prefix/include"
    21 +LDFLAGS="$CPPFLAGS -L$with_libgmpxx_prefix/lib -L$with_libgmp_prefix/lib"
    22  
    23  
    24  # Check whether --with-gmp-build was given.