changeset 8067:eed60849841f

* modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races. * modules/netinet_in (Makefile.am): Likewise.
author Eric Blake <ebb9@byu.net>
date Fri, 02 Feb 2007 13:06:22 +0000
parents 83332347ff8e
children b659313aacd0
files ChangeLog modules/arpa_inet modules/netinet_in
diffstat 3 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-02  Eric Blake  <ebb9@byu.net>
+
+	* modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
+	* modules/netinet_in (Makefile.am): Likewise.
+
 2007-02-01  Bruno Haible  <bruno@clisp.org>
 
 	* lib/string_.h (GL_LINK_WARNING): New macro.
--- a/modules/arpa_inet
+++ b/modules/arpa_inet
@@ -12,11 +12,12 @@
 
 Makefile.am:
 BUILT_SOURCES += $(ARPA_INET_H)
+AC_PROG_MKDIR_P
 
 # We need the following in order to create <arpa/inet.h> when the system
 # doesn't have one.
 arpa/inet.h:
-	test -d arpa || mkdir arpa
+	@MKDIR_P@ arpa
 	rm -f $@-t $@
 	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 	  echo '#include <sys/socket.h>'; \
--- a/modules/netinet_in
+++ b/modules/netinet_in
@@ -9,6 +9,7 @@
 
 configure.ac:
 gl_HEADER_NETINET_IN
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(NETINET_IN_H)
@@ -16,7 +17,7 @@
 # We need the following in order to create <netinet/in.h> when the system
 # doesn't have one.
 netinet/in.h:
-	test -d netinet || mkdir netinet
+	@MKDIR_P@ netinet
 	rm -f $@-t $@
 	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 	  echo '#include <sys/socket.h>'; \