openat: test for fstatat (..., 0) bug
[gnulib.git] / m4 / fts.m4
1 #serial 19
2 dnl Copyright (C) 2005-2011 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
7 AC_DEFUN([gl_FUNC_FTS],
8 [
9   gl_FUNC_FTS_CORE
10 ])
11
12 AC_DEFUN([gl_FUNC_FTS_CORE],
13 [
14   dnl Prerequisites of lib/fts.c.
15   AC_REQUIRE([AC_C_INLINE])
16   gl_FUNC_OPENAT
17
18   AC_CHECK_FUNCS_ONCE([fstatfs])
19   AC_CHECK_HEADERS_ONCE([sys/param.h sys/vfs.h])dnl
20   AC_CHECK_MEMBERS([struct statfs.f_type],,,
21     [$ac_includes_default
22      #include <sys/vfs.h>])
23 ])