diff options
Diffstat (limited to 'm4/uintmax_t.m4')
-rw-r--r-- | m4/uintmax_t.m4 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/m4/uintmax_t.m4 b/m4/uintmax_t.m4 index 4c1d19659..8c0189bca 100644 --- a/m4/uintmax_t.m4 +++ b/m4/uintmax_t.m4 @@ -1,7 +1,9 @@ -#serial 1 +#serial 2 dnl From Paul Eggert. +AC_PREREQ(2.13) + # Define uintmax_t to `unsigned long' or `unsigned long long' # if <inttypes.h> does not exist. @@ -14,10 +16,11 @@ AC_DEFUN(jm_AC_TYPE_UINTMAX_T, [unsigned long long i = (unsigned long long) -1;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) - if test $ac_cv_type_unsigned_long_long = yes; then - AC_DEFINE(uintmax_t, unsigned long long) - else - AC_DEFINE(uintmax_t, unsigned long) - fi + test $ac_cv_type_unsigned_long_long = yes \ + && ac_type='unsigned long long' \ + || ac_type='unsigned long' + AC_DEFINE(uintmax_t, $ac_type, + [ Define to \`unsigned long' or \`unsigned long long' + if <inttypes.h> doesn't define.]) fi ]) |