--- rp-pppoe-3.10/src/configure.in.ori 2011-07-10 00:49:30.000000000 +0200 +++ rp-pppoe-3.10/src/configure.in.ori 2011-07-10 11:35:58.000000000 +0200 @@ -230,37 +230,10 @@ esac dnl Figure out packing order of structures -AC_MSG_CHECKING([packing order of bit fields]) -AC_TRY_RUN([ -union foo { - struct bar { - unsigned int ver:4; - unsigned int type:4; - } bb; - unsigned char baz; -}; +AC_C_BIGENDIAN() -int -main(void) -{ - union foo x; - x.bb.ver = 1; - x.bb.type = 2; - if (x.baz == 0x21) { - return 1; - } else if (x.baz == 0x12) { - return 0; - } else { - return 2; - } -}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev, -$ECHO "no defaults for cross-compiling"; exit 0) - -if test "$rpppoe_cv_pack_bitfields" = "rev" ; then - AC_MSG_RESULT(reversed) +if test "$ac_cv_c_bigendian" = "yes" ; then AC_DEFINE(PACK_BITFIELDS_REVERSED, 1, [Define if bitfields are packed in reverse order]) -else - AC_MSG_RESULT(normal) fi # Sigh... got to fix this up for tcl