2 An <inttypes.h> that conforms to C99 except for PRI* and SCN* macros.
18 gl_INTTYPES_INCOMPLETE
19 gl_INTTYPES_H_REQUIRE_DEFAULTS
23 BUILT_SOURCES += inttypes.h
25 # We need the following in order to create <inttypes.h> when the system
26 # doesn't have one that works with the given compiler.
27 inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
28 @NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
29 $(gl_V_at)$(SED_HEADER_STDOUT) \
30 -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
31 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
32 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
33 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
34 -e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \
35 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
36 -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
37 -e 's/@''GNULIB_IMAXABS''@/$(GNULIB_IMAXABS)/g' \
38 -e 's/@''GNULIB_IMAXDIV''@/$(GNULIB_IMAXDIV)/g' \
39 -e 's/@''GNULIB_STRTOIMAX''@/$(GNULIB_STRTOIMAX)/g' \
40 -e 's/@''GNULIB_STRTOUMAX''@/$(GNULIB_STRTOUMAX)/g' \
41 -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
42 -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
43 -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
44 -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
45 -e 's/@''HAVE_IMAXDIV_T''@/$(HAVE_IMAXDIV_T)/g' \
46 -e 's/@''REPLACE_IMAXABS''@/$(REPLACE_IMAXABS)/g' \
47 -e 's/@''REPLACE_IMAXDIV''@/$(REPLACE_IMAXDIV)/g' \
48 -e 's/@''REPLACE_STRTOIMAX''@/$(REPLACE_STRTOIMAX)/g' \
49 -e 's/@''REPLACE_STRTOUMAX''@/$(REPLACE_STRTOUMAX)/g' \
50 -e 's/@''INT32_MAX_LT_INTMAX_MAX''@/$(INT32_MAX_LT_INTMAX_MAX)/g' \
51 -e 's/@''INT64_MAX_EQ_LONG_MAX''@/$(INT64_MAX_EQ_LONG_MAX)/g' \
52 -e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/$(UINT32_MAX_LT_UINTMAX_MAX)/g' \
53 -e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/$(UINT64_MAX_EQ_ULONG_MAX)/g' \
54 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
55 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
56 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
57 $(srcdir)/inttypes.in.h > $@-t
59 MOSTLYCLEANFILES += inttypes.h inttypes.h-t