Replace M_El with lit_e in libm-test.inc
[glibc.git] / sysdeps / x86_64 / configure
blob88fbfe457e6d320886ba17acd429974d972564be
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/x86_64.
4 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512 support in assembler" >&5
5 $as_echo_n "checking for AVX512 support in assembler... " >&6; }
6 if ${libc_cv_asm_avx512+:} false; then :
7   $as_echo_n "(cached) " >&6
8 else
9   cat > conftest.s <<\EOF
10         vmovdqu64 %zmm0, (%rsp)
11         vandpd (%rax), %zmm6, %zmm1
12 EOF
13 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
14   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15   (eval $ac_try) 2>&5
16   ac_status=$?
17   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18   test $ac_status = 0; }; }; then
19   libc_cv_asm_avx512=yes
20 else
21   libc_cv_asm_avx512=no
23 rm -f conftest*
25 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_avx512" >&5
26 $as_echo "$libc_cv_asm_avx512" >&6; }
27 if test $libc_cv_asm_avx512 = yes; then
28   $as_echo "#define HAVE_AVX512_ASM_SUPPORT 1" >>confdefs.h
32 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512 support" >&5
33 $as_echo_n "checking for AVX512 support... " >&6; }
34 if ${libc_cv_cc_avx512+:} false; then :
35   $as_echo_n "(cached) " >&6
36 else
37   if { ac_try='${CC-cc} -mavx512f -xc /dev/null -S -o /dev/null'
38   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39   (eval $ac_try) 2>&5
40   ac_status=$?
41   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42   test $ac_status = 0; }; }; then :
43   libc_cv_cc_avx512=$libc_cv_asm_avx512
44 else
45   libc_cv_cc_avx512=no
49 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_avx512" >&5
50 $as_echo "$libc_cv_cc_avx512" >&6; }
51 if test $libc_cv_cc_avx512 = yes; then
52   $as_echo "#define HAVE_AVX512_SUPPORT 1" >>confdefs.h
55 config_vars="$config_vars
56 config-cflags-avx512 = $libc_cv_cc_avx512"
58 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel MPX support" >&5
59 $as_echo_n "checking for Intel MPX support... " >&6; }
60 if ${libc_cv_asm_mpx+:} false; then :
61   $as_echo_n "(cached) " >&6
62 else
63   cat > conftest.s <<\EOF
64         bndmov %bnd0,(%rsp)
65 EOF
66 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
67   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
68   (eval $ac_try) 2>&5
69   ac_status=$?
70   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71   test $ac_status = 0; }; }; then
72   libc_cv_asm_mpx=yes
73 else
74   libc_cv_asm_mpx=no
76 rm -f conftest*
78 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_mpx" >&5
79 $as_echo "$libc_cv_asm_mpx" >&6; }
80 if test $libc_cv_asm_mpx = yes; then
81   $as_echo "#define HAVE_MPX_SUPPORT 1" >>confdefs.h
85 if test x"$build_mathvec" = xnotset; then
86   build_mathvec=yes
89 $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
91 # work around problem with autoconf and empty lines at the end of files