Fix building MPFR >= 2.4.0.

/trunk/scripts/build/mpfr.sh |   51    29    22     0 ++++++++++++++++++++++++++++----------------------
 1 file changed, 29 insertions(+), 22 deletions(-)
This commit is contained in:
Yann E. MORIN" 2009-03-08 22:13:27 +00:00
parent 20945a3465
commit 9bd1c96d1f

View File

@ -28,6 +28,9 @@ do_mpfr_extract() {
# and: http://sourceware.org/ml/crossgcc/2008-06/msg00005.html
# This hack is not bad per se, but the MPFR guys would be better not to
# do that in the future...
# It seems that MPFR >= 2.4.0 do not need this...
case "${CT_MPFR_VERSION}" in
1.*|2.0.*|2.1.*|2.2.*|2.3.*)
CT_Pushd "${CT_SRC_DIR}/mpfr-${CT_MPFR_VERSION}"
if [ ! -f .autotools.ct-ng ]; then
CT_DoLog DEBUG "Re-building autotools files"
@ -48,6 +51,8 @@ do_mpfr_extract() {
touch .autotools.ct-ng
fi
CT_Popd
;;
esac
}
do_mpfr() {
@ -57,13 +62,14 @@ do_mpfr() {
CT_DoStep INFO "Installing MPFR"
mpfr_opt=
# Under Cygwin, wa can't bnuild a thread-safe library
# Under Cygwin, we can't build a thread-safe library
case "${CT_HOST}" in
*-cygwin) mpfr_opt="--disable-thread-safe";;
*) mpfr_opt="--enable-thread-safe";;
esac
CT_DoLog EXTRA "Configuring MPFR"
CC="${CT_HOST}-gcc" \
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
CT_DoExecLog ALL \
"${CT_SRC_DIR}/mpfr-${CT_MPFR_VERSION}/configure" \
@ -98,13 +104,14 @@ do_mpfr_target() {
CT_DoStep INFO "Installing MPFR for the target"
mpfr_opt=
# Under Cygwin, wa can't bnuild a thread-safe library
# Under Cygwin, we can't build a thread-safe library
case "${CT_TARGET}" in
*-cygwin) mpfr_opt="--disable-thread-safe";;
*) mpfr_opt="--enable-thread-safe";;
esac
CT_DoLog EXTRA "Configuring MPFR"
CC="${CT_TARGET}-gcc" \
CFLAGS="${CT_CFLAGS_FOR_TARGET}" \
CT_DoExecLog ALL \
"${CT_SRC_DIR}/mpfr-${CT_MPFR_VERSION}/configure" \