diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index d9b7b88..6b2e64c 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 @@ -150,6 +150,11 @@ fi ]) AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [ +AS_CASE([$host_cpu], + [i?86], [HOSTARCH=intel], + [x86_64], [HOSTARCH=intel], +) +AC_SUBST([HOSTARCH]) crypto_sym=$srcdir/crypto/crypto.sym crypto_p_sym=./crypto/crypto_portable.sym echo "generating $crypto_p_sym ..." @@ -207,6 +212,9 @@ fi if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then echo timingsafe_memcmp >> $crypto_p_sym fi +if test "x$HOSTARCH" = "xintel" ; then + echo OPENSSL_ia32cap_P >> $crypto_p_sym +fi if test "x$HOST_OS" = "xwin" ; then echo posix_perror >> $crypto_p_sym echo posix_fopen >> $crypto_p_sym