access.m4 566 B

1234567891011121314151617
  1. # access.m4 serial 1
  2. dnl Copyright (C) 2019-2023 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_ACCESS],
  7. [
  8. AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
  9. AC_REQUIRE([AC_CANONICAL_HOST])
  10. dnl On native Windows, access (= _access) does not support the X_OK mode.
  11. dnl It works by chance on some versions of mingw.
  12. case "$host_os" in
  13. mingw*) REPLACE_ACCESS=1 ;;
  14. esac
  15. ])