--- a/configure.ac 2026-10-19 16:56:21.189809724 +0200 +++ b/configure.ac 2026-10-19 16:56:21.205049887 +0200 @@ -268,6 +268,10 @@ int main() { *-*-mingw32* | *-*-cygwin*) bf_lsbf=1 ;; + *-*-linux*) + # GCC allocates bitfields in byte order + test "x$ac_cv_c_bigendian" = xyes && bf_lsbf=0 || bf_lsbf=1 + ;; *) AC_MSG_RESULT([unknown]) AC_MSG_ERROR([value of bitfield test isn't known for $host