2 A more-standard <time.h>.
17 BUILT_SOURCES += time.h
19 # We need the following in order to create <time.h> when the system
20 # doesn't have one that works with the given compiler.
22 $(AM_V_GEN)rm -f $@-t $@ && \
23 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
24 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
25 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
26 -e 's|@NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
27 -e 's|@REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
28 -e 's|@REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
29 -e 's|@REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
30 -e 's|@REPLACE_STRPTIME''@|$(REPLACE_STRPTIME)|g' \
31 -e 's|@REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
32 -e 's|@SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
33 -e 's|@TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
34 < $(srcdir)/time.in.h; \
37 MOSTLYCLEANFILES += time.h time.h-t