findprog, relocatable-prog: Ignore directories during PATH search.
[gnulib.git] / m4 / access.m4
blobcfe799d5c974a9ffcc309a5518a6963d59e9e18d
1 # access.m4 serial 1
2 dnl Copyright (C) 2019-2020 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 AC_DEFUN([gl_FUNC_ACCESS],
9   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
10   AC_REQUIRE([AC_CANONICAL_HOST])
11   dnl On native Windows, access (= _access) does not support the X_OK mode.
12   dnl It works by chance on some versions of mingw.
13   case "$host_os" in
14     mingw*) REPLACE_ACCESS=1 ;;
15   esac