]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Macros for AIX 4.3.3 portability.
authorBruno Haible <bruno@clisp.org>
Tue, 23 Jul 2002 17:35:42 +0000 (17:35 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:08:41 +0000 (12:08 +0200)
doc/ChangeLog
doc/gettext.texi
intl/ChangeLog
intl/loadmsgcat.c
m4/ChangeLog
m4/Makefile.am
m4/inttypes-pri.m4 [new file with mode: 0644]
misc/ChangeLog
misc/gettextize.in

index 7809d66c0eb91b63181bc60dc7e14a34c1c722dd..b6153f44e5af00661a197bea6a4c5dcbe1adc5b0 100644 (file)
@@ -1,3 +1,7 @@
+2002-07-23  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.texi (aclocal): Add inttypes-pri.m4.
+
 2002-07-21  Bruno Haible  <bruno@clisp.org>
 
        * gettext.texi (Preparing Strings): Update section about <inttypes.h>
index cc699b0f9827f32c11959c4c97dd648d452490d9..e6c255a6075be91a18dc7dde4147585b80d076cb 100644 (file)
@@ -5969,10 +5969,10 @@ AC_CONFIG_AUX_DIR([@var{subdir}])
 If you do not have an @file{aclocal.m4} file in your distribution,
 the simplest is to concatenate the files @file{codeset.m4},
 @file{gettext.m4}, @file{glibc21.m4}, @file{iconv.m4}, @file{intdiv0.m4},
-@file{inttypes.m4}, @file{inttypes_h.m4}, @file{isc-posix.m4},
-@file{lcmessage.m4}, @file{lib-ld.m4}, @file{lib-link.m4},
-@file{lib-prefix.m4}, @file{progtest.m4}, @file{stdint_h.m4},
-@file{uintmax_t.m4} from GNU @code{gettext}'s
+@file{inttypes.m4}, @file{inttypes_h.m4}, @file{inttypes-pri.m4},
+@file{isc-posix.m4}, @file{lcmessage.m4}, @file{lib-ld.m4},
+@file{lib-link.m4}, @file{lib-prefix.m4}, @file{progtest.m4},
+@file{stdint_h.m4}, @file{uintmax_t.m4} from GNU @code{gettext}'s
 @file{m4/} directory into a single file.  If you have suppressed the
 @file{intl/} directory, only @file{gettext.m4}, @file{iconv.m4},
 @file{lib-ld.m4}, @file{lib-link.m4}, @file{lib-prefix.m4},
index af4cfd3f9e7da6705026cb8d8da8c41d403ad78a..04323a3d0c7b0e584aec38f6918019bf4f70ad8f 100644 (file)
@@ -1,3 +1,7 @@
+2002-07-23  Bruno Haible  <bruno@clisp.org>
+
+       * loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN is set.
+
 2002-07-21  Bruno Haible  <bruno@clisp.org>
 
        * libgnuintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
index a97faad9d6d26d5382ada00ffd2dff9d1566a6ba..516f5211b6405d21af367a86657a4990b2cf231c 100644 (file)
@@ -90,271 +90,355 @@ char *alloca ();
 /* Provide fallback values for macros that ought to be defined in <inttypes.h>.
    Note that our fallback values need not be literal strings, because we don't
    use them with preprocessor string concatenation.  */
-#ifndef PRId8
+#if !defined PRId8 || PRI_MACROS_BROKEN
+# undef PRId8
 # define PRId8 "d"
 #endif
-#ifndef PRIi8
+#if !defined PRIi8 || PRI_MACROS_BROKEN
+# undef PRIi8
 # define PRIi8 "i"
 #endif
-#ifndef PRIo8
+#if !defined PRIo8 || PRI_MACROS_BROKEN
+# undef PRIo8
 # define PRIo8 "o"
 #endif
-#ifndef PRIu8
+#if !defined PRIu8 || PRI_MACROS_BROKEN
+# undef PRIu8
 # define PRIu8 "u"
 #endif
-#ifndef PRIx8
+#if !defined PRIx8 || PRI_MACROS_BROKEN
+# undef PRIx8
 # define PRIx8 "x"
 #endif
-#ifndef PRIX8
+#if !defined PRIX8 || PRI_MACROS_BROKEN
+# undef PRIX8
 # define PRIX8 "X"
 #endif
-#ifndef PRId16
+#if !defined PRId16 || PRI_MACROS_BROKEN
+# undef PRId16
 # define PRId16 "d"
 #endif
-#ifndef PRIi16
+#if !defined PRIi16 || PRI_MACROS_BROKEN
+# undef PRIi16
 # define PRIi16 "i"
 #endif
-#ifndef PRIo16
+#if !defined PRIo16 || PRI_MACROS_BROKEN
+# undef PRIo16
 # define PRIo16 "o"
 #endif
-#ifndef PRIu16
+#if !defined PRIu16 || PRI_MACROS_BROKEN
+# undef PRIu16
 # define PRIu16 "u"
 #endif
-#ifndef PRIx16
+#if !defined PRIx16 || PRI_MACROS_BROKEN
+# undef PRIx16
 # define PRIx16 "x"
 #endif
-#ifndef PRIX16
+#if !defined PRIX16 || PRI_MACROS_BROKEN
+# undef PRIX16
 # define PRIX16 "X"
 #endif
-#ifndef PRId32
+#if !defined PRId32 || PRI_MACROS_BROKEN
+# undef PRId32
 # define PRId32 "d"
 #endif
-#ifndef PRIi32
+#if !defined PRIi32 || PRI_MACROS_BROKEN
+# undef PRIi32
 # define PRIi32 "i"
 #endif
-#ifndef PRIo32
+#if !defined PRIo32 || PRI_MACROS_BROKEN
+# undef PRIo32
 # define PRIo32 "o"
 #endif
-#ifndef PRIu32
+#if !defined PRIu32 || PRI_MACROS_BROKEN
+# undef PRIu32
 # define PRIu32 "u"
 #endif
-#ifndef PRIx32
+#if !defined PRIx32 || PRI_MACROS_BROKEN
+# undef PRIx32
 # define PRIx32 "x"
 #endif
-#ifndef PRIX32
+#if !defined PRIX32 || PRI_MACROS_BROKEN
+# undef PRIX32
 # define PRIX32 "X"
 #endif
-#ifndef PRId64
+#if !defined PRId64 || PRI_MACROS_BROKEN
+# undef PRId64
 # define PRId64 (sizeof (long) == 8 ? "ld" : "lld")
 #endif
-#ifndef PRIi64
+#if !defined PRIi64 || PRI_MACROS_BROKEN
+# undef PRIi64
 # define PRIi64 (sizeof (long) == 8 ? "li" : "lli")
 #endif
-#ifndef PRIo64
+#if !defined PRIo64 || PRI_MACROS_BROKEN
+# undef PRIo64
 # define PRIo64 (sizeof (long) == 8 ? "lo" : "llo")
 #endif
-#ifndef PRIu64
+#if !defined PRIu64 || PRI_MACROS_BROKEN
+# undef PRIu64
 # define PRIu64 (sizeof (long) == 8 ? "lu" : "llu")
 #endif
-#ifndef PRIx64
+#if !defined PRIx64 || PRI_MACROS_BROKEN
+# undef PRIx64
 # define PRIx64 (sizeof (long) == 8 ? "lx" : "llx")
 #endif
-#ifndef PRIX64
+#if !defined PRIX64 || PRI_MACROS_BROKEN
+# undef PRIX64
 # define PRIX64 (sizeof (long) == 8 ? "lX" : "llX")
 #endif
-#ifndef PRIdLEAST8
+#if !defined PRIdLEAST8 || PRI_MACROS_BROKEN
+# undef PRIdLEAST8
 # define PRIdLEAST8 "d"
 #endif
-#ifndef PRIiLEAST8
+#if !defined PRIiLEAST8 || PRI_MACROS_BROKEN
+# undef PRIiLEAST8
 # define PRIiLEAST8 "i"
 #endif
-#ifndef PRIoLEAST8
+#if !defined PRIoLEAST8 || PRI_MACROS_BROKEN
+# undef PRIoLEAST8
 # define PRIoLEAST8 "o"
 #endif
-#ifndef PRIuLEAST8
+#if !defined PRIuLEAST8 || PRI_MACROS_BROKEN
+# undef PRIuLEAST8
 # define PRIuLEAST8 "u"
 #endif
-#ifndef PRIxLEAST8
+#if !defined PRIxLEAST8 || PRI_MACROS_BROKEN
+# undef PRIxLEAST8
 # define PRIxLEAST8 "x"
 #endif
-#ifndef PRIXLEAST8
+#if !defined PRIXLEAST8 || PRI_MACROS_BROKEN
+# undef PRIXLEAST8
 # define PRIXLEAST8 "X"
 #endif
-#ifndef PRIdLEAST16
+#if !defined PRIdLEAST16 || PRI_MACROS_BROKEN
+# undef PRIdLEAST16
 # define PRIdLEAST16 "d"
 #endif
-#ifndef PRIiLEAST16
+#if !defined PRIiLEAST16 || PRI_MACROS_BROKEN
+# undef PRIiLEAST16
 # define PRIiLEAST16 "i"
 #endif
-#ifndef PRIoLEAST16
+#if !defined PRIoLEAST16 || PRI_MACROS_BROKEN
+# undef PRIoLEAST16
 # define PRIoLEAST16 "o"
 #endif
-#ifndef PRIuLEAST16
+#if !defined PRIuLEAST16 || PRI_MACROS_BROKEN
+# undef PRIuLEAST16
 # define PRIuLEAST16 "u"
 #endif
-#ifndef PRIxLEAST16
+#if !defined PRIxLEAST16 || PRI_MACROS_BROKEN
+# undef PRIxLEAST16
 # define PRIxLEAST16 "x"
 #endif
-#ifndef PRIXLEAST16
+#if !defined PRIXLEAST16 || PRI_MACROS_BROKEN
+# undef PRIXLEAST16
 # define PRIXLEAST16 "X"
 #endif
-#ifndef PRIdLEAST32
+#if !defined PRIdLEAST32 || PRI_MACROS_BROKEN
+# undef PRIdLEAST32
 # define PRIdLEAST32 "d"
 #endif
-#ifndef PRIiLEAST32
+#if !defined PRIiLEAST32 || PRI_MACROS_BROKEN
+# undef PRIiLEAST32
 # define PRIiLEAST32 "i"
 #endif
-#ifndef PRIoLEAST32
+#if !defined PRIoLEAST32 || PRI_MACROS_BROKEN
+# undef PRIoLEAST32
 # define PRIoLEAST32 "o"
 #endif
-#ifndef PRIuLEAST32
+#if !defined PRIuLEAST32 || PRI_MACROS_BROKEN
+# undef PRIuLEAST32
 # define PRIuLEAST32 "u"
 #endif
-#ifndef PRIxLEAST32
+#if !defined PRIxLEAST32 || PRI_MACROS_BROKEN
+# undef PRIxLEAST32
 # define PRIxLEAST32 "x"
 #endif
-#ifndef PRIXLEAST32
+#if !defined PRIXLEAST32 || PRI_MACROS_BROKEN
+# undef PRIXLEAST32
 # define PRIXLEAST32 "X"
 #endif
-#ifndef PRIdLEAST64
+#if !defined PRIdLEAST64 || PRI_MACROS_BROKEN
+# undef PRIdLEAST64
 # define PRIdLEAST64 PRId64
 #endif
-#ifndef PRIiLEAST64
+#if !defined PRIiLEAST64 || PRI_MACROS_BROKEN
+# undef PRIiLEAST64
 # define PRIiLEAST64 PRIi64
 #endif
-#ifndef PRIoLEAST64
+#if !defined PRIoLEAST64 || PRI_MACROS_BROKEN
+# undef PRIoLEAST64
 # define PRIoLEAST64 PRIo64
 #endif
-#ifndef PRIuLEAST64
+#if !defined PRIuLEAST64 || PRI_MACROS_BROKEN
+# undef PRIuLEAST64
 # define PRIuLEAST64 PRIu64
 #endif
-#ifndef PRIxLEAST64
+#if !defined PRIxLEAST64 || PRI_MACROS_BROKEN
+# undef PRIxLEAST64
 # define PRIxLEAST64 PRIx64
 #endif
-#ifndef PRIXLEAST64
+#if !defined PRIXLEAST64 || PRI_MACROS_BROKEN
+# undef PRIXLEAST64
 # define PRIXLEAST64 PRIX64
 #endif
-#ifndef PRIdFAST8
+#if !defined PRIdFAST8 || PRI_MACROS_BROKEN
+# undef PRIdFAST8
 # define PRIdFAST8 "d"
 #endif
-#ifndef PRIiFAST8
+#if !defined PRIiFAST8 || PRI_MACROS_BROKEN
+# undef PRIiFAST8
 # define PRIiFAST8 "i"
 #endif
-#ifndef PRIoFAST8
+#if !defined PRIoFAST8 || PRI_MACROS_BROKEN
+# undef PRIoFAST8
 # define PRIoFAST8 "o"
 #endif
-#ifndef PRIuFAST8
+#if !defined PRIuFAST8 || PRI_MACROS_BROKEN
+# undef PRIuFAST8
 # define PRIuFAST8 "u"
 #endif
-#ifndef PRIxFAST8
+#if !defined PRIxFAST8 || PRI_MACROS_BROKEN
+# undef PRIxFAST8
 # define PRIxFAST8 "x"
 #endif
-#ifndef PRIXFAST8
+#if !defined PRIXFAST8 || PRI_MACROS_BROKEN
+# undef PRIXFAST8
 # define PRIXFAST8 "X"
 #endif
-#ifndef PRIdFAST16
+#if !defined PRIdFAST16 || PRI_MACROS_BROKEN
+# undef PRIdFAST16
 # define PRIdFAST16 "d"
 #endif
-#ifndef PRIiFAST16
+#if !defined PRIiFAST16 || PRI_MACROS_BROKEN
+# undef PRIiFAST16
 # define PRIiFAST16 "i"
 #endif
-#ifndef PRIoFAST16
+#if !defined PRIoFAST16 || PRI_MACROS_BROKEN
+# undef PRIoFAST16
 # define PRIoFAST16 "o"
 #endif
-#ifndef PRIuFAST16
+#if !defined PRIuFAST16 || PRI_MACROS_BROKEN
+# undef PRIuFAST16
 # define PRIuFAST16 "u"
 #endif
-#ifndef PRIxFAST16
+#if !defined PRIxFAST16 || PRI_MACROS_BROKEN
+# undef PRIxFAST16
 # define PRIxFAST16 "x"
 #endif
-#ifndef PRIXFAST16
+#if !defined PRIXFAST16 || PRI_MACROS_BROKEN
+# undef PRIXFAST16
 # define PRIXFAST16 "X"
 #endif
-#ifndef PRIdFAST32
+#if !defined PRIdFAST32 || PRI_MACROS_BROKEN
+# undef PRIdFAST32
 # define PRIdFAST32 "d"
 #endif
-#ifndef PRIiFAST32
+#if !defined PRIiFAST32 || PRI_MACROS_BROKEN
+# undef PRIiFAST32
 # define PRIiFAST32 "i"
 #endif
-#ifndef PRIoFAST32
+#if !defined PRIoFAST32 || PRI_MACROS_BROKEN
+# undef PRIoFAST32
 # define PRIoFAST32 "o"
 #endif
-#ifndef PRIuFAST32
+#if !defined PRIuFAST32 || PRI_MACROS_BROKEN
+# undef PRIuFAST32
 # define PRIuFAST32 "u"
 #endif
-#ifndef PRIxFAST32
+#if !defined PRIxFAST32 || PRI_MACROS_BROKEN
+# undef PRIxFAST32
 # define PRIxFAST32 "x"
 #endif
-#ifndef PRIXFAST32
+#if !defined PRIXFAST32 || PRI_MACROS_BROKEN
+# undef PRIXFAST32
 # define PRIXFAST32 "X"
 #endif
-#ifndef PRIdFAST64
+#if !defined PRIdFAST64 || PRI_MACROS_BROKEN
+# undef PRIdFAST64
 # define PRIdFAST64 PRId64
 #endif
-#ifndef PRIiFAST64
+#if !defined PRIiFAST64 || PRI_MACROS_BROKEN
+# undef PRIiFAST64
 # define PRIiFAST64 PRIi64
 #endif
-#ifndef PRIoFAST64
+#if !defined PRIoFAST64 || PRI_MACROS_BROKEN
+# undef PRIoFAST64
 # define PRIoFAST64 PRIo64
 #endif
-#ifndef PRIuFAST64
+#if !defined PRIuFAST64 || PRI_MACROS_BROKEN
+# undef PRIuFAST64
 # define PRIuFAST64 PRIu64
 #endif
-#ifndef PRIxFAST64
+#if !defined PRIxFAST64 || PRI_MACROS_BROKEN
+# undef PRIxFAST64
 # define PRIxFAST64 PRIx64
 #endif
-#ifndef PRIXFAST64
+#if !defined PRIXFAST64 || PRI_MACROS_BROKEN
+# undef PRIXFAST64
 # define PRIXFAST64 PRIX64
 #endif
-#ifndef PRIdMAX
+#if !defined PRIdMAX || PRI_MACROS_BROKEN
+# undef PRIdMAX
 # define PRIdMAX (sizeof (uintmax_t) == sizeof (long) ? "ld" : "lld")
 #endif
-#ifndef PRIiMAX
+#if !defined PRIiMAX || PRI_MACROS_BROKEN
+# undef PRIiMAX
 # define PRIiMAX (sizeof (uintmax_t) == sizeof (long) ? "li" : "lli")
 #endif
-#ifndef PRIoMAX
+#if !defined PRIoMAX || PRI_MACROS_BROKEN
+# undef PRIoMAX
 # define PRIoMAX (sizeof (uintmax_t) == sizeof (long) ? "lo" : "llo")
 #endif
-#ifndef PRIuMAX
+#if !defined PRIuMAX || PRI_MACROS_BROKEN
+# undef PRIuMAX
 # define PRIuMAX (sizeof (uintmax_t) == sizeof (long) ? "lu" : "llu")
 #endif
-#ifndef PRIxMAX
+#if !defined PRIxMAX || PRI_MACROS_BROKEN
+# undef PRIxMAX
 # define PRIxMAX (sizeof (uintmax_t) == sizeof (long) ? "lx" : "llx")
 #endif
-#ifndef PRIXMAX
+#if !defined PRIXMAX || PRI_MACROS_BROKEN
+# undef PRIXMAX
 # define PRIXMAX (sizeof (uintmax_t) == sizeof (long) ? "lX" : "llX")
 #endif
-#ifndef PRIdPTR
+#if !defined PRIdPTR || PRI_MACROS_BROKEN
+# undef PRIdPTR
 # define PRIdPTR \
   (sizeof (void *) == sizeof (long) ? "ld" : \
    sizeof (void *) == sizeof (int) ? "d" : \
    "lld")
 #endif
-#ifndef PRIiPTR
+#if !defined PRIiPTR || PRI_MACROS_BROKEN
+# undef PRIiPTR
 # define PRIiPTR \
   (sizeof (void *) == sizeof (long) ? "li" : \
    sizeof (void *) == sizeof (int) ? "i" : \
    "lli")
 #endif
-#ifndef PRIoPTR
+#if !defined PRIoPTR || PRI_MACROS_BROKEN
+# undef PRIoPTR
 # define PRIoPTR \
   (sizeof (void *) == sizeof (long) ? "lo" : \
    sizeof (void *) == sizeof (int) ? "o" : \
    "llo")
 #endif
-#ifndef PRIuPTR
+#if !defined PRIuPTR || PRI_MACROS_BROKEN
+# undef PRIuPTR
 # define PRIuPTR \
   (sizeof (void *) == sizeof (long) ? "lu" : \
    sizeof (void *) == sizeof (int) ? "u" : \
    "llu")
 #endif
-#ifndef PRIxPTR
+#if !defined PRIxPTR || PRI_MACROS_BROKEN
+# undef PRIxPTR
 # define PRIxPTR \
   (sizeof (void *) == sizeof (long) ? "lx" : \
    sizeof (void *) == sizeof (int) ? "x" : \
    "llx")
 #endif
-#ifndef PRIXPTR
+#if !defined PRIXPTR || PRI_MACROS_BROKEN
+# undef PRIXPTR
 # define PRIXPTR \
   (sizeof (void *) == sizeof (long) ? "lX" : \
    sizeof (void *) == sizeof (int) ? "X" : \
index f558c3a6b6e5fa48266c2ea85875b92ab8090a76..7b8fe5a81cb1937f39e17887a624d5576ff38559 100644 (file)
@@ -1,3 +1,10 @@
+2002-07-23  Bruno Haible  <bruno@clisp.org>
+
+       * inttypes-pri.m4: New file.
+       * gettext.m4 (AM_INTL_SUBDIR): Require gt_INTTYPES_PRI.
+       * Makefile.am (aclocal_DATA): Add inttypes-pri.m4.
+       (EXTRA_DIST): Likewise.
+
 2002-07-21  Bruno Haible  <bruno@clisp.org>
 
        * stdint_h.m4 (jm_AC_HEADER_STDINT_H): Define
index c81386b629847de7dfc1e7709c3aa771ae26dee6..5b7fd7924e725ec203a34452b2906bb6363f36cd 100644 (file)
@@ -1,7 +1,7 @@
 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
 
 aclocaldir = @aclocaldir@
-aclocal_DATA = codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 inttypes.m4 inttypes_h.m4 isc-posix.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 lcmessage.m4 progtest.m4 stdint_h.m4 uintmax_t.m4
+aclocal_DATA = codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 lcmessage.m4 progtest.m4 stdint_h.m4 uintmax_t.m4
 
 # Generate this list with
 # find . -type f -name '*.m4' -printf '%f\n'|sort |fmt |tr '\012' @ \
@@ -9,8 +9,8 @@ aclocal_DATA = codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 inttypes.m4
 EXTRA_DIST = README \
 backupfile.m4 c-bs-a.m4 codeset.m4 error.m4 flex.m4 fnmatch.m4 gcj.m4 \
 getline.m4 gettext.m4 glibc21.m4 hostname.m4 iconv.m4 intdiv0.m4 inttypes.m4 \
-inttypes_h.m4 isc-posix.m4 javacomp.m4 javaexec.m4 lcmessage.m4 lib-ld.m4 \
-lib-link.m4 lib-prefix.m4 libtool.m4 mbrtowc.m4 mbstate_t.m4 mbswidth.m4 \
-mkdtemp.m4 progtest.m4 setenv.m4 setlocale.m4 siginfo.m4 signalblocking.m4 \
-signed.m4 ssize_t.m4 stdbool.m4 stdint_h.m4 tmpdir.m4 uintmax_t.m4 \
-ulonglong.m4 unionwait.m4
+inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 javacomp.m4 javaexec.m4 \
+lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 libtool.m4 mbrtowc.m4 \
+mbstate_t.m4 mbswidth.m4 mkdtemp.m4 progtest.m4 setenv.m4 setlocale.m4 \
+siginfo.m4 signalblocking.m4 signed.m4 ssize_t.m4 stdbool.m4 stdint_h.m4 \
+tmpdir.m4 uintmax_t.m4 ulonglong.m4 unionwait.m4
diff --git a/m4/inttypes-pri.m4 b/m4/inttypes-pri.m4
new file mode 100644 (file)
index 0000000..fd007c3
--- /dev/null
@@ -0,0 +1,32 @@
+# inttypes-pri.m4 serial 1 (gettext-0.11.4)
+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License.  As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+dnl From Bruno Haible.
+
+# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
+# macros to non-string values.  This is the case on AIX 4.3.3.
+
+AC_DEFUN([gt_INTTYPES_PRI],
+[
+  AC_REQUIRE([gt_HEADER_INTTYPES_H])
+  if test $gt_cv_header_inttypes_h = yes; then
+    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
+      gt_cv_inttypes_pri_broken,
+      [
+        AC_TRY_COMPILE([#include <inttypes.h>
+#ifdef PRId32
+char *p = PRId32;
+#endif
+], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
+      ])
+  fi
+  if test "$gt_cv_inttypes_pri_broken" = yes; then
+    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
+      [Define if <inttypes.h> exists and defines unusable PRI* macros.])
+  fi
+])
index badf7ebea9a94b5004006ff9e1c5917ef8bdeea7..666328a4f77903e9bd26af6f9625856c7dcf565e 100644 (file)
@@ -1,3 +1,7 @@
+2002-07-23  Bruno Haible  <bruno@clisp.org>
+
+       * gettextize.in: Add inttypes-pri.m4 to m4filelist.
+
 2002-07-21  Bruno Haible  <bruno@clisp.org>
 
        * gettextize.in: Add inttypes.m4, inttypes_h.m4, stdint_h.m4,
index 32aaa7f397210ce1482ed3dfd1ce80fac8cb2b25..7532a2856c4cb000749e329f26a44bd48c901791 100644 (file)
@@ -560,8 +560,8 @@ fi
 $do_changelog && func_poChangeLog_finish
 
 m4filelist='  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 inttypes.m4
-  inttypes_h.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4
-  progtest.m4 stdint_h.m4 uintmax_t.m4'
+  inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 lib-link.m4
+  lib-prefix.m4 progtest.m4 stdint_h.m4 uintmax_t.m4'
 # We cannot omit codeset.m4, glibc21.m4, intdiv0.m4, inttypes.m4,
 # inttypes_h.m4, isc-posix.m4, lcmessage.m4, stdint_h.m4, uintmax_t.m4
 # if test -z "$intldir", otherwise "aclocal -I m4" might give an error.