Index: configure =================================================================== --- configure (revision 62480) +++ configure (working copy) @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 62447 . +# From configure.in Revision: 62451 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for python 2.6. # @@ -4532,6 +4532,67 @@ then BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" fi + + # The gcc -mieee option provides full IEEE 754 support (modulo + # correct treatment of the 'inexact' flag) on some machines that + # only provide partial hardware support for IEEE 754; for example, + # on alpha. Use -mieee if it's supported. + { echo "$as_me:$LINENO: checking whether $CC accepts -mieee" >&5 +echo $ECHO_N "checking whether $CC accepts -mieee... $ECHO_C" >&6; } + ac_save_cc="$CC" + CC="$CC -mieee" + if test "$cross_compiling" = yes; then + ac_cv_mieee_ok=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +int main() { return 0; } +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_mieee_ok=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_mieee_ok=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + + CC="$ac_save_cc" + { echo "$as_me:$LINENO: result: $ac_cv_mieee_ok" >&5 +echo "${ECHO_T}$ac_cv_mieee_ok" >&6; } + if test $ac_cv_mieee_ok = yes + then + BASECFLAGS="$BASECFLAGS -mieee" + fi + case $ac_sys_system in SCO_SV*) BASECFLAGS="$BASECFLAGS -m486 -DSCO5" Index: configure.in =================================================================== --- configure.in (revision 62480) +++ configure.in (working copy) @@ -817,6 +817,25 @@ then BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" fi + + # The gcc -mieee option provides full IEEE 754 support (modulo + # correct treatment of the 'inexact' flag) on some machines that + # only provide partial hardware support for IEEE 754; for example, + # on alpha. Use -mieee if it's supported. + AC_MSG_CHECKING(whether $CC accepts -mieee) + ac_save_cc="$CC" + CC="$CC -mieee" + AC_TRY_RUN([int main() { return 0; }], + ac_cv_mieee_ok=yes, + ac_cv_mieee_ok=no, + ac_cv_mieee_ok=no) + CC="$ac_save_cc" + AC_MSG_RESULT($ac_cv_mieee_ok) + if test $ac_cv_mieee_ok = yes + then + BASECFLAGS="$BASECFLAGS -mieee" + fi + case $ac_sys_system in SCO_SV*) BASECFLAGS="$BASECFLAGS -m486 -DSCO5"