annotate m4/sys_stat_h.m4 @ 12909:86f1ff71881a

utime: remove obsolete module This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been unnecessary for years, and has been marked as obsolete for 10 months. * modules/utime: Remove file. * lib/utime.c: Remove file. * m4/utime.m4: Remove file. * m4/utimes-null.m4: Remove file. * doc/posix-functions/utime.texi (utime): Remove reference to the module. Move the sole "fixed by gnulib" item into the "problems not fixed by Gnulib" list. * MODULES.html.sh (func_all_modules): Remove reference to "utime".
author Jim Meyering <meyering@redhat.com>
date Thu, 04 Mar 2010 15:36:51 +0100
parents 2c14f1e449e5
children 03a272cc0a88
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
1 # sys_stat_h.m4 serial 22 -*- Autoconf -*-
12559
c2cbabec01dd update nearly all FSF copyright year lists to include 2010
Jim Meyering <meyering@redhat.com>
parents: 12267
diff changeset
2 dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
6898
0063c4feadd4 * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
0063c4feadd4 * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
0063c4feadd4 * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
0063c4feadd4 * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
6
0063c4feadd4 * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
7 dnl From Eric Blake.
11975
7edbd81b294e mkfifoat: new module
Eric Blake <ebb9@byu.net>
parents: 11966
diff changeset
8 dnl Provide a GNU-like <sys/stat.h>.
6898
0063c4feadd4 * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
9
0063c4feadd4 * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
10 AC_DEFUN([gl_HEADER_SYS_STAT_H],
0063c4feadd4 * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
11 [
9954
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
12 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
13
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
14 dnl For the mkdir substitute.
7581
45c727466eb8 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
Paul Eggert <eggert@cs.ucla.edu>
parents: 7575
diff changeset
15 AC_REQUIRE([AC_C_INLINE])
6898
0063c4feadd4 * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
16
7575
483757159eb6 * MODULES.html.sh: Document tempname.
Eric Blake <ebb9@byu.net>
parents: 6950
diff changeset
17 dnl Check for broken stat macros.
483757159eb6 * MODULES.html.sh: Document tempname.
Eric Blake <ebb9@byu.net>
parents: 6950
diff changeset
18 AC_REQUIRE([AC_HEADER_STAT])
483757159eb6 * MODULES.html.sh: Document tempname.
Eric Blake <ebb9@byu.net>
parents: 6950
diff changeset
19
8995
1025663f7658 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents: 8780
diff changeset
20 gl_CHECK_NEXT_HEADERS([sys/stat.h])
9942
6c1b311583d7 <sys/stat.h> must provide the nlink_t type.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
21
6c1b311583d7 <sys/stat.h> must provide the nlink_t type.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
22 dnl Define types that are supposed to be defined in <sys/types.h> or
6c1b311583d7 <sys/stat.h> must provide the nlink_t type.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
23 dnl <sys/stat.h>.
6c1b311583d7 <sys/stat.h> must provide the nlink_t type.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
24 AC_CHECK_TYPE([nlink_t], [],
6c1b311583d7 <sys/stat.h> must provide the nlink_t type.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
25 [AC_DEFINE([nlink_t], [int],
6c1b311583d7 <sys/stat.h> must provide the nlink_t type.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
26 [Define to the type of st_nlink in struct stat, or a supertype.])],
6c1b311583d7 <sys/stat.h> must provide the nlink_t type.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
27 [#include <sys/types.h>
6c1b311583d7 <sys/stat.h> must provide the nlink_t type.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
28 #include <sys/stat.h>])
6c1b311583d7 <sys/stat.h> must provide the nlink_t type.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
29
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
30 dnl Check for declarations of anything we want to poison if the
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
31 dnl corresponding gnulib module is not in use.
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
32 gl_WARN_ON_USE_PREPARE([[#include <sys/stat.h>
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
33 ]], [fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
34 mknod mknodat stat utimensat])
6898
0063c4feadd4 * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
35 ]) # gl_HEADER_SYS_STAT_H
9954
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
36
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
37 AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR],
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
38 [
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
39 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
40 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
41 GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
42 ])
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
43
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
44 AC_DEFUN([gl_SYS_STAT_H_DEFAULTS],
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
45 [
11933
1ffad224c413 fchdir: use more consistent macro convention
Eric Blake <ebb9@byu.net>
parents: 10688
diff changeset
46 AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for REPLACE_FCHDIR
12174
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
47 GNULIB_FCHMODAT=0; AC_SUBST([GNULIB_FCHMODAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
48 GNULIB_FSTATAT=0; AC_SUBST([GNULIB_FSTATAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
49 GNULIB_FUTIMENS=0; AC_SUBST([GNULIB_FUTIMENS])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
50 GNULIB_LCHMOD=0; AC_SUBST([GNULIB_LCHMOD])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
51 GNULIB_LSTAT=0; AC_SUBST([GNULIB_LSTAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
52 GNULIB_MKDIRAT=0; AC_SUBST([GNULIB_MKDIRAT])
12266
37fd04a02bc8 mkfifo: new module
Eric Blake <ebb9@byu.net>
parents: 12174
diff changeset
53 GNULIB_MKFIFO=0; AC_SUBST([GNULIB_MKFIFO])
12174
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
54 GNULIB_MKFIFOAT=0; AC_SUBST([GNULIB_MKFIFOAT])
12267
c400da5f66bb mknod: new module
Eric Blake <ebb9@byu.net>
parents: 12266
diff changeset
55 GNULIB_MKNOD=0; AC_SUBST([GNULIB_MKNOD])
12174
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
56 GNULIB_MKNODAT=0; AC_SUBST([GNULIB_MKNODAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
57 GNULIB_STAT=0; AC_SUBST([GNULIB_STAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
58 GNULIB_UTIMENSAT=0; AC_SUBST([GNULIB_UTIMENSAT])
9954
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
59 dnl Assume proper GNU behavior unless another module says otherwise.
12174
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
60 HAVE_FCHMODAT=1; AC_SUBST([HAVE_FCHMODAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
61 HAVE_FSTATAT=1; AC_SUBST([HAVE_FSTATAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
62 HAVE_FUTIMENS=1; AC_SUBST([HAVE_FUTIMENS])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
63 HAVE_LCHMOD=1; AC_SUBST([HAVE_LCHMOD])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
64 HAVE_LSTAT=1; AC_SUBST([HAVE_LSTAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
65 HAVE_MKDIRAT=1; AC_SUBST([HAVE_MKDIRAT])
12266
37fd04a02bc8 mkfifo: new module
Eric Blake <ebb9@byu.net>
parents: 12174
diff changeset
66 HAVE_MKFIFO=1; AC_SUBST([HAVE_MKFIFO])
12174
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
67 HAVE_MKFIFOAT=1; AC_SUBST([HAVE_MKFIFOAT])
12267
c400da5f66bb mknod: new module
Eric Blake <ebb9@byu.net>
parents: 12266
diff changeset
68 HAVE_MKNOD=1; AC_SUBST([HAVE_MKNOD])
12174
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
69 HAVE_MKNODAT=1; AC_SUBST([HAVE_MKNODAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
70 HAVE_UTIMENSAT=1; AC_SUBST([HAVE_UTIMENSAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
71 REPLACE_FSTAT=0; AC_SUBST([REPLACE_FSTAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
72 REPLACE_FSTATAT=0; AC_SUBST([REPLACE_FSTATAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
73 REPLACE_FUTIMENS=0; AC_SUBST([REPLACE_FUTIMENS])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
74 REPLACE_LSTAT=0; AC_SUBST([REPLACE_LSTAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
75 REPLACE_MKDIR=0; AC_SUBST([REPLACE_MKDIR])
12266
37fd04a02bc8 mkfifo: new module
Eric Blake <ebb9@byu.net>
parents: 12174
diff changeset
76 REPLACE_MKFIFO=0; AC_SUBST([REPLACE_MKFIFO])
12267
c400da5f66bb mknod: new module
Eric Blake <ebb9@byu.net>
parents: 12266
diff changeset
77 REPLACE_MKNOD=0; AC_SUBST([REPLACE_MKNOD])
12174
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
78 REPLACE_STAT=0; AC_SUBST([REPLACE_STAT])
73f2681e0524 utimensat: new module
Eric Blake <ebb9@byu.net>
parents: 12162
diff changeset
79 REPLACE_UTIMENSAT=0; AC_SUBST([REPLACE_UTIMENSAT])
9954
0f61f5040489 Fix compilation errors related to rpl_mkdir on mingw.
Bruno Haible <bruno@clisp.org>
parents: 9942
diff changeset
80 ])