600c82ca9dc166f15861793646ba3d545e55c894
[gnulib.git] / m4 / inttostr.m4
1 #serial 5
2 dnl Copyright (C) 2004, 2005 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.
6
7 AC_DEFUN([gl_INTTOSTR],
8 [
9   AC_LIBSOURCES([inttostr.c, inttostr.h, intprops.h])
10
11   dnl We don't technically need to list the following .c files, since their
12   dnl functions are named in the AC_LIBOBJ calls, but this is an unusual
13   dnl module and it seems a little clearer to do so.
14   AC_LIBSOURCES([imaxtostr.c, offtostr.c, umaxtostr.c])
15
16   AC_LIBOBJ([imaxtostr])
17   AC_LIBOBJ([offtostr])
18   AC_LIBOBJ([umaxtostr])
19
20   gl_PREREQ_INTTOSTR
21   gl_PREREQ_IMAXTOSTR
22   gl_PREREQ_OFFTOSTR
23   gl_PREREQ_UMAXTOSTR
24 ])
25
26 # Prerequisites of lib/inttostr.h.
27 AC_DEFUN([gl_PREREQ_INTTOSTR], [
28   AC_REQUIRE([gl_AC_TYPE_INTMAX_T])
29   AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
30   AC_REQUIRE([AC_TYPE_OFF_T])
31   :
32 ])
33
34 # Prerequisites of lib/imaxtostr.c.
35 AC_DEFUN([gl_PREREQ_IMAXTOSTR], [:])
36
37 # Prerequisites of lib/offtostr.c.
38 AC_DEFUN([gl_PREREQ_OFFTOSTR], [:])
39
40 # Prerequisites of lib/umaxtostr.c.
41 AC_DEFUN([gl_PREREQ_UMAXTOSTR], [:])