diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-03 23:44:53 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-03 23:44:53 +0000 |
commit | f3e524e9b8908cdecba4eb7be58506ae60f6601a (patch) | |
tree | 9b5a391c0add620934f478e4ed676f965739b6fd /libgo/configure.ac | |
parent | bb2288b7d8e3bbca6175656a70f0a179a7cff7be (diff) | |
download | linaro-gcc-f3e524e9b8908cdecba4eb7be58506ae60f6601a.tar.gz linaro-gcc-f3e524e9b8908cdecba4eb7be58506ae60f6601a.tar.bz2 linaro-gcc-f3e524e9b8908cdecba4eb7be58506ae60f6601a.zip |
syscall, net: Fix GNU/Linux netlink code for big-endian systems.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186123 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/configure.ac')
-rw-r--r-- | libgo/configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgo/configure.ac b/libgo/configure.ac index b47d17d015f..8be03911b87 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -400,6 +400,12 @@ dnl Test if -lrt is required for sched_yield. AC_SEARCH_LIBS([sched_yield], [rt]) AC_C_BIGENDIAN +case $ac_cv_c_bigendian in + yes) GO_BIGENDIAN=true ;; + no) GO_BIGENDIAN=false ;; + *) AC_MSG_ERROR([unknown endianness]) ;; +esac +AC_SUBST(GO_BIGENDIAN) GCC_CHECK_UNWIND_GETIPINFO |