fstat.m4 934 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # fstat.m4 serial 4
  2. dnl Copyright (C) 2011-2014 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. AC_DEFUN([gl_FUNC_FSTAT],
  7. [
  8. AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
  9. AC_REQUIRE([gl_MSVC_INVAL])
  10. if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  11. REPLACE_FSTAT=1
  12. fi
  13. AC_REQUIRE([gl_HEADER_SYS_STAT_H])
  14. if test $WINDOWS_64_BIT_ST_SIZE = 1; then
  15. REPLACE_FSTAT=1
  16. fi
  17. dnl Replace fstat() for supporting the gnulib-defined open() on directories.
  18. m4_ifdef([gl_FUNC_FCHDIR], [
  19. gl_TEST_FCHDIR
  20. if test $HAVE_FCHDIR = 0; then
  21. case "$gl_cv_func_open_directory_works" in
  22. *yes) ;;
  23. *)
  24. REPLACE_FSTAT=1
  25. ;;
  26. esac
  27. fi
  28. ])
  29. ])
  30. # Prerequisites of lib/fstat.c.
  31. AC_DEFUN([gl_PREREQ_FSTAT], [:])