source: trunk/essentials/sys-apps/grep/m4/uintmax_t.m4

Last change on this file was 2557, checked in by bird, 19 years ago

grep 2.5.1a

File size: 577 bytes
Line 
1#serial 5
2
3dnl From Paul Eggert.
4
5AC_PREREQ(2.13)
6
7# Define uintmax_t to `unsigned long' or `unsigned long long'
8# if <inttypes.h> does not exist.
9
10AC_DEFUN(jm_AC_TYPE_UINTMAX_T,
11[
12 AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
13 if test $jm_ac_cv_header_inttypes_h = no; then
14 AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
15 test $ac_cv_type_unsigned_long_long = yes \
16 && ac_type='unsigned long long' \
17 || ac_type='unsigned long'
18 AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
19[ Define to unsigned long or unsigned long long
20 if <inttypes.h> doesn't define.])
21 fi
22])
Note: See TracBrowser for help on using the repository browser.