malloc-h: New module.
[gnulib.git] / modules / arpa_inet
blob317bf8d7ce69c51c935161092dc1ac243b2ff1d4
1 Description:
2 A GNU-like <arpa/inet.h>.
4 Files:
5 lib/arpa_inet.in.h
6 m4/arpa_inet_h.m4
7 m4/sys_socket_h.m4
8 m4/socklen.m4
10 Depends-on:
11 include_next
12 snippet/arg-nonnull
13 snippet/c++defs
14 snippet/warn-on-use
15 sys_socket
17 configure.ac:
18 gl_HEADER_ARPA_INET
19 AC_PROG_MKDIR_P
21 Makefile.am:
22 BUILT_SOURCES += arpa/inet.h
24 # We need the following in order to create <arpa/inet.h> when the system
25 # doesn't have one.
26 arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
27         $(AM_V_at)$(MKDIR_P) arpa
28         $(AM_V_GEN)rm -f $@-t $@ && \
29         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
30           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|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|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
35               -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
36               -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
37               -e 's/@''GNULIB_INET_NTOP''@/$(GNULIB_INET_NTOP)/g' \
38               -e 's/@''GNULIB_INET_PTON''@/$(GNULIB_INET_PTON)/g' \
39               -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
40               -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
41               -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
42               -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \
43               -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \
44               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
45               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
46               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
47               < $(srcdir)/arpa_inet.in.h; \
48         } > $@-t && \
49         mv $@-t $@
50 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
51 MOSTLYCLEANDIRS += arpa
53 Include:
54 <arpa/inet.h>
56 License:
57 LGPLv2+
59 Maintainer:
60 Simon Josefsson