207fa90c61f3c492af9e95cc18682b681771a112
[gnulib.git] / modules / time
1 Description:
2 A more-standard <time.h>.
3
4 Files:
5 lib/time_.h
6 m4/time_h.m4
7
8 Depends-on:
9 absolute-header
10 extensions
11 restrict
12
13 configure.ac:
14 gl_HEADER_TIME_H
15
16 Makefile.am:
17 BUILT_SOURCES += time.h
18
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.
21 time.h: time_.h
22         rm -f $@-t $@
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
24           sed -e 's|@ABSOLUTE_TIME_H''@|$(ABSOLUTE_TIME_H)|g' \
25               -e 's|@REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
26               -e 's|@REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
27               -e 's|@REPLACE_STRPTIME''@|$(REPLACE_STRPTIME)|g' \
28               -e 's|@REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
29               -e 's|@SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
30               -e 's|@TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
31               < $(srcdir)/time_.h; \
32         } > $@-t
33         mv $@-t $@
34 MOSTLYCLEANFILES += time.h time.h-t
35
36 Include:
37 #include <time.h>
38
39 License:
40 LGPL
41
42 Maintainer:
43 all