@@ -11790,6 +11790,60 @@ if test $simd != yes; then
11790
11790
fi
11791
11791
fi
11792
11792
11793
+ if test "x$simd" != xno; then
11794
+ CFLAGS_EX=""
11795
+ if test 1 -gt 0; then :
11796
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -maes -mpclmul" >&5
11797
+ $as_echo_n "checking if $CC supports -maes -mpclmul... " >&6; }
11798
+ fi
11799
+ ac_ext=c
11800
+ ac_cpp='$CPP $CPPFLAGS'
11801
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11802
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11803
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
11804
+
11805
+ ac_saved_cflags="$CFLAGS"
11806
+ CFLAGS="-Werror -maes -mpclmul"
11807
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808
+ /* end confdefs.h. */
11809
+
11810
+ int
11811
+ main ()
11812
+ {
11813
+
11814
+ ;
11815
+ return 0;
11816
+ }
11817
+ _ACEOF
11818
+ if ac_fn_c_try_compile "$LINENO"; then :
11819
+ if test "1" -gt 0; then :
11820
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11821
+ $as_echo "yes" >&6; }
11822
+ fi
11823
+ CFLAGS_EX="$CFLAGS_EX -maes -mpclmul"
11824
+
11825
+ else
11826
+ if test 1 -gt 0; then :
11827
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828
+ $as_echo "no" >&6; }
11829
+ fi
11830
+ if test "1" = 2; then :
11831
+ as_fn_error $? "Not supported by compiler" "$LINENO" 5
11832
+ fi
11833
+
11834
+ fi
11835
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836
+ CFLAGS="$ac_saved_cflags"
11837
+ ac_ext=c
11838
+ ac_cpp='$CPP $CPPFLAGS'
11839
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11840
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11841
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
11842
+
11843
+
11844
+ CPU_BEST_FLAGS="$CPU_BEST_FLAGS $CFLAGS_EX"
11845
+ fi
11846
+
11793
11847
CC="$CC_BACKUP"
11794
11848
CFLAGS="$CFLAGS_BACKUP"
11795
11849
0 commit comments