Rename sys_socket_.h to sys_socket.in.h.
[gnulib.git] / modules / sys_socket
1 Description:
2 A <sys/socket.h> for systems lacking it.
3
4 Files:
5 lib/sys_socket.in.h
6 m4/sys_socket_h.m4
7 m4/sockpfaf.m4
8
9 Depends-on:
10 include_next
11
12 configure.ac:
13 gl_HEADER_SYS_SOCKET
14 AC_PROG_MKDIR_P
15
16 Makefile.am:
17 BUILT_SOURCES += $(SYS_SOCKET_H)
18
19 # We need the following in order to create <sys/socket.h> when the system
20 # doesn't have one that works with the given compiler.
21 sys/socket.h: sys_socket.in.h
22         @MKDIR_P@ sys
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
25               -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
26               -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
27               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
28               -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
29               < $(srcdir)/sys_socket.in.h; \
30         } > $@-t
31         mv -f $@-t $@
32 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
33 MOSTLYCLEANDIRS += sys
34
35 Include:
36 #include <sys/socket.h>
37
38 License:
39 LGPLv2+
40
41 Maintainer:
42 Simon Josefsson