Merge commit 'snapshot-start' into stable
[gnulib.git] / modules / sys_time
1 Description:
2 A <sys/time.h> that conforms better to POSIX.
3
4 Files:
5 lib/sys_time.in.h
6 m4/sys_time_h.m4
7
8 Depends-on:
9 include_next
10 arg-nonnull
11 warn-on-use
12
13 configure.ac:
14 gl_HEADER_SYS_TIME_H
15 AC_PROG_MKDIR_P
16
17 Makefile.am:
18 BUILT_SOURCES += sys/time.h
19
20 # We need the following in order to create <sys/time.h> when the system
21 # doesn't have one that works with the given compiler.
22 sys/time.h: sys_time.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
23         $(AM_V_at)$(MKDIR_P) sys
24         $(AM_V_GEN)rm -f $@-t $@ && \
25         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
26           sed -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
27               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
28               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29               -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
30               -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \
31               -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \
32               -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
33               -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \
34               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
35               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
36               < $(srcdir)/sys_time.in.h; \
37         } > $@-t && \
38         mv $@-t $@
39 MOSTLYCLEANFILES += sys/time.h sys/time.h-t
40
41 Include:
42 <sys/time.h>
43
44 License:
45 LGPLv2+
46
47 Maintainer:
48 all