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