summaryrefslogtreecommitdiffstats
path: root/gl/m4/stat.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/stat.m4')
-rw-r--r--gl/m4/stat.m424
1 files changed, 13 insertions, 11 deletions
diff --git a/gl/m4/stat.m4 b/gl/m4/stat.m4
index 4d241e27..66876305 100644
--- a/gl/m4/stat.m4
+++ b/gl/m4/stat.m4
@@ -1,10 +1,10 @@
1# serial 18 1# stat.m4
2 2# serial 21
3# Copyright (C) 2009-2023 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc.
4# 4dnl This file is free software; the Free Software Foundation
5# This file is free software; the Free Software Foundation 5dnl gives unlimited permission to copy and/or distribute it,
6# gives unlimited permission to copy and/or distribute it, 6dnl with or without modifications, as long as this notice is preserved.
7# with or without modifications, as long as this notice is preserved. 7dnl This file is offered as-is, without any warranty.
8 8
9AC_DEFUN([gl_FUNC_STAT], 9AC_DEFUN([gl_FUNC_STAT],
10[ 10[
@@ -12,7 +12,7 @@ AC_DEFUN([gl_FUNC_STAT],
12 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) 12 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
13 AC_CHECK_FUNCS_ONCE([lstat]) 13 AC_CHECK_FUNCS_ONCE([lstat])
14 case "$host_os" in 14 case "$host_os" in
15 mingw*) 15 mingw* | windows*)
16 dnl On this platform, the original stat() returns st_atime, st_mtime, 16 dnl On this platform, the original stat() returns st_atime, st_mtime,
17 dnl st_ctime values that are affected by the time zone. 17 dnl st_ctime values that are affected by the time zone.
18 REPLACE_STAT=1 18 REPLACE_STAT=1
@@ -45,6 +45,8 @@ AC_DEFUN([gl_FUNC_STAT],
45 [case "$host_os" in 45 [case "$host_os" in
46 # Guess yes on Linux systems. 46 # Guess yes on Linux systems.
47 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;; 47 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
48 # Guess yes on systems that emulate the Linux system calls.
49 midipix*) gl_cv_func_stat_file_slash="guessing yes" ;;
48 # Guess yes on glibc systems. 50 # Guess yes on glibc systems.
49 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; 51 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
50 # If we don't know, obey --enable-cross-guesses. 52 # If we don't know, obey --enable-cross-guesses.
@@ -59,8 +61,8 @@ AC_DEFUN([gl_FUNC_STAT],
59 help when passed a file name with a trailing slash]);; 61 help when passed a file name with a trailing slash]);;
60 esac 62 esac
61 case $host_os in 63 case $host_os in
62 dnl Solaris stat can return a negative tv_nsec. 64 dnl macOS and Solaris stat can return a negative tv_nsec.
63 solaris*) 65 darwin* | solaris*)
64 REPLACE_FSTAT=1 ;; 66 REPLACE_FSTAT=1 ;;
65 esac 67 esac
66 ;; 68 ;;
@@ -78,7 +80,7 @@ AC_DEFUN([gl_PREREQ_STAT], [
78AC_DEFUN([gl_PREREQ_STAT_W32], [ 80AC_DEFUN([gl_PREREQ_STAT_W32], [
79 AC_REQUIRE([AC_CANONICAL_HOST]) 81 AC_REQUIRE([AC_CANONICAL_HOST])
80 case "$host_os" in 82 case "$host_os" in
81 mingw*) 83 mingw* | windows*)
82 AC_CHECK_HEADERS([sdkddkver.h]) 84 AC_CHECK_HEADERS([sdkddkver.h])
83 ;; 85 ;;
84 esac 86 esac