--- a/configure.in +++ b/configure.in @@ -13,7 +13,7 @@ dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h) +AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h endian.h sys/endian.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST --- a/src/billard3d.c +++ b/src/billard3d.c @@ -24,7 +24,11 @@ #include #include #include +#ifdef HAVE_ENDIAN_H #include +#elif defined(HAVE_SYS_ENDIAN_H) +#include +#endif #ifndef USE_SDL #include