]> Dogcows Code - chaz/tar/blob - m4/uintmax_t.m4
340f5752add6666a257ce81cdb6df3fe37c11b72
[chaz/tar] / m4 / uintmax_t.m4
1 #serial 5
2
3 dnl From Paul Eggert.
4
5 AC_PREREQ(2.50)
6
7 # Define uintmax_t to `unsigned long' or `unsigned long long'
8 # if <inttypes.h> does not exist.
9
10 AC_DEFUN(jm_AC_TYPE_UINTMAX_T,
11 [
12 AC_CHECK_TYPE(uintmax_t, ,
13 [AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
14 test $ac_cv_type_unsigned_long_long = yes \
15 && ac_type='unsigned long long' \
16 || ac_type='unsigned long'
17 AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
18 [Define to the widest unsigned integer type if standard headers do not declare.])])
19 ])
This page took 0.034573 seconds and 3 git commands to generate.