+CONFIGURE_OPTIONS = \
+ --prefix=/usr \
+ --openssldir=/etc/ssl \
+ shared \
+ zlib-dynamic \
+ enable-camellia \
+ enable-md2 \
+ enable-seed \
+ enable-rfc3779 \
+ enable-ssl3 \
+ enable-ssl3-method \
+ no-idea \
+ no-mdc2 \
+ no-rc5 \
+ no-srp \
+ $(OPENSSL_ARCH)
+
+ifeq "$(IS_64BIT)" "1"
+ OPENSSL_ARCH = linux-generic64
+else
+ OPENSSL_ARCH = linux-generic32
+endif
+
+ifeq "$(BUILD_ARCH)" "aarch64"
+ OPENSSL_ARCH = linux-aarch64
+endif
+
+ifeq "$(BUILD_ARCH)" "x86_64"
+ OPENSSL_ARCH = linux-x86_64
+endif
+
+ifeq "$(BUILD_ARCH)" "i586"
+ OPENSSL_ARCH = linux-elf
+
+ ifneq "$(KCFG)" "-sse2"
+ OPENSSL_ARCH += no-sse2
+ endif
+endif
+