annotate m4/inttypes-pri.m4 @ 40196:e63f5d3edab5

relocatable-prog: Update documentation. * doc/relocatable-maint.texi (Supporting Relocation): Update to match the recent changes.
author Bruno Haible <bruno@clisp.org>
date Sun, 24 Feb 2019 01:49:15 +0100
parents b06060465f09
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13577
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
1 # inttypes-pri.m4 serial 7 (gettext-0.18.2)
40057
b06060465f09 maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents: 19484
diff changeset
2 dnl Copyright (C) 1997-2002, 2006, 2008-2019 Free Software Foundation, Inc.
5659
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 4536
diff changeset
3 dnl This file is free software; the Free Software Foundation
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 4536
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
be44f23226e0 Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents: 4536
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 dnl From Bruno Haible.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
13577
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
9 AC_PREREQ([2.53])
7330
b537fff46f2e Remove inttypes-h.m4 and its gl_HEADER_INTTYES_H macro.
Bruno Haible <bruno@clisp.org>
parents: 7207
diff changeset
10
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 # macros to non-string values. This is the case on AIX 4.3.3.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 AC_DEFUN([gt_INTTYPES_PRI],
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 [
7330
b537fff46f2e Remove inttypes-h.m4 and its gl_HEADER_INTTYES_H macro.
Bruno Haible <bruno@clisp.org>
parents: 7207
diff changeset
16 AC_CHECK_HEADERS([inttypes.h])
b537fff46f2e Remove inttypes-h.m4 and its gl_HEADER_INTTYES_H macro.
Bruno Haible <bruno@clisp.org>
parents: 7207
diff changeset
17 if test $ac_cv_header_inttypes_h = yes; then
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 7576
diff changeset
19 [gt_cv_inttypes_pri_broken],
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 [
13577
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
21 AC_COMPILE_IFELSE(
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
22 [AC_LANG_PROGRAM(
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
23 [[
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
24 #include <inttypes.h>
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #ifdef PRId32
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 char *p = PRId32;
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #endif
13577
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
28 ]],
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
29 [[]])],
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
30 [gt_cv_inttypes_pri_broken=no],
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
31 [gt_cv_inttypes_pri_broken=yes])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 ])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 if test "$gt_cv_inttypes_pri_broken" = yes; then
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10979
diff changeset
35 AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1],
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 [Define if <inttypes.h> exists and defines unusable PRI* macros.])
7207
a1deb716fd26 Rewritten inttypes module. New modules imaxabs, imaxdiv.
Bruno Haible <bruno@clisp.org>
parents: 7006
diff changeset
37 PRI_MACROS_BROKEN=1
a1deb716fd26 Rewritten inttypes module. New modules imaxabs, imaxdiv.
Bruno Haible <bruno@clisp.org>
parents: 7006
diff changeset
38 else
a1deb716fd26 Rewritten inttypes module. New modules imaxabs, imaxdiv.
Bruno Haible <bruno@clisp.org>
parents: 7006
diff changeset
39 PRI_MACROS_BROKEN=0
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 fi
7207
a1deb716fd26 Rewritten inttypes module. New modules imaxabs, imaxdiv.
Bruno Haible <bruno@clisp.org>
parents: 7006
diff changeset
41 AC_SUBST([PRI_MACROS_BROKEN])
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 ])