diff options
-rw-r--r-- | configure.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.in b/configure.in index fb7b3a3..7ab2e92 100644 --- a/configure.in +++ b/configure.in @@ -1104,10 +1104,10 @@ AC_SUBST(CONFIG_MODE) # Byte sex from the AC_C_BIGENDIAN macro. AC_SUBST(BYTESEX) -if test "X-$WORDS_BIGENDIAN" = "X-"; then - BYTESEX="little-endian" -else +if test $ac_cv_c_bigendian = yes; then BYTESEX="big-endian" +else + BYTESEX="little-endian" fi # Are we compiling static libraries, shared libraries, or both? |