1dnl ######################################################################
2dnl Find the correct type for TMPFS mount(2) arguments structure
3AC_DEFUN([AMU_TYPE_TMPFS_ARGS],
4[
5AC_CACHE_CHECK(for structure type of tmpfs mount(2) arguments,
6ac_cv_type_tmpfs_args,
7[
8# set to a default value
9ac_cv_type_tmpfs_args=notfound
10# look for "struct tmpfs_args"
11if test "$ac_cv_type_tmpfs_args" = notfound
12then
13AC_TRY_COMPILE_ANYFS(
14[ struct tmpfs_args a;
15], ac_cv_type_tmpfs_args="struct tmpfs_args", ac_cv_type_tmpfs_args=notfound)
16fi
17])
18if test "$ac_cv_type_tmpfs_args" != notfound
19then
20  AC_DEFINE_UNQUOTED(tmpfs_args_t, $ac_cv_type_tmpfs_args)
21fi
22])
23dnl ======================================================================
24