Skip to content

Commit

Permalink
Change names of endian definitions in autoconf
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Mar 5, 2014
1 parent 2985fbc commit 49ca8f0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
7 changes: 5 additions & 2 deletions configure
Expand Up @@ -4843,10 +4843,13 @@ fi
$as_echo "$ac_cv_c_bigendian" >&6; }
case $ac_cv_c_bigendian in #(
yes)
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
$as_echo "#define BIGENDIAN 1" >>confdefs.h
;; #(
no)
;; #(
$as_echo "#define LITTLEENDIAN 1" >>confdefs.h
;; #(
universal)
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Expand Down
5 changes: 4 additions & 1 deletion configure.ac
Expand Up @@ -205,7 +205,10 @@ dnl #
dnl # check for system bytesex
dnl # AC_DEFINES WORDS_BIGENDIAN
dnl #
AC_C_BIGENDIAN
AC_C_BIGENDIAN(
[AC_DEFINE(BIGENDIAN, 1, [Define if your processor stores words with the most significant byte first])],
[AC_DEFINE(LITTLEENDIAN, 1, [Define if your processor stores words with the least significant byte first])]
)

dnl #
dnl # Find GNU Make.
Expand Down
8 changes: 8 additions & 0 deletions src/include/autoconf.h.in
Expand Up @@ -3,6 +3,10 @@
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD

/* Define if your processor stores words with the most significant byte first
*/
#undef BIGENDIAN

/* BSD-Style get*byaddr_r */
#undef BSDSTYLE

Expand Down Expand Up @@ -397,6 +401,10 @@
/* compiler specific 128 bit unsigned integer */
#undef HAVE___UINT128_T

/* Define if your processor stores words with the least significant byte first
*/
#undef LITTLEENDIAN

/* define if you have OSFC2 authentication */
#undef OSFC2

Expand Down

0 comments on commit 49ca8f0

Please sign in to comment.