X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Finttypes;h=c2b8885e5d54458008b8fab81311bf90e561d6d9;hb=c02c2a767745cd9ae29179e5d9c788bd31d361c8;hp=5cb1e6d90b38c719245dc8d19f0a6b89ca45b0bf;hpb=d1aadab21bf8755e0fb75a838dc650e73f6ee78d;p=gnulib.git diff --git a/modules/inttypes b/modules/inttypes index 5cb1e6d90..c2b8885e5 100644 --- a/modules/inttypes +++ b/modules/inttypes @@ -3,12 +3,11 @@ An that nearly conforms to C99. Files: lib/inttypes_.h -m4/absolute-header.m4 -m4/inttypes-h.m4 m4/inttypes-pri.m4 m4/inttypes.m4 Depends-on: +absolute-header stdint configure.ac: @@ -16,23 +15,24 @@ gl_INTTYPES_H Makefile.am: BUILT_SOURCES += $(INTTYPES_H) -EXTRA_DIST += inttypes_.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. inttypes.h: inttypes_.h rm -f $@-t $@ - sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ - -e 's|@''ABSOLUTE_INTTYPES_H''@|$(ABSOLUTE_INTTYPES_H)|g' \ - -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \ - -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ - -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \ - -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \ - -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \ - -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \ - -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \ - < $(srcdir)/inttypes_.h > $@-t - chmod a-x $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ + -e 's|@''ABSOLUTE_INTTYPES_H''@|$(ABSOLUTE_INTTYPES_H)|g' \ + -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \ + -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ + -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \ + -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \ + -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \ + -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \ + -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \ + -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \ + < $(srcdir)/inttypes_.h; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += inttypes.h inttypes.h-t