havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
[gnulib.git] / m4 / mkdirat.m4
blob7b6b3bb743fd878d34cfadb197305eefac5b7e12
1 # mkdirat.m4 serial 1
2 dnl Copyright (C) 2004-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 # Written by Jim Meyering.
9 AC_DEFUN([gl_FUNC_MKDIRAT],
11   AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
12   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
13   AC_CHECK_FUNCS_ONCE([mkdirat])
14   if test $ac_cv_func_mkdirat != yes; then
15     HAVE_MKDIRAT=0
16   fi
19 # Prerequisite of mkdirat's declaration and of lib/mkdirat.c.
20 AC_DEFUN([gl_PREREQ_MKDIRAT],
22   AC_REQUIRE([AC_TYPE_MODE_T])