Fixed bug #878
authorSam Lantinga <slouken@libsdl.org>
Mon, 09 Nov 2009 04:13:51 +0000
changeset 3426ee0178f1c507
parent 3425 25ccea045c9f
child 3427 36cf454ba065
Fixed bug #878

Jack Jansen 2009-11-05 14:20:22 PST

I'm building "fat" SDL 1.3 libraries for MacOSX, but now I am running into the
issue that audio does not work on PowerPC macintoshes if you build the library
on an Intel.

The problem is that configure hard-codes the byteorder, which is then stored in
SDL_config.h
configure.in
include/SDL_config.h.in
     1.1 --- a/configure.in	Sun Nov 08 04:21:59 2009 +0000
     1.2 +++ b/configure.in	Mon Nov 09 04:13:51 2009 +0000
     1.3 @@ -48,12 +48,6 @@
     1.4  
     1.5  dnl Detect the canonical build and host environments
     1.6  dnl AC_CANONICAL_HOST
     1.7 -AC_C_BIGENDIAN
     1.8 -if test x$ac_cv_c_bigendian = xyes; then
     1.9 -    AC_DEFINE(SDL_BYTEORDER, 4321)
    1.10 -else
    1.11 -    AC_DEFINE(SDL_BYTEORDER, 1234)
    1.12 -fi
    1.13  
    1.14  dnl Check for tools
    1.15  AC_PROG_LIBTOOL
     2.1 --- a/include/SDL_config.h.in	Sun Nov 08 04:21:59 2009 +0000
     2.2 +++ b/include/SDL_config.h.in	Mon Nov 09 04:13:51 2009 +0000
     2.3 @@ -59,9 +59,6 @@
     2.4  #undef SIZEOF_VOIDP
     2.5  #undef SDL_HAS_64BIT_TYPE
     2.6  
     2.7 -/* Endianness */
     2.8 -#undef SDL_BYTEORDER
     2.9 -
    2.10  /* Comment this if you want to build without any C library requirements */
    2.11  #undef HAVE_LIBC
    2.12  #if HAVE_LIBC