immutable: Add tests.
[gnulib.git] / m4 / windows-stat-inodes.m4
blob01a8040063bac264e94656b7e918651c2c5e5df1
1 # windows-stat-inodes.m4 serial 1
2 dnl Copyright (C) 2017-2021 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 dnl Enable inode identification in 'struct stat' on native Windows platforms.
8 dnl Set WINDOWS_STAT_INODES to
9 dnl - 0 -> keep the default (dev_t = 32-bit, ino_t = 16-bit),
10 dnl - 1 -> override types normally (dev_t = 32-bit, ino_t = 64-bit),
11 dnl - 2 -> override types in an extended way (dev_t = 64-bit, ino_t = 128-bit).
12 AC_DEFUN([gl_WINDOWS_STAT_INODES],
14   AC_REQUIRE([AC_CANONICAL_HOST])
15   case "$host_os" in
16     mingw*) WINDOWS_STAT_INODES=1 ;;
17     *)      WINDOWS_STAT_INODES=0 ;;
18   esac