mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-07 22:19:12 +00:00
Use the AC_C_BIGENDIAN_CROSS macro instead of the non-cross-compile-safe
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.
This commit is contained in:
parent
109f8790f9
commit
3b3a7ec889
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue