2 # See if we need to use our replacement for Solaris' openat et al functions.
4 dnl Copyright (C) 2004-2017 Free Software Foundation, Inc.
5 dnl This file is free software; the Free Software Foundation
6 dnl gives unlimited permission to copy and/or distribute it,
7 dnl with or without modifications, as long as this notice is preserved.
9 # Written by Jim Meyering.
11 AC_DEFUN([gl_FUNC_OPENAT],
13 AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
14 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
15 AC_CHECK_FUNCS_ONCE([openat])
16 AC_REQUIRE([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
17 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
21 # Solaris 9 has *at functions, but uniformly mishandles trailing
22 # slash in all of them.
31 # Prerequisites of lib/openat.c.
32 AC_DEFUN([gl_PREREQ_OPENAT],
34 AC_REQUIRE([gl_PROMOTED_TYPE_MODE_T])