aboutsummaryrefslogtreecommitdiff
path: root/m4/uintmax_t.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/uintmax_t.m4')
-rw-r--r--m4/uintmax_t.m422
1 files changed, 12 insertions, 10 deletions
diff --git a/m4/uintmax_t.m4 b/m4/uintmax_t.m4
index bf83ed74..b5f28d44 100644
--- a/m4/uintmax_t.m4
+++ b/m4/uintmax_t.m4
@@ -1,8 +1,10 @@
1# uintmax_t.m4 serial 9 1# uintmax_t.m4 serial 7 (gettext-0.12)
2dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. 2dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software, distributed under the terms of the GNU
4dnl gives unlimited permission to copy and/or distribute it, 4dnl General Public License. As a special exception to the GNU General
5dnl with or without modifications, as long as this notice is preserved. 5dnl Public License, this file may be distributed as part of a program
6dnl that contains a configuration script generated by Autoconf, under
7dnl the same distribution terms as the rest of that program.
6 8
7dnl From Paul Eggert. 9dnl From Paul Eggert.
8 10
@@ -11,12 +13,12 @@ AC_PREREQ(2.13)
11# Define uintmax_t to 'unsigned long' or 'unsigned long long' 13# Define uintmax_t to 'unsigned long' or 'unsigned long long'
12# if it is not already defined in <stdint.h> or <inttypes.h>. 14# if it is not already defined in <stdint.h> or <inttypes.h>.
13 15
14AC_DEFUN([gl_AC_TYPE_UINTMAX_T], 16AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
15[ 17[
16 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) 18 AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
17 AC_REQUIRE([gl_AC_HEADER_STDINT_H]) 19 AC_REQUIRE([jm_AC_HEADER_STDINT_H])
18 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 20 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
19 AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG]) 21 AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
20 test $ac_cv_type_unsigned_long_long = yes \ 22 test $ac_cv_type_unsigned_long_long = yes \
21 && ac_type='unsigned long long' \ 23 && ac_type='unsigned long long' \
22 || ac_type='unsigned long' 24 || ac_type='unsigned long'