2 A <sys/times.h> for systems lacking it.
16 gl_SYS_TIMES_H_REQUIRE_DEFAULTS
20 BUILT_SOURCES += sys/times.h
22 # We need the following in order to create <sys/times.h> when the system
23 # doesn't have one that works with the given compiler.
24 sys/times.h: sys_times.in.h $(top_builddir)/config.status $(WARN_ON_USE_H) $(ARG_NONNULL_H)
25 $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
26 $(AM_V_at)$(SED_HEADER_STDOUT) \
27 -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
28 -e 's/@''HAVE_SYS_TIMES_H''@/$(HAVE_SYS_TIMES_H)/g' \
29 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
30 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
31 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
32 -e 's|@''NEXT_SYS_TIMES_H''@|$(NEXT_SYS_TIMES_H)|g' \
33 -e 's/@''GNULIB_TIMES''@/$(GNULIB_TIMES)/g' \
34 -e 's|@''HAVE_STRUCT_TMS''@|$(HAVE_STRUCT_TMS)|g' \
35 -e 's|@''HAVE_TIMES''@|$(HAVE_TIMES)|g' \
36 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
37 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
38 $(srcdir)/sys_times.in.h > $@-t
40 MOSTLYCLEANFILES += sys/times.h sys/times.h-t
41 MOSTLYCLEANDIRS += sys