aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
-rw-r--r--crypto/Makefile.am3
2 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 16ed825..72a49b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,12 +80,12 @@ CFLAGS="$old_cflags"
80 80
81AS_CASE([$host_cpu], 81AS_CASE([$host_cpu],
82 [*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"], 82 [*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"],
83 [*arm*], AS_IF([test "x$BSWAP4" = "xyes"],, 83 [*arm*], [host_cpu=arm],
84 CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"),
85 [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], 84 [*amd64*], [host_cpu=x86_64 HOSTARCH=intel],
86 [i?86], [HOSTARCH=intel], 85 [i?86], [HOSTARCH=intel],
87 [x86_64], [HOSTARCH=intel] 86 [x86_64], [HOSTARCH=intel]
88) 87)
88AS_IF([test "x$BSWAP4" = "xyes" -a "$host_cpu" = "arm" ],,CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT")
89AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"]) 89AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"])
90 90
91AC_MSG_CHECKING([if .gnu.warning accepts long strings]) 91AC_MSG_CHECKING([if .gnu.warning accepts long strings])
@@ -105,6 +105,8 @@ AC_ARG_ENABLE([asm],
105AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"]) 105AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"])
106 106
107# Conditionally enable assembly by default 107# Conditionally enable assembly by default
108AM_CONDITIONAL([HOST_ASM_ELF_ARM],
109 [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "arm" -a "x$enable_asm" != "xno"])
108AM_CONDITIONAL([HOST_ASM_ELF_X86_64], 110AM_CONDITIONAL([HOST_ASM_ELF_X86_64],
109 [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) 111 [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"])
110AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64], 112AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64],
diff --git a/crypto/Makefile.am b/crypto/Makefile.am
index 864b2d3..ba96c51 100644
--- a/crypto/Makefile.am
+++ b/crypto/Makefile.am
@@ -192,9 +192,11 @@ include Makefile.am.arc4random
192libcrypto_la_SOURCES = 192libcrypto_la_SOURCES =
193EXTRA_libcrypto_la_SOURCES = 193EXTRA_libcrypto_la_SOURCES =
194 194
195include Makefile.am.elf-arm
195include Makefile.am.elf-x86_64 196include Makefile.am.elf-x86_64
196include Makefile.am.macosx-x86_64 197include Makefile.am.macosx-x86_64
197 198
199if !HOST_ASM_ELF_ARM
198if !HOST_ASM_ELF_X86_64 200if !HOST_ASM_ELF_X86_64
199if !HOST_ASM_MACOSX_X86_64 201if !HOST_ASM_MACOSX_X86_64
200libcrypto_la_SOURCES += aes/aes_cbc.c 202libcrypto_la_SOURCES += aes/aes_cbc.c
@@ -206,6 +208,7 @@ libcrypto_la_SOURCES += rc4/rc4_skey.c
206libcrypto_la_SOURCES += whrlpool/wp_block.c 208libcrypto_la_SOURCES += whrlpool/wp_block.c
207endif 209endif
208endif 210endif
211endif
209 212
210libcrypto_la_SOURCES += cpt_err.c 213libcrypto_la_SOURCES += cpt_err.c
211libcrypto_la_SOURCES += cryptlib.c 214libcrypto_la_SOURCES += cryptlib.c