+2007-01-18 Jim Meyering <jim@meyering.net>
+
+ Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
+ * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
+ than the race-prone "test -d sys || mkdir sys".
+ (configure.ac): Use AC_PROG_MKDIR_P.
+ * modules/sys_select: Likewise.
+ * modules/sys_socket: Likewise.
+ * modules/sys_time: Likewise.
+
2007-01-18 Eric Blake <ebb9@byu.net>
* m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
configure.ac:
gl_HEADER_SYS_SELECT
+AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += $(SYS_SELECT_H)
# We need the following in order to create <sys/select.h> when the system
# doesn't have one that works with the given compiler.
sys/select.h:
- test -d sys || mkdir sys
+ $(MKDIR_P) sys
rm -f $@-t $@
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo '#include <sys/socket.h>'; \
configure.ac:
gl_HEADER_SYS_SOCKET
+AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += $(SYS_SOCKET_H)
# We need the following in order to create <sys/socket.h> when the system
# doesn't have one that works with the given compiler.
sys/socket.h: socket_.h
- test -d sys || mkdir sys
+ $(MKDIR_P) sys
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
cat $(srcdir)/socket_.h; \
} > $@-t
configure.ac:
gl_HEADER_SYS_STAT_H
+AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += $(SYS_STAT_H)
# We need the following in order to create <sys/stat.h> when the system
# has one that is incomplete.
sys/stat.h: stat_.h
- test -d sys || mkdir sys
+ $(MKDIR_P) sys
rm -f $@-t $@
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''ABSOLUTE_SYS_STAT_H''@|$(ABSOLUTE_SYS_STAT_H)|g' \
configure.ac:
gl_HEADER_SYS_TIME_H
+AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += sys/time.h
# We need the following in order to create <sys/time.h> when the system
# doesn't have one that works with the given compiler.
sys/time.h: sys_time_.h
- test -d sys || mkdir sys
+ $(MKDIR_P) sys
rm -f $@-t $@
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \