summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuildconf.sh4
-rw-r--r--configure.in6
2 files changed, 9 insertions, 1 deletions
diff --git a/buildconf.sh b/buildconf.sh
index ceaca5e..1f71126 100755
--- a/buildconf.sh
+++ b/buildconf.sh
@@ -11,6 +11,10 @@ echo "dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh" > aclocal.m4
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
#
diff --git a/configure.in b/configure.in
index d1f4ce8..c9be67d 100644
--- a/configure.in
+++ b/configure.in
@@ -69,7 +69,11 @@ AC_HEADER_STDC
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