From 3b531a0a68bbbda41930f6c3a56b5f8e6258b33e Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 2 Feb 2007 13:06:22 +0000 Subject: [PATCH] * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races. * modules/netinet_in (Makefile.am): Likewise. --- ChangeLog | 5 +++++ modules/arpa_inet | 3 ++- modules/netinet_in | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 519bd57384..75b6eb4caf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-02 Eric Blake + + * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races. + * modules/netinet_in (Makefile.am): Likewise. + 2007-02-01 Bruno Haible * lib/string_.h (GL_LINK_WARNING): New macro. diff --git a/modules/arpa_inet b/modules/arpa_inet index 250c15b0ff..9e456214ba 100644 --- a/modules/arpa_inet +++ b/modules/arpa_inet @@ -12,11 +12,12 @@ gl_HEADER_ARPA_INET Makefile.am: BUILT_SOURCES += $(ARPA_INET_H) +AC_PROG_MKDIR_P # We need the following in order to create 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 '; \ diff --git a/modules/netinet_in b/modules/netinet_in index 2aac90e1cb..6e6665903d 100644 --- a/modules/netinet_in +++ b/modules/netinet_in @@ -9,6 +9,7 @@ sys_socket configure.ac: gl_HEADER_NETINET_IN +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += $(NETINET_IN_H) @@ -16,7 +17,7 @@ BUILT_SOURCES += $(NETINET_IN_H) # We need the following in order to create 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 '; \ -- 2.30.2