summaryrefslogtreecommitdiff
path: root/packages/openssl/openssl.inc
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-08-16 15:12:51 +0000
committerJamie Lenehan <lenehan@twibble.org>2006-08-16 15:12:51 +0000
commit78b520fc2761a9b0c951edba1a7d1700eeec8ad4 (patch)
treefed1b2cddd309e575c2f19d2c83caefa135b33d5 /packages/openssl/openssl.inc
parentbc103273ecb7a2aacd1d796de36e3b066a46d1f0 (diff)
openssl: Update the endianess test to handle the situation where
only {big,litte}endian is set to "no" and neither of them is set to "yes". Previously in the case where only one of the entries was present and set to "no", openssl would just assume little endian, even if it was saying no to little endian. Similar fix as for net-snmp as per #1320.
Diffstat (limited to 'packages/openssl/openssl.inc')
-rw-r--r--packages/openssl/openssl.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/openssl/openssl.inc b/packages/openssl/openssl.inc
index 027351e31a..ab99495c54 100644
--- a/packages/openssl/openssl.inc
+++ b/packages/openssl/openssl.inc
@@ -28,15 +28,12 @@ do_compile () {
# endianness fun.. whee
. ${CONFIG_SITE}
- if test "x$ac_cv_c_bigendian" = "xyes"; then
+ if [ "x$ac_cv_c_bigendian" = "xyes" -o "x$ac_cv_c_littleendian" = "xno" ]; then
CFLAG="${CFLAG} -DB_ENDIAN"
- elif test "x$ac_cv_c_littleendian" = "xyes"; then
+ elif [ "x$ac_cv_c_littleendian" = "xyes" -o "x$ac_cv_c_bigendian" = "xno" ]; then
CFLAG="${CFLAG} -DL_ENDIAN"
- elif test "x$ac_cv_c_bigendian" = "xno" && test "x$ac_cv_c_littleendian" = "xno"; then
- # no idea what to do with this...
- :
else
- CFLAG="${CFLAG} -DL_ENDIAN"
+ oefatal do_configure cannot determine endianess
fi
os=${HOST_OS}