DEVEL15-linux-2-6-27-20080816
[openafs.git] / src / cf / solaris-fs-rolled.m4
1 AC_DEFUN([SOLARIS_FS_HAS_FS_ROLLED], [
2 AC_MSG_CHECKING(for fs_rolled in struct proc)
3 AC_CACHE_VAL(ac_cv_solaris_fs_has_fs_rolled,
4 [
5 AC_TRY_COMPILE(
6 [#include <sys/fs/ufs_fs.h>],
7 [struct fs _fs;
8 (void) _fs.fs_rolled;], 
9 ac_cv_solaris_fs_has_fs_rolled=yes,
10 ac_cv_solaris_fs_has_fs_rolled=no)])
11 AC_MSG_RESULT($ac_cv_solaris_fs_has_fs_rolled)
12 if test "$ac_cv_solaris_fs_has_fs_rolled" = "yes"; then
13   AC_DEFINE(STRUCT_FS_HAS_FS_ROLLED, 1, [define if struct fs has fs_rolled])
14 fi
15 ])
16