configure.in
changeset 1354 22f39393668a
parent 1353 7ba544e2888d
child 1361 19418e4422cb
     1.1 --- a/configure.in	Thu Feb 09 09:07:13 2006 +0000
     1.2 +++ b/configure.in	Thu Feb 09 09:38:05 2006 +0000
     1.3 @@ -41,6 +41,12 @@
     1.4  
     1.5  dnl Detect the canonical host and target build environment
     1.6  AC_CANONICAL_SYSTEM
     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 Setup for automake
    1.15  AM_INIT_AUTOMAKE(SDL, $SDL_VERSION)
    1.16 @@ -118,7 +124,7 @@
    1.17  dnl See whether we are allowed to use the system C library
    1.18  AC_ARG_ENABLE(libc,
    1.19  [  --enable-libc           Use the system C library [default=yes]],
    1.20 -              , AC_DEFINE([HAVE_LIBC]))
    1.21 +              , AC_DEFINE(HAVE_LIBC))
    1.22  
    1.23  dnl Check for compiler characteristics
    1.24  AC_C_CONST
    1.25 @@ -286,15 +292,6 @@
    1.26  else
    1.27      CFLAGS="$CFLAGS -DDISABLE_TIMERS"
    1.28  fi
    1.29 -AC_ARG_ENABLE(endian,
    1.30 -[  --enable-endian         Enable the endian subsystem [default=yes]],
    1.31 -              , enable_endian=yes)
    1.32 -if test x$enable_endian = xyes; then
    1.33 -    SDL_EXTRADIRS="$SDL_EXTRADIRS endian"
    1.34 -    SDL_EXTRALIBS="$SDL_EXTRALIBS endian/libendian.la"
    1.35 -else
    1.36 -    CFLAGS="$CFLAGS -DDISABLE_ENDIAN"
    1.37 -fi
    1.38  AC_ARG_ENABLE(file,
    1.39  [  --enable-file           Enable the file subsystem [default=yes]],
    1.40                , enable_file=yes)
    1.41 @@ -3051,7 +3048,6 @@
    1.42  CFLAGS="$CFLAGS -I\$(top_srcdir)/src/cdrom"
    1.43  CFLAGS="$CFLAGS -I\$(top_srcdir)/src/thread"
    1.44  CFLAGS="$CFLAGS -I\$(top_srcdir)/src/timer"
    1.45 -CFLAGS="$CFLAGS -I\$(top_srcdir)/src/endian"
    1.46  CFLAGS="$CFLAGS -I\$(top_srcdir)/src/file"
    1.47  CFLAGS="$CFLAGS -I\$(top_builddir)/src/thread"
    1.48  CXXFLAGS="$CFLAGS"
    1.49 @@ -3180,7 +3176,6 @@
    1.50  src/cdrom/win32/Makefile
    1.51  src/thread/Makefile
    1.52  src/timer/Makefile
    1.53 -src/endian/Makefile
    1.54  src/file/Makefile
    1.55  src/cpuinfo/Makefile
    1.56  src/hermes/Makefile