Tests for module 'vsnprintf-posix'.
[gnulib.git] / modules / sys_select
index 80dc8fa..be92f4b 100644 (file)
@@ -9,6 +9,7 @@ sys_socket
 
 configure.ac:
 gl_HEADER_SYS_SELECT
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(SYS_SELECT_H)
@@ -16,9 +17,11 @@ 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 '#include <sys/socket.h>' >$@-t
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         echo '#include <sys/socket.h>'; \
+       } > $@-t
        mv $@-t $@
 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
 MOSTLYCLEANDIRS += sys