annotate m4/inttostr.m4 @ 17729:874a5cc03904

test-userspec: don't look up numeric user names * tests/test-userspec.c: I found a system for which getpwnam("0") returned a pointer to a non-root user's entry, and that made the test fail. (T): Prefix each numeric input with "+", to inhibit lookup.
author Jim Meyering <meyering@fb.com>
date Fri, 18 Jul 2014 14:16:44 -0700
parents 344018b6e5d7
children ab58d4870664
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13400
4a25c1663687 inttostr: add a new function, inttostr, and tests
Jim Meyering <meyering@redhat.com>
parents: 12559
diff changeset
1 #serial 8
17587
344018b6e5d7 maint: update copyright
Eric Blake <eblake@redhat.com>
parents: 17249
diff changeset
2 dnl Copyright (C) 2004-2006, 2009-2014 Free Software Foundation, Inc.
5611
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5016
diff changeset
3 dnl This file is free software; the Free Software Foundation
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5016
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5016
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
4983
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
6
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
7 AC_DEFUN([gl_INTTOSTR],
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
8 [
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
9 gl_PREREQ_INTTOSTR
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
10 gl_PREREQ_IMAXTOSTR
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
11 gl_PREREQ_OFFTOSTR
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
12 gl_PREREQ_UMAXTOSTR
7543
8c6aad2a3515 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
Jim Meyering <jim@meyering.net>
parents: 7162
diff changeset
13 gl_PREREQ_UINTTOSTR
4983
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
14 ])
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
15
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
16 # Prerequisites of lib/inttostr.h.
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
17 AC_DEFUN([gl_PREREQ_INTTOSTR], [
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
18 AC_REQUIRE([AC_TYPE_OFF_T])
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
19 :
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
20 ])
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
21
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
22 # Prerequisites of lib/imaxtostr.c.
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
23 AC_DEFUN([gl_PREREQ_IMAXTOSTR], [:])
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
24
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
25 # Prerequisites of lib/offtostr.c.
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
26 AC_DEFUN([gl_PREREQ_OFFTOSTR], [:])
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
27
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
28 # Prerequisites of lib/umaxtostr.c.
1ade121b7fb9 New module inttostr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
29 AC_DEFUN([gl_PREREQ_UMAXTOSTR], [:])
7543
8c6aad2a3515 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
Jim Meyering <jim@meyering.net>
parents: 7162
diff changeset
30
8c6aad2a3515 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
Jim Meyering <jim@meyering.net>
parents: 7162
diff changeset
31 # Prerequisites of lib/uinttostr.c.
8c6aad2a3515 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
Jim Meyering <jim@meyering.net>
parents: 7162
diff changeset
32 AC_DEFUN([gl_PREREQ_UINTTOSTR], [:])