From c9fcaea7ef40264a60578ad15e0f5f69fe43204b Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Wed, 31 Jul 2013 12:13:26 -0400 Subject: [PATCH] Further fix SIZEOF_VOIDP in SDL_config.h.in The configure script was still overwriting SIZEOF_VOIDP so both ended up as either 4 or 8 depending on the arch. This simply removes the check from configure.in --- configure | 33 --------------------------------- configure.in | 2 +- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/configure b/configure index ff1702ed5..de41b5d54 100755 --- a/configure +++ b/configure @@ -16853,39 +16853,6 @@ fi fi -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 -$as_echo_n "checking size of void*... " >&6; } -if ${ac_cv_sizeof_voidp+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_voidp" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (void*) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_voidp=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 -$as_echo "$ac_cv_sizeof_voidp" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_VOIDP $ac_cv_sizeof_voidp -_ACEOF - - # Check whether --enable-gcc-atomics was given. if test "${enable_gcc_atomics+set}" = set; then : diff --git a/configure.in b/configure.in index d2bd7a3d5..d1cf8e152 100644 --- a/configure.in +++ b/configure.in @@ -265,7 +265,7 @@ if test x$enable_libc = xyes; then AC_CHECK_MEMBER(struct sigaction.sa_sigaction,[AC_DEFINE(HAVE_SA_SIGACTION)], ,[#include ]) fi -AC_CHECK_SIZEOF(void*) +dnl AC_CHECK_SIZEOF(void*) dnl See whether we can use gcc atomic operations on this architecture AC_ARG_ENABLE(gcc-atomics,