* modules/getopt-posix (getopt.h, getopt-cdefs.h):
Build only if GL_GENERATE_GETOPT_H.
2021-12-16 Paul Eggert <eggert@cs.ucla.edu>
+ getopt-posix,
+ * modules/getopt-posix (getopt.h, getopt-cdefs.h):
+ Build only if GL_GENERATE_GETOPT_H.
+
stdint: omit duplicate gl_CONFIGURE_HEADER calls
* modules/stdint (configure.ac): Omit
‘gl_CONDITIONAL_HEADER([limits.h])’, since stdint depends on
# We need the following in order to create <getopt.h> when the system
# doesn't have one that works with the given compiler.
+if GL_GENERATE_GETOPT_H
getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
$(AM_V_GEN)rm -f $@-t $@ && \
$(MKDIR_P) '%reldir%' && \
< $(srcdir)/getopt-cdefs.in.h; \
} > $@-t && \
mv -f $@-t $@
+else
+getopt.h getopt-cdefs.h: $(top_builddir)/config.status
+ rm -f $@
+endif
MOSTLYCLEANFILES += getopt.h getopt.h-t getopt-cdefs.h getopt-cdefs.h-t