From: Eric Bollengier Date: Wed, 11 Aug 2010 17:22:36 +0000 (+0200) Subject: Add ENDIAN detection in config.h/configure.in X-Git-Tag: Release-7.0.0~1613 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b7a57a38616b15657846389307d4b3e1b28d40f5;p=bacula%2Fbacula Add ENDIAN detection in config.h/configure.in --- diff --git a/bacula/autoconf/config.h.in b/bacula/autoconf/config.h.in index 78f1c159f3..7b329e0305 100644 --- a/bacula/autoconf/config.h.in +++ b/bacula/autoconf/config.h.in @@ -1,4 +1,4 @@ -/* autoconf/config.h.in. Generated from autoconf/configure.in by autoheader. */ +/* autoconf/config.h.in. Generated from configure.in by autoheader. */ /* ------------------------------------------------------------------------- */ /* -- CONFIGURE SPECIFIED FEATURES -- */ /* ------------------------------------------------------------------------- */ @@ -243,6 +243,9 @@ #undef ENABLE_NLS +/* Define if building universal (internal helper macro) */ +#undef AC_APPLE_UNIVERSAL_BUILD + /* Define to 1 if the `closedir' function returns void instead of `int'. */ #undef CLOSEDIR_VOID @@ -298,6 +301,9 @@ /* Set if DB batch insert code enabled */ #undef HAVE_BATCH_FILE_INSERT +/* Big Endian */ +#undef HAVE_BIG_ENDIAN + /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT @@ -549,6 +555,9 @@ /* Define to 1 if you have the 'listxattr' function. */ #undef HAVE_LISTXATTR +/* Little Endian */ +#undef HAVE_LITTLE_ENDIAN + /* Define to 1 if you have the 'llistxattr' function. */ #undef HAVE_LLISTXATTR @@ -1016,6 +1025,18 @@ /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif + /* Define to 1 if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 4c743751c8..f0f8595739 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1977,6 +1977,8 @@ AC_LANG_POP(C++) AC_C_CONST +AC_C_BIGENDIAN([AC_DEFINE([HAVE_BIG_ENDIAN], [1], [Big Endian])], [AC_DEFINE([HAVE_LITTLE_ENDIAN], [1], [Little Endian])]) + dnl -------------------------------------------------------------------------- dnl CHECKING FOR FILESYSTEM TYPE dnl --------------------------------------------------------------------------