version normally provided with autoconf.
I have not tested this in a cross-compilation environment, but it does
not break things in my x86 environment. (If this breaks things for anyone,
please file a bug report!)
This closes SF patch #431342.
echo "dnl edits here will be lost" >> aclocal.m4
cat $ltfile >> aclocal.m4
+ltfile='conftools/ac_c_bigendian_cross.m4'
+echo "Incorporating $ltfile into aclocal.m4 ..."
+cat $ltfile >> aclocal.m4
+
#
# Create the libtool helper files
#
AC_CHECK_HEADERS(fcntl.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
-AC_C_BIGENDIAN
+
+dnl Note: Avoid using AC_C_BIGENDIAN because it does not
+dnl work in a cross compile.
+AC_C_BIGENDIAN_CROSS
+
AC_C_CONST
AC_TYPE_OFF_T
AC_TYPE_SIZE_T