configure.in
changeset 5512 56ab281d7d3e
parent 5482 2c0477323626
child 5548 8f0abb6ef37d
     1.1 --- a/configure.in	Fri Mar 25 13:19:48 2011 -0700
     1.2 +++ b/configure.in	Fri Mar 25 13:47:49 2011 -0700
     1.3 @@ -198,13 +198,6 @@
     1.4  
     1.5      dnl Check for typedefs, structures, etc.
     1.6      AC_TYPE_SIZE_T
     1.7 -    if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then
     1.8 -        AC_CHECK_TYPE(int64_t)
     1.9 -        if test x$ac_cv_type_int64_t = xyes; then
    1.10 -            AC_DEFINE(SDL_HAS_64BIT_TYPE)
    1.11 -        fi
    1.12 -        have_inttypes=yes
    1.13 -    fi
    1.14  
    1.15      dnl Check for defines
    1.16      AC_CHECK_DEFINE(M_PI, math.h)
    1.17 @@ -245,48 +238,6 @@
    1.18  fi
    1.19  
    1.20  AC_CHECK_SIZEOF(void*)
    1.21 -if test x$have_inttypes != xyes; then
    1.22 -    AC_CHECK_SIZEOF(char, 1)
    1.23 -    AC_CHECK_SIZEOF(short, 2)
    1.24 -    AC_CHECK_SIZEOF(int, 4)
    1.25 -    AC_CHECK_SIZEOF(long, 4)
    1.26 -    AC_CHECK_SIZEOF(long long, 8)
    1.27 -    if test x$ac_cv_sizeof_char = x1; then
    1.28 -        AC_DEFINE(int8_t, signed char)
    1.29 -        AC_DEFINE(uint8_t, unsigned char)
    1.30 -    fi
    1.31 -    if test x$ac_cv_sizeof_short = x2; then
    1.32 -        AC_DEFINE(int16_t, signed short)
    1.33 -        AC_DEFINE(uint16_t, unsigned short)
    1.34 -    else
    1.35 -        if test x$ac_cv_sizeof_int = x2; then
    1.36 -            AC_DEFINE(int16_t, signed int)
    1.37 -            AC_DEFINE(uint16_t, unsigned int)
    1.38 -        fi
    1.39 -    fi
    1.40 -    if test x$ac_cv_sizeof_int = x4; then
    1.41 -        AC_DEFINE(int32_t, signed int)
    1.42 -        AC_DEFINE(uint32_t, unsigned int)
    1.43 -    else
    1.44 -        if test x$ac_cv_sizeof_long = x4; then
    1.45 -            AC_DEFINE(int32_t, signed long)
    1.46 -            AC_DEFINE(uint32_t, unsigned long)
    1.47 -        fi
    1.48 -    fi
    1.49 -    if test x$ac_cv_sizeof_long = x8; then
    1.50 -        AC_DEFINE(int64_t, signed long)
    1.51 -        AC_DEFINE(uint64_t, unsigned long)
    1.52 -        AC_DEFINE(SDL_HAS_64BIT_TYPE)
    1.53 -    else
    1.54 -        if test x$ac_cv_sizeof_long_long = x8; then
    1.55 -            AC_DEFINE(int64_t, signed long long)
    1.56 -            AC_DEFINE(uint64_t, unsigned long long)
    1.57 -            AC_DEFINE(SDL_HAS_64BIT_TYPE)
    1.58 -        fi
    1.59 -    fi
    1.60 -    AC_DEFINE(size_t, unsigned int)
    1.61 -    AC_DEFINE(uintptr_t, unsigned long)
    1.62 -fi
    1.63  
    1.64  dnl See whether we can use gcc atomic operations on this architecture
    1.65  AC_ARG_ENABLE(gcc-atomics,