Use module 'iconv_open'.
[gnulib.git] / modules / sys_socket
1 Description:
2 A <sys/socket.h> for systems lacking it.
3
4 Files:
5 lib/socket_.h
6 m4/sys_socket_h.m4
7 m4/sockpfaf.m4
8
9 Depends-on:
10 absolute-header
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: socket_.h
22         @MKDIR_P@ sys
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed -e 's|@''ABSOLUTE_SYS_SOCKET_H''@|$(ABSOLUTE_SYS_SOCKET_H)|g' \
25               -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
26               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
27               -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
28               < $(srcdir)/socket_.h; \
29         } > $@-t
30         mv -f $@-t $@
31 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
32 MOSTLYCLEANDIRS += sys
33
34 Include:
35 #include <sys/socket.h>
36
37 License:
38 LGPL
39
40 Maintainer:
41 Simon Josefsson