Make arpa/inet module build under MinGW.
[gnulib.git] / modules / arpa_inet
1 Description:
2 A <arpa/inet.h> for systems lacking it (e.g., Mingw).
3
4 Files:
5 lib/arpa_inet.in.h
6 m4/arpa_inet_h.m4
7
8 Depends-on:
9 sys_socket
10
11 configure.ac:
12 gl_HEADER_ARPA_INET
13 AC_PROG_MKDIR_P
14
15 Makefile.am:
16 BUILT_SOURCES += $(ARPA_INET_H)
17
18 # We need the following in order to create <arpa/inet.h> when the system
19 # doesn't have one.
20 arpa/inet.h:
21         @MKDIR_P@ arpa
22         rm -f $@-t $@
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed \
25               -e 's|@''GNULIB_INET_NTOP''@|$(GNULIB_INET_NTOP)|g' \
26               -e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \
27               -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
28               -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
29               < $(srcdir)/arpa_inet.in.h; \
30         } > $@-t
31         mv $@-t $@
32 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
33 MOSTLYCLEANDIRS += arpa
34
35 Include:
36 #include <arpa/inet.h>
37
38 License:
39 LGPLv2+
40
41 Maintainer:
42 Simon Josefsson