11#! /bin/sh
2- # From configure.in Revision: 71663 .
2+ # From configure.in Revision: 71704 .
33# Guess values for system-dependent variables and create Makefiles.
44# Generated by GNU Autoconf 2.61 for python 3.1.
55#
@@ -21827,174 +21827,21 @@ _ACEOF
2182721827
2182821828fi
2182921829
21830- # David Gay's code in Python/dtoa.c requires that the FPU uses 53-bit
21830+ # The short float repr introduced in Python 3.1 requires the
21831+ # correctly-rounded string <-> double conversion functions in
21832+ # Python/dtoa.c, which in turn require that the FPU uses 53-bit
2183121833# rounding; this is a particular problem on x86, where the x87 FPU has
2183221834# a default rounding precision of 64 bits. For gcc/x86, we try to fix
21833- # this by:
21834- #
21835- # (1) using the SSE2 instruction set when available (it usually is
21836- # on modern machines)
21837- # (2) using inline assembler to get and set the x87 FPU control word
21838- # otherwise.
21839- #
21840- # On AMD64 (aka x86-64), gcc automatically enables use of SSE2
21841- # instructions, so we don't bother trying to detect.
21835+ # this by using inline assembler to get and set the x87 FPU control
21836+ # word.
2184221837
2184321838if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
2184421839then
21845- # determine whether we're already using the SSE2 instruction set for math
21846- # (e.g., this is true by default on OS X/x86)
21847- { echo "$as_me:$LINENO: checking whether SSE2 instructions are already enabled for math" >&5
21848- echo $ECHO_N "checking whether SSE2 instructions are already enabled for math... $ECHO_C" >&6; }
21849- if test -n "`$CC -dM -E - </dev/null | grep __SSE2_MATH__`"
21850- then
21851- ac_sse2_enabled=yes
21852- else
21853- ac_sse2_enabled=no
21854- fi
21855- { echo "$as_me:$LINENO: result: $ac_sse2_enabled" >&5
21856- echo "${ECHO_T}$ac_sse2_enabled" >&6; }
21857-
21858- # if we're not using SSE2 already, we need to either enable it
21859- # (when available), or use inline assembler to get and set the
21860- # 387 control word.
21861- if test $ac_sse2_enabled = no
21862- then
21863- # Check cpuid for SSE2 availability. Bits 25 and 26 of edx tell
21864- # us about SSE and SSE2 respectively.
21865- { echo "$as_me:$LINENO: checking whether SSE2 instructions are available on this CPU" >&5
21866- echo $ECHO_N "checking whether SSE2 instructions are available on this CPU... $ECHO_C" >&6; }
21867- if test "$cross_compiling" = yes; then
21868- ac_cv_cpu_has_sse2=no
21869- else
21870- cat >conftest.$ac_ext <<_ACEOF
21871- /* confdefs.h. */
21872- _ACEOF
21873- cat confdefs.h >>conftest.$ac_ext
21874- cat >>conftest.$ac_ext <<_ACEOF
21875- /* end confdefs.h. */
21876-
21877- int main() {
21878- unsigned int ax, bx, cx, dx, func;
21879- func = 1U;
21880- __asm__ __volatile__ (
21881- "pushl %%ebx\n\t" /* don't clobber ebx */
21882- "cpuid\n\t"
21883- "movl %%ebx, %1\n\t"
21884- "popl %%ebx"
21885- : "=a" (ax), "=r" (bx), "=c" (cx), "=d" (dx)
21886- : "a" (func)
21887- : "cc" );
21888- if ((dx & (1U << 25)) && (dx & (1U << 26)))
21889- return 0;
21890- else
21891- return 1;
21892- }
21893-
21894- _ACEOF
21895- rm -f conftest$ac_exeext
21896- if { (ac_try="$ac_link"
21897- case "(($ac_try" in
21898- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899- *) ac_try_echo=$ac_try;;
21900- esac
21901- eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902- (eval "$ac_link") 2>&5
21903- ac_status=$?
21904- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21906- { (case "(($ac_try" in
21907- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908- *) ac_try_echo=$ac_try;;
21909- esac
21910- eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911- (eval "$ac_try") 2>&5
21912- ac_status=$?
21913- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914- (exit $ac_status); }; }; then
21915- ac_cv_cpu_has_sse2=yes
21916- else
21917- echo "$as_me: program exited with status $ac_status" >&5
21918- echo "$as_me: failed program was:" >&5
21919- sed 's/^/| /' conftest.$ac_ext >&5
21920-
21921- ( exit $ac_status )
21922- ac_cv_cpu_has_sse2=no
21923- fi
21924- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21925- fi
21926-
21927-
21928- { echo "$as_me:$LINENO: result: $ac_cv_cpu_has_sse2" >&5
21929- echo "${ECHO_T}$ac_cv_cpu_has_sse2" >&6; }
21930-
21931- # determine whether gcc accepts options to turn on SSE2
21932- { echo "$as_me:$LINENO: checking whether $CC accepts -msse2 -mfpmath=sse" >&5
21933- echo $ECHO_N "checking whether $CC accepts -msse2 -mfpmath=sse... $ECHO_C" >&6; }
21934- ac_save_cc="$CC"
21935- CC="$CC -msse2 -mfpmath=sse"
21936- if test "$cross_compiling" = yes; then
21937- ac_cv_msse2_ok=no
21938- else
21939- cat >conftest.$ac_ext <<_ACEOF
21940- /* confdefs.h. */
21941- _ACEOF
21942- cat confdefs.h >>conftest.$ac_ext
21943- cat >>conftest.$ac_ext <<_ACEOF
21944- /* end confdefs.h. */
21945- int main() { return 0; }
21946- _ACEOF
21947- rm -f conftest$ac_exeext
21948- if { (ac_try="$ac_link"
21949- case "(($ac_try" in
21950- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951- *) ac_try_echo=$ac_try;;
21952- esac
21953- eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954- (eval "$ac_link") 2>&5
21955- ac_status=$?
21956- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21958- { (case "(($ac_try" in
21959- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960- *) ac_try_echo=$ac_try;;
21961- esac
21962- eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963- (eval "$ac_try") 2>&5
21964- ac_status=$?
21965- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966- (exit $ac_status); }; }; then
21967- ac_cv_msse2_ok=yes
21968- else
21969- echo "$as_me: program exited with status $ac_status" >&5
21970- echo "$as_me: failed program was:" >&5
21971- sed 's/^/| /' conftest.$ac_ext >&5
21972-
21973- ( exit $ac_status )
21974- ac_cv_msse2_ok=no
21975- fi
21976- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21977- fi
21978-
21979-
21980- CC="$ac_save_cc"
21981- { echo "$as_me:$LINENO: result: $ac_cv_msse2_ok" >&5
21982- echo "${ECHO_T}$ac_cv_msse2_ok" >&6; }
21983-
21984- if test $ac_cv_cpu_has_sse2 = yes && test $ac_cv_msse2_ok = yes
21985- then
21986- BASECFLAGS="$BASECFLAGS -msse2 -mfpmath=sse"
21987- else
21988- # SSE2 doesn't appear to be available. Check that it's okay
21989- # to use gcc inline assembler to get and set x87 control word
21990-
21991- cat >>confdefs.h <<\_ACEOF
21992- #define USING_X87_FPU 1
21993- _ACEOF
21994-
21995- { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
21840+ # Check that it's okay to use gcc inline assembler to get and set
21841+ # x87 control word
21842+ { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
2199621843echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
21997- cat >conftest.$ac_ext <<_ACEOF
21844+ cat >conftest.$ac_ext <<_ACEOF
2199821845/* confdefs.h. */
2199921846_ACEOF
2200021847cat confdefs.h >>conftest.$ac_ext
@@ -22005,9 +21852,9 @@ int
2200521852main ()
2200621853{
2200721854
22008- unsigned short cw;
22009- __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22010- __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
21855+ unsigned short cw;
21856+ __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
21857+ __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
2201121858
2201221859 ;
2201321860 return 0;
@@ -22039,17 +21886,15 @@ sed 's/^/| /' conftest.$ac_ext >&5
2203921886fi
2204021887
2204121888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22042- { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
21889+ { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
2204321890echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22044- if test "$have_gcc_asm_for_x87" = yes
22045- then
21891+ if test "$have_gcc_asm_for_x87" = yes
21892+ then
2204621893
2204721894cat >>confdefs.h <<\_ACEOF
2204821895#define HAVE_GCC_ASM_FOR_X87 1
2204921896_ACEOF
2205021897
22051- fi
22052- fi
2205321898 fi
2205421899fi
2205521900
0 commit comments