(BUILT_SOURCES, EXTRA_DIST, stdint.h, MOSTLYCLEANFILES):
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Jan 2006 07:16:07 +0000 (07:16 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Jan 2006 07:16:07 +0000 (07:16 +0000)
Add gnulib snippet.

lib/Makefile.am

index 0d30338..062ad31 100644 (file)
@@ -130,6 +130,16 @@ stdbool.h: stdbool_.h
        sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > $@-t
        mv $@-t $@
 
+BUILT_SOURCES += $(STDINT_H)
+EXTRA_DIST += stdint_.h
+
+# We need the following in order to create <stdint.h> when the system
+# doesn't have one that works with the given compiler.
+stdint.h: stdint_.h
+       sed -e 's/@''HAVE_LONG_64BIT''@/$(HAVE_LONG_64BIT)/g;s/@''HAVE_LONG_LONG_64BIT@/$(HAVE_LONG_LONG_64BIT)/g' < $(srcdir)/stdint_.h > $@-t
+       mv $@-t $@
+MOSTLYCLEANFILES += stdint.h stdint.h-t
+
 BUILT_SOURCES += $(ALLOCA_H)
 EXTRA_DIST += alloca_.h