Merge from coreutils CVS.
[gnulib.git] / m4 / xstrtol.m4
1 # xstrtol.m4 serial 4
2 dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
3 dnl This file is free software, distributed under the terms of the GNU
4 dnl General Public License.  As a special exception to the GNU General
5 dnl Public License, this file may be distributed as part of a program
6 dnl that contains a configuration script generated by Autoconf, under
7 dnl the same distribution terms as the rest of that program.
8
9 AC_DEFUN([gl_XSTRTOL],
10 [
11   AC_REQUIRE([gl_PREREQ_XSTRTOL])
12   AC_REQUIRE([gl_PREREQ_XSTRTOUL])
13 ])
14
15 # Prerequisites of lib/xstrtol.h.
16 AC_DEFUN([gl_PREREQ_XSTRTOL_H],
17 [
18   AC_REQUIRE([gl_AC_TYPE_INTMAX_T])
19   AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
20 ])
21
22 # Prerequisites of lib/xstrtol.c.
23 AC_DEFUN([gl_PREREQ_XSTRTOL],
24 [
25   AC_REQUIRE([gl_PREREQ_XSTRTOL_H])
26   AC_REQUIRE([AC_HEADER_STDC])
27   AC_CHECK_FUNCS_ONCE(isascii)
28   AC_CHECK_DECLS([strtoimax, strtoumax])
29 ])
30
31 # Prerequisites of lib/xstrtoul.c.
32 AC_DEFUN([gl_PREREQ_XSTRTOUL],
33 [
34   AC_REQUIRE([gl_PREREQ_XSTRTOL])
35 ])