stdbit: port to theoretical platforms
[gnulib.git] / modules / sys_time
blob73965fd954bcc3702b9104ee1a8c1a37917651cb
1 Description:
2 A <sys/time.h> that conforms better to POSIX.
4 Files:
5 lib/sys_time.in.h
6 m4/sys_time_h.m4
7 m4/sys_socket_h.m4
9 Depends-on:
10 gen-header
11 include_next
12 snippet/arg-nonnull
13 snippet/c++defs
14 snippet/warn-on-use
16 configure.ac:
17 gl_SYS_TIME_H
18 gl_SYS_TIME_H_REQUIRE_DEFAULTS
19 AC_PROG_MKDIR_P
21 Makefile.am:
22 BUILT_SOURCES += sys/time.h
24 # We need the following in order to create <sys/time.h> when the system
25 # doesn't have one that works with the given compiler.
26 sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
27         $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
28         $(AM_V_at)$(SED_HEADER_STDOUT) \
29               -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
30               -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
31               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
32               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
33               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
34               -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
35               -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \
36               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
37               -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \
38               -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
39               -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \
40               -e 's/@''REPLACE_STRUCT_TIMEVAL''@/$(REPLACE_STRUCT_TIMEVAL)/g' \
41               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
42               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
43               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
44               $(srcdir)/sys_time.in.h > $@-t
45         $(AM_V_at)mv $@-t $@
46 MOSTLYCLEANFILES += sys/time.h sys/time.h-t
48 Include:
49 <sys/time.h>
51 License:
52 LGPLv2+
54 Maintainer:
55 all