diff options
Diffstat (limited to 'sysdeps/i386/configure')
-rw-r--r-- | sysdeps/i386/configure | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sysdeps/i386/configure b/sysdeps/i386/configure index 7814b3b313..21225cd9c9 100644 --- a/sysdeps/i386/configure +++ b/sysdeps/i386/configure @@ -656,3 +656,28 @@ fi fi { $as_echo "$as_me:$LINENO: result: $libc_cv_as_i686" >&5 $as_echo "$libc_cv_as_i686" >&6; } + +{ $as_echo "$as_me:$LINENO: checking for AVX support" >&5 +$as_echo_n "checking for AVX support... " >&6; } +if test "${libc_cv_cc_avx+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if { ac_try='${CC-cc} -mavx -xc /dev/null -S -o /dev/null' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + libc_cv_cc_avx=yes +else + libc_cv_cc_avx=no +fi +fi +{ $as_echo "$as_me:$LINENO: result: $libc_cv_cc_avx" >&5 +$as_echo "$libc_cv_cc_avx" >&6; } +if test $libc_cv_cc_avx = yes; then + cat >>confdefs.h <<\_ACEOF +#define HAVE_AVX_SUPPORT 1 +_ACEOF + +fi |