diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2012-12-02 13:21:37 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2012-12-02 13:21:37 (GMT) |
commit | 6e61d18891baf0c173464ae37464ec995889080a (patch) | |
tree | d53dc6a35a5de9abd272177a6860e5d0b2b8d97c /configure.ac | |
parent | 9a2b26748b73d604d1ec099d07e493b1ed8f020f (diff) | |
parent | ce31f66a6d23a5df75eb692c2991e7602b2b6571 (diff) | |
download | cpython-6e61d18891baf0c173464ae37464ec995889080a.zip cpython-6e61d18891baf0c173464ae37464ec995889080a.tar.gz cpython-6e61d18891baf0c173464ae37464ec995889080a.tar.bz2 |
Issue 10052: merge fix from 3.2.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 4d4f05f..2738703 100644 --- a/configure.ac +++ b/configure.ac @@ -1638,10 +1638,30 @@ AC_TYPE_PID_T AC_DEFINE_UNQUOTED([RETSIGTYPE],[void],[assume C89 semantics that RETSIGTYPE is always void]) AC_TYPE_SIZE_T AC_TYPE_UID_T + +# There are two separate checks for each of the exact-width integer types we +# need. First we check whether the type is available using the usual +# AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> +# and <stdint.h> where available). We then also use the special type checks of +# the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available +# directly, #define's uint32_t to be a suitable type. + +AC_CHECK_TYPE(uint32_t, + AC_DEFINE(HAVE_UINT32_T, 1, [Define if your compiler provides uint32_t.]),,) AC_TYPE_UINT32_T + +AC_CHECK_TYPE(uint64_t, + AC_DEFINE(HAVE_UINT64_T, 1, [Define if your compiler provides uint64_t.]),,) AC_TYPE_UINT64_T + +AC_CHECK_TYPE(int32_t, + AC_DEFINE(HAVE_INT32_T, 1, [Define if your compiler provides int32_t.]),,) AC_TYPE_INT32_T + +AC_CHECK_TYPE(int64_t, + AC_DEFINE(HAVE_INT64_T, 1, [Define if your compiler provides int64_t.]),,) AC_TYPE_INT64_T + AC_CHECK_TYPE(ssize_t, AC_DEFINE(HAVE_SSIZE_T, 1, [Define if your compiler provides ssize_t]),,) AC_CHECK_TYPE(__uint128_t, |