2N/A# uintmax_t.m4 serial 12
2N/Adnl Copyright (C) 1997-2004, 2007-2010 Free Software Foundation, Inc.
2N/Adnl This file is free software; the Free Software Foundation
2N/Adnl gives unlimited permission to copy and/or distribute it,
2N/Adnl with or without modifications, as long as this notice is preserved.
2N/A
2N/Adnl From Paul Eggert.
2N/A
2N/AAC_PREREQ([2.13])
2N/A
2N/A# Define uintmax_t to 'unsigned long' or 'unsigned long long'
2N/A# if it is not already defined in <stdint.h> or <inttypes.h>.
2N/A
2N/AAC_DEFUN([gl_AC_TYPE_UINTMAX_T],
2N/A[
2N/A AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
2N/A AC_REQUIRE([gl_AC_HEADER_STDINT_H])
2N/A if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
2N/A AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
2N/A test $ac_cv_type_unsigned_long_long_int = yes \
2N/A && ac_type='unsigned long long' \
2N/A || ac_type='unsigned long'
2N/A AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type],
2N/A [Define to unsigned long or unsigned long long
2N/A if <stdint.h> and <inttypes.h> don't define.])
2N/A else
2N/A AC_DEFINE([HAVE_UINTMAX_T], [1],
2N/A [Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])
2N/A fi
2N/A])