2 dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
9 AC_LIBSOURCES([xstrtol.c, xstrtol.h, xstrtoul.c, intprops.h])
13 AC_REQUIRE([gl_PREREQ_XSTRTOL])
14 AC_REQUIRE([gl_PREREQ_XSTRTOUL])
17 # Prerequisites of lib/xstrtol.h.
18 AC_DEFUN([gl_PREREQ_XSTRTOL_H],
20 AC_REQUIRE([gl_AC_TYPE_INTMAX_T])
21 AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
24 # Prerequisites of lib/xstrtol.c.
25 AC_DEFUN([gl_PREREQ_XSTRTOL],
27 AC_REQUIRE([gl_PREREQ_XSTRTOL_H])
28 AC_CHECK_DECLS_ONCE([strtoimax])
29 AC_CHECK_DECLS_ONCE([strtoumax])
32 # Prerequisites of lib/xstrtoul.c.
33 AC_DEFUN([gl_PREREQ_XSTRTOUL],
35 AC_REQUIRE([gl_PREREQ_XSTRTOL])