From ca434073387b648f2644cc87425619a930e0a224 Mon Sep 17 00:00:00 2001 From: Jamie Lenehan Date: Wed, 16 Aug 2006 14:52:12 +0000 Subject: net-snmp 5.1.2: 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". Saying it's "not big endian" seems a bit backwards but that's what some site files seem to get by with. Closes #1320 "net-snmp-5.1.2 fails on uclibc x86 and ppc". --- packages/net-snmp/net-snmp_5.1.2.bb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/net-snmp/net-snmp_5.1.2.bb b/packages/net-snmp/net-snmp_5.1.2.bb index d60b03a746..25c9e62f7c 100644 --- a/packages/net-snmp/net-snmp_5.1.2.bb +++ b/packages/net-snmp/net-snmp_5.1.2.bb @@ -18,15 +18,16 @@ EXTRA_OECONF = "--enable-shared --disable-manuals" EXTRA_OEMAKE = "INSTALL_PREFIX=${D}" do_configure() { - # endianness fun.. inspired by openssl.inc + # endianness fun... inspired by openssl.inc . ${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 ENDIANESS=" --with-endianness=big" - elif test "x$ac_cv_c_littleendian" = "xyes"; then + elif [ "x$ac_cv_c_littleendian" = "xyes" -o "x$ac_cv_c_bigendian" = "xno" ]; then ENDIANESS=" --with-endianness=little" else oefatal do_configure cannot determine endianess fi + oenote Determined endianess as: $ENDIANESS oe_runconf $ENDIANESS } -- cgit v1.2.3