diff -r aa89c67f0ffc -r c70053450b4e scripts/build/mpfr.sh --- a/scripts/build/mpfr.sh Sun Aug 17 14:10:44 2008 +0000 +++ b/scripts/build/mpfr.sh Tue Nov 25 19:15:34 2008 +0000 @@ -37,7 +37,19 @@ 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