X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fstddef;h=94b57da9b0ba3bafaa1442a6ff2903c78261d12d;hb=5a9e46ab46042f007426c1e06b836cf5608d8d4a;hp=62e874a3cffd55557e6d0cfcb5d18453fede25f9;hpb=abac9b73490cd4d59a1e454c6ade5fd2073f2d2f;p=gnulib.git diff --git a/modules/stddef b/modules/stddef index 62e874a3c..94b57da9b 100644 --- a/modules/stddef +++ b/modules/stddef @@ -13,14 +13,12 @@ configure.ac: gl_STDDEF_H Makefile.am: -nodist_pkginclude_HEADERS += $(STDDEF_H) -EXTRA_HEADERS += stddef.h - BUILT_SOURCES += $(STDDEF_H) # We need the following in order to create 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 +30,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: