Mercurial > hg > octave-jordi > gnulib-hg
annotate m4/inttypes-pri.m4 @ 11386:23f58a4ffca0
Followup to 2008-12-22: Remove unnecessary AC_FUNC_MBRTOWC invocations.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 10 Mar 2009 01:19:40 +0100 |
parents | f6cba5a556ce |
children | c2cbabec01dd |
rev | line source |
---|---|
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
10979
diff
changeset
|
1 # inttypes-pri.m4 serial 6 (gettext-0.18) |
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
10979
diff
changeset
|
2 dnl Copyright (C) 1997-2002, 2006, 2008, 2009 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 |
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
10979
diff
changeset
|
9 AC_PREREQ([2.52]) |
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 [ |
4536
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
21 AC_TRY_COMPILE([#include <inttypes.h> |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 #ifdef PRId32 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 char *p = PRId32; |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 #endif |
10979
03e819eea554
More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents:
7576
diff
changeset
|
25 ], [], [gt_cv_inttypes_pri_broken=no], [gt_cv_inttypes_pri_broken=yes]) |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 ]) |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 fi |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 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
|
29 AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1], |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 [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
|
31 PRI_MACROS_BROKEN=1 |
a1deb716fd26
Rewritten inttypes module. New modules imaxabs, imaxdiv.
Bruno Haible <bruno@clisp.org>
parents:
7006
diff
changeset
|
32 else |
a1deb716fd26
Rewritten inttypes module. New modules imaxabs, imaxdiv.
Bruno Haible <bruno@clisp.org>
parents:
7006
diff
changeset
|
33 PRI_MACROS_BROKEN=0 |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 fi |
7207
a1deb716fd26
Rewritten inttypes module. New modules imaxabs, imaxdiv.
Bruno Haible <bruno@clisp.org>
parents:
7006
diff
changeset
|
35 AC_SUBST([PRI_MACROS_BROKEN]) |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
36 ]) |