diff modules/stdint @ 14700:6758fa38915e topic/libposix

manual merge
author Bruce Korb <bkorb@gnu.org>
date Fri, 06 May 2011 08:15:59 -0700
parents 8636d98120a9 662ae53d8d37
children
line wrap: on
line diff
--- a/modules/stdint	Fri Apr 01 16:04:45 2011 -0700
+++ b/modules/stdint	Fri May 06 08:15:59 2011 -0700
@@ -26,7 +26,8 @@
 
 # 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.in.h
+if GL_GENERATE_STDINT_H
+stdint.h: stdint.in.h $(top_builddir)/config.status
 	$(AM_V_GEN)rm -f $@-t $@ && \
 	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 	  sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
@@ -58,6 +59,10 @@
 	      < $(srcdir)/stdint.in.h; \
 	} > $@-t && \
 	mv $@-t $@
+else
+stdint.h: $(top_builddir)/config.status
+	rm -f $@
+endif
 MOSTLYCLEANFILES += stdint.h stdint.h-t
 
 Include: