2 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3 # -------------------------------------------------------
4 # Tests whether HEADER exists and can be compiled using the include files in
5 # INCLUDES, setting the cache variable VAR accordingly.
6 ac_fn_c_check_header_compile ()
8 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
10 $as_echo_n "checking for $2... " >&6; }
11 if eval \${$3+:} false; then :
12 $as_echo_n "(cached) " >&6
14 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19 if ac_fn_c_try_compile "$LINENO"; then :
24 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28 $as_echo "$ac_res" >&6; }
29 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
31 } # ac_fn_c_check_header_compile
32 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
33 # Local configure fragment for sysdeps/i386.
36 ac_fn_c_check_header_compile "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "/* No default includes. */
38 if test "x$ac_cv_header_cpuid_h" = xyes; then :
41 as_fn_error $? "gcc must provide the <cpuid.h> header" "$LINENO" 5
46 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4 support" >&5
47 $as_echo_n "checking for SSE4 support... " >&6; }
48 if ${libc_cv_cc_sse4+:} false; then :
49 $as_echo_n "(cached) " >&6
51 if { ac_try='${CC-cc} -msse4 -xc /dev/null -S -o /dev/null'
52 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
55 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56 test $ac_status = 0; }; }; then :
63 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_sse4" >&5
64 $as_echo "$libc_cv_cc_sse4" >&6; }
65 if test $libc_cv_cc_sse4 = yes; then
66 $as_echo "#define HAVE_SSE4_SUPPORT 1" >>confdefs.h
70 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler -mtune=i686 support" >&5
71 $as_echo_n "checking for assembler -mtune=i686 support... " >&6; }
72 if ${libc_cv_as_i686+:} false; then :
73 $as_echo_n "(cached) " >&6
75 if { ac_try='${CC-cc} -Wa,-mtune=i686 -xc /dev/null -S -o /dev/null'
76 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
79 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80 test $ac_status = 0; }; }; then :
87 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_i686" >&5
88 $as_echo "$libc_cv_as_i686" >&6; }
90 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX support" >&5
91 $as_echo_n "checking for AVX support... " >&6; }
92 if ${libc_cv_cc_avx+:} false; then :
93 $as_echo_n "(cached) " >&6
95 if { ac_try='${CC-cc} -mavx -xc /dev/null -S -o /dev/null'
96 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
99 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100 test $ac_status = 0; }; }; then :
107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_avx" >&5
108 $as_echo "$libc_cv_cc_avx" >&6; }
109 if test $libc_cv_cc_avx = yes; then
110 $as_echo "#define HAVE_AVX_SUPPORT 1" >>confdefs.h
114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX encoding of SSE instructions" >&5
115 $as_echo_n "checking for AVX encoding of SSE instructions... " >&6; }
116 if ${libc_cv_cc_sse2avx+:} false; then :
117 $as_echo_n "(cached) " >&6
119 if { ac_try='${CC-cc} -msse2avx -xc /dev/null -S -o /dev/null'
120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
124 test $ac_status = 0; }; }; then :
125 libc_cv_cc_sse2avx=yes
127 libc_cv_cc_sse2avx=no
131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_sse2avx" >&5
132 $as_echo "$libc_cv_cc_sse2avx" >&6; }
133 if test $libc_cv_cc_sse2avx = yes; then
134 $as_echo "#define HAVE_SSE2AVX_SUPPORT 1" >>confdefs.h
138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FMA4 support" >&5
139 $as_echo_n "checking for FMA4 support... " >&6; }
140 if ${libc_cv_cc_fma4+:} false; then :
141 $as_echo_n "(cached) " >&6
143 if { ac_try='${CC-cc} -mfma4 -xc /dev/null -S -o /dev/null'
144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
148 test $ac_status = 0; }; }; then :
155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_fma4" >&5
156 $as_echo "$libc_cv_cc_fma4" >&6; }
157 if test $libc_cv_cc_fma4 = yes; then
158 $as_echo "#define HAVE_FMA4_SUPPORT 1" >>confdefs.h
162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mno-vzeroupper support" >&5
163 $as_echo_n "checking for -mno-vzeroupper support... " >&6; }
164 if ${libc_cv_cc_novzeroupper+:} false; then :
165 $as_echo_n "(cached) " >&6
167 if { ac_try='${CC-cc} -mno-vzeroupper -xc /dev/null -S -o /dev/null'
168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
172 test $ac_status = 0; }; }; then :
173 libc_cv_cc_novzeroupper=yes
175 libc_cv_cc_novzeroupper=no
179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_novzeroupper" >&5
180 $as_echo "$libc_cv_cc_novzeroupper" >&6; }
182 $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h