windows-stat-inodes.m4 784 B

12345678910111213141516171819
  1. # windows-stat-inodes.m4 serial 1
  2. dnl Copyright (C) 2017-2018 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.
  6. dnl Enable inode identification in 'struct stat' on native Windows platforms.
  7. dnl Set WINDOWS_STAT_INODES to
  8. dnl - 0 -> keep the default (dev_t = 32-bit, ino_t = 16-bit),
  9. dnl - 1 -> override types normally (dev_t = 32-bit, ino_t = 64-bit),
  10. dnl - 2 -> override types in an extended way (dev_t = 64-bit, ino_t = 128-bit).
  11. AC_DEFUN([gl_WINDOWS_STAT_INODES],
  12. [
  13. AC_REQUIRE([AC_CANONICAL_HOST])
  14. case "$host_os" in
  15. mingw*) WINDOWS_STAT_INODES=1 ;;
  16. *) WINDOWS_STAT_INODES=0 ;;
  17. esac
  18. ])