summaryrefslogtreecommitdiff
path: root/modules/stddef
diff options
context:
space:
mode:
Diffstat (limited to 'modules/stddef')
-rw-r--r--modules/stddef7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/stddef b/modules/stddef
index 62e874a3cf..0909fc1ad5 100644
--- a/modules/stddef
+++ b/modules/stddef
@@ -20,7 +20,8 @@ BUILT_SOURCES += $(STDDEF_H)
# We need the following in order to create <stddef.h> when the system
# doesn't have one that works with the given compiler.
-stddef.h: stddef.in.h
+if GL_GENERATE_STDDEF_H
+stddef.h: stddef.in.h $(top_builddir)/config.status
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
@@ -32,6 +33,10 @@ stddef.h: stddef.in.h
< $(srcdir)/stddef.in.h; \
} > $@-t && \
mv $@-t $@
+else
+stddef.h: $(top_builddir)/config.status
+ rm -f $@
+endif
MOSTLYCLEANFILES += stddef.h stddef.h-t
Include: