summaryrefslogtreecommitdiff
path: root/modules/sys_time
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-01-18 16:19:13 +0000
committerJim Meyering <jim@meyering.net>2007-01-18 16:19:13 +0000
commitaeb8c436374844c89da703fa45374f4c653ed3bd (patch)
treeaf4eee23637c95e4711b320c7c4ad8582bb7d3d0 /modules/sys_time
parent546c6b957bd6974e35822fbddcec7a5cc978b7ef (diff)
downloadgnulib-aeb8c436374844c89da703fa45374f4c653ed3bd.tar.gz
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.
Diffstat (limited to 'modules/sys_time')
-rw-r--r--modules/sys_time3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/sys_time b/modules/sys_time
index 16a227eb2b..48e4941ca8 100644
--- a/modules/sys_time
+++ b/modules/sys_time
@@ -10,6 +10,7 @@ absolute-header
configure.ac:
gl_HEADER_SYS_TIME_H
+AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += sys/time.h
@@ -17,7 +18,7 @@ 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' \