New module 'findprog-lgpl'.
[gnulib.git] / modules / sys_socket
1 Description:
2 A POSIX-like <sys/socket.h>.
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|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
26               -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
27               -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
28               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
29               -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
30               < $(srcdir)/sys_socket.in.h; \
31         } > $@-t
32         mv -f $@-t $@
33 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
34 MOSTLYCLEANDIRS += sys
35
36 Include:
37 #include <sys/socket.h>
38
39 License:
40 LGPLv2+
41
42 Maintainer:
43 Simon Josefsson