aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/check-libc.m48
1 files changed, 8 insertions, 0 deletions
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
150]) 150])
151 151
152AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [ 152AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [
153AS_CASE([$host_cpu],
154 [i?86], [HOSTARCH=intel],
155 [x86_64], [HOSTARCH=intel],
156)
157AC_SUBST([HOSTARCH])
153crypto_sym=$srcdir/crypto/crypto.sym 158crypto_sym=$srcdir/crypto/crypto.sym
154crypto_p_sym=./crypto/crypto_portable.sym 159crypto_p_sym=./crypto/crypto_portable.sym
155echo "generating $crypto_p_sym ..." 160echo "generating $crypto_p_sym ..."
@@ -207,6 +212,9 @@ fi
207if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then 212if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then
208 echo timingsafe_memcmp >> $crypto_p_sym 213 echo timingsafe_memcmp >> $crypto_p_sym
209fi 214fi
215if test "x$HOSTARCH" = "xintel" ; then
216 echo OPENSSL_ia32cap_P >> $crypto_p_sym
217fi
210if test "x$HOST_OS" = "xwin" ; then 218if test "x$HOST_OS" = "xwin" ; then
211 echo posix_perror >> $crypto_p_sym 219 echo posix_perror >> $crypto_p_sym
212 echo posix_fopen >> $crypto_p_sym 220 echo posix_fopen >> $crypto_p_sym