-# RB_TYPE_INTMAX_T
-# -----------------
-AC_DEFUN([RB_TYPE_INTMAX_T],
-[
- AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
- AC_CHECK_TYPE([intmax_t],
- [AC_DEFINE([HAVE_INTMAX_T], 1,
- [Define to 1 if the system has the type `intmax_t'.]) ac_cv_c_intmax_t=yes],
- [test $ac_cv_type_long_long_int = yes \
- && ac_type='long long int' \
- || ac_type='long int'
- AC_DEFINE_UNQUOTED([intmax_t], [$ac_type],
- [Define to the widest signed integer type
- if <stdint.h> and <inttypes.h> do not define.]) ac_cv_c_intmax_t="$ac_type"])
-])
-
-
-# RB_TYPE_UINTMAX_T
-# -----------------
-AC_DEFUN([RB_TYPE_UINTMAX_T],
-[
- AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
- AC_CHECK_TYPE([uintmax_t],
- [AC_DEFINE([HAVE_UINTMAX_T], 1,
- [Define to 1 if the system has the type `uintmax_t'.]) ac_cv_c_uintmax_t=yes],
- [test $ac_cv_type_unsigned_long_long_int = yes \
- && ac_type='unsigned long long int' \
- || ac_type='unsigned long int'
- AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type],
- [Define to the widest unsigned integer type
- if <stdint.h> and <inttypes.h> do not define.]) ac_cv_c_uintmax_t="$ac_type"])
-])
-
-
-# RB_TYPE_INTPTR_T
-# -----------------
-AC_DEFUN([RB_TYPE_INTPTR_T],
-[
- AC_CHECK_TYPE([intptr_t],
- [AC_DEFINE([HAVE_INTPTR_T], 1,
- [Define to 1 if the system has the type `intptr_t'.]) ac_cv_c_intptr_t=yes],
- [for ac_type in 'int' 'long int' 'long long int'; do
- AC_COMPILE_IFELSE(
- [AC_LANG_BOOL_COMPILE_TRY(
- [AC_INCLUDES_DEFAULT],
- [[sizeof (void *) <= sizeof ($ac_type)]])],
- [AC_DEFINE_UNQUOTED([intptr_t], [$ac_type],
- [Define to the type of a signed integer type wide enough to
- hold a pointer, if such a type exists, and if the system
- does not define it.]) ac_cv_c_intptr_t="$ac_type"
- ac_type=])
- test -z "$ac_type" && break
- done])
-])
-
-
-# RB_TYPE_UINTPTR_T
-# -----------------
-AC_DEFUN([RB_TYPE_UINTPTR_T],
-[
- AC_CHECK_TYPE([uintptr_t],
- [AC_DEFINE([HAVE_UINTPTR_T], 1,
- [Define to 1 if the system has the type `uintptr_t'.]) ac_cv_c_uintptr_t=yes],
- [for ac_type in 'unsigned int' 'unsigned long int' \
- 'unsigned long long int'; do
- AC_COMPILE_IFELSE(
- [AC_LANG_BOOL_COMPILE_TRY(
- [AC_INCLUDES_DEFAULT],
- [[sizeof (void *) <= sizeof ($ac_type)]])],
- [AC_DEFINE_UNQUOTED([uintptr_t], [$ac_type],
- [Define to the type of an unsigned integer type wide enough to
- hold a pointer, if such a type exists, and if the system
- does not define it.]) ac_cv_c_uintptr_t="$ac_type"
- ac_type=])
- test -z "$ac_type" && break
- done])
-])
-