*printf-posix-tests: Strengthen tests.
[gnulib.git] / m4 / mkdirat.m4
blob81eacf4f26340265b7f0b8707edc340a6d0ccb05
1 # mkdirat.m4
2 # serial 1
3 dnl Copyright (C) 2004-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 # Written by Jim Meyering.
10 AC_DEFUN([gl_FUNC_MKDIRAT],
12   AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
13   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
14   AC_CHECK_FUNCS_ONCE([mkdirat])
15   if test $ac_cv_func_mkdirat != yes; then
16     HAVE_MKDIRAT=0
17   fi
20 # Prerequisite of mkdirat's declaration and of lib/mkdirat.c.
21 AC_DEFUN([gl_PREREQ_MKDIRAT],
23   AC_REQUIRE([AC_TYPE_MODE_T])