]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add back SIZEOF_UINTPTR_T
authorBenjamin Peterson <benjamin@python.org>
Tue, 6 Sep 2016 20:53:14 +0000 (13:53 -0700)
committerBenjamin Peterson <benjamin@python.org>
Tue, 6 Sep 2016 20:53:14 +0000 (13:53 -0700)
configure
configure.ac
pyconfig.h.in

index 5858af654ac0ab7a1d4010fea504f4c8f3522f7b..a7b976a2fd55dbdb7b8828ac621dfb7291513f86 100755 (executable)
--- a/configure
+++ b/configure
@@ -8347,6 +8347,39 @@ cat >>confdefs.h <<_ACEOF
 _ACEOF
 
 
+# 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 uintptr_t" >&5
+$as_echo_n "checking size of uintptr_t... " >&6; }
+if ${ac_cv_sizeof_uintptr_t+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then :
+
+else
+  if test "$ac_cv_type_uintptr_t" = 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 (uintptr_t)
+See \`config.log' for more details" "$LINENO" 5; }
+   else
+     ac_cv_sizeof_uintptr_t=0
+   fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
+$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
+_ACEOF
+
+
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
 $as_echo_n "checking for long double support... " >&6; }
index 9358f0a83af9dad8b93b08a4b91ff9d1f2568aa3..b4c7016368e7933ccfdc3a78b6948c6f7e93fc68 100644 (file)
@@ -2077,6 +2077,7 @@ AC_CHECK_SIZEOF(double, 8)
 AC_CHECK_SIZEOF(fpos_t, 4)
 AC_CHECK_SIZEOF(size_t, 4)
 AC_CHECK_SIZEOF(pid_t, 4)
+AC_CHECK_SIZEOF(uintptr_t)
 
 AC_MSG_CHECKING(for long double support)
 have_long_double=no
index a7c12bfc6c93e848b21553e831a87aa2007ee53b..ed6b80df6560877805e2861dca44ca31424b6f3c 100644 (file)
 /* The size of `time_t', as computed by sizeof. */
 #undef SIZEOF_TIME_T
 
+/* The size of `uintptr_t', as computed by sizeof. */
+#undef SIZEOF_UINTPTR_T
+
 /* The size of `void *', as computed by sizeof. */
 #undef SIZEOF_VOID_P