diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-11-20 17:10:09 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-11-20 17:10:09 (GMT) |
commit | 8cd606ddc2d4999d4a87f784cd5cfc8381f9b314 (patch) | |
tree | 58d2fa6169c80bf6c36a3e8a1bd644d69421e7f2 | |
parent | 195830c10674f99e0c4cdfcae83d9b435582424a (diff) |
MPFR: correctly re-install config.{guess,sub} with autotools >=2.0.0.
/trunk/scripts/build/mpfr.sh | 14 13 1 0 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
-rw-r--r-- | scripts/build/mpfr.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/build/mpfr.sh b/scripts/build/mpfr.sh index 664e341..a7c6d72 100644 --- a/scripts/build/mpfr.sh +++ b/scripts/build/mpfr.sh @@ -37,7 +37,19 @@ do_mpfr_extract() { if [ ! -f .autotools.ct-ng ]; then CT_DoLog DEBUG "Re-building autotools files" CT_DoExecLog ALL autoreconf -fi - CT_DoExecLog ALL libtoolize -f + # Starting with libtool-1.9f, config.{guess,sub} are no longer + # installed without -i, but starting with libtool-2.2.6, they + # are no longer removed without -i. Sight... Just use -i with + # libtool >=2 + # See: http://sourceware.org/ml/crossgcc/2008-11/msg00046.html + # and: http://sourceware.org/ml/crossgcc/2008-11/msg00048.html + libtoolize_opt= + case "$(libtoolize --version |head -n 1 |gawk '{ print $(NF); }')" in + 0.*) ;; + 1.*) ;; + *) libtoolize_opt=-i;; + esac + CT_DoExecLog ALL libtoolize -f ${libtoolize_opt} touch .autotools.ct-ng fi CT_Popd |