+FPTOOLS_CHECK_HTYPE(intptr_t)
+FPTOOLS_CHECK_HTYPE(uintptr_t)
+# Workaround for OSes that don't have intmax_t and uintmax_t, e.g. OpenBSD.
+if test "$ac_cv_type_long_long" = yes; then
+ fptools_cv_default_htype_intmax=$fptools_cv_htype_long_long
+ fptools_cv_default_htype_uintmax=$fptools_cv_htype_unsigned_long_long
+else
+ fptools_cv_default_htype_intmax=$fptools_cv_htype_long
+ fptools_cv_default_htype_uintmax=$fptools_cv_htype_unsigned_long
+fi
+FPTOOLS_CHECK_HTYPE(intmax_t, $fptools_cv_default_htype_intmax)
+FPTOOLS_CHECK_HTYPE(uintmax_t, $fptools_cv_default_htype_uintmax)
+