diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-07-20 02:36:20 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-07-20 02:36:20 +0000 |
commit | 91b142c490644c1c0ae30706272318d3cd672de4 (patch) | |
tree | 7dcc434fd6936d6672750a3c040081c86ece72d8 | |
parent | 0a7c39f5a24a18b7d9a0a7a73a79a94ba0ff3d4c (diff) | |
download | glib-91b142c490644c1c0ae30706272318d3cd672de4.tar.gz |
Workaround AC_C_BIGENDIAN breakage in autoconf 2.61.
svn path=/branches/glib-2-16/; revision=7210
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.in | 13 |
2 files changed, 19 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2008-07-19 Matthias Clasen <mclasen@redhat.com> + + Merge from trunk: + + * configure.in: Workaround AC_C_BIGENDIAN breakage in autoconf 2.61. + 2008-07-11 Tor Lillqvist <tml@novell.com> Merge from trunk: diff --git a/configure.in b/configure.in index a778f82f1..f1f5fb5be 100644 --- a/configure.in +++ b/configure.in @@ -831,6 +831,19 @@ AM_CONDITIONAL(HAVE_SUNSTUDIO_VISIBILITY, [test x$g_have_sunstudio_visibility = # check for bytesex stuff AC_C_BIGENDIAN +if test x$ac_cv_c_bigendian = xuniversal ; then +AC_TRY_COMPILE([#include <endian.h>], [#if __BYTE_ORDER == __BIG_ENDIAN +#else +#error Not a big endian. +#endif], + ac_cv_c_bigendian=yes + ,AC_TRY_COMPILE([#include <endian.h>], [#if __BYTE_ORDER == __LITTLE_ENDIAN +#else +#error Not a little endian. +#endif], + ac_cv_c_bigendian=no + ,AC_MSG_WARN([Could not determine endianness.]))) +fi # check for header files AC_CHECK_HEADERS([dirent.h float.h limits.h pwd.h grp.h sys/param.h sys/poll.h sys/resource.h]) |