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