summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-01-12 07:16:07 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-01-12 07:16:07 +0000
commit71b496087831bd4fd30e64360e4722022f76ae25 (patch)
tree9f2fdf24c6df60bae4ef066684c342ae5407f28c /lib
parentaa038250c396bbe7c0aa8437d9e2b3070dcce1b8 (diff)
downloadcoreutils-71b496087831bd4fd30e64360e4722022f76ae25.tar.xz
(BUILT_SOURCES, EXTRA_DIST, stdint.h, MOSTLYCLEANFILES):
Add gnulib snippet.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 0d3033828..062ad31ea 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -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