Autoconf: Use AC_CACHE_CHECK
[openafs.git] / src / cf / solaris-fs-rolled.m4
1 AC_DEFUN([SOLARIS_FS_HAS_FS_ROLLED], [
2   AC_CACHE_CHECK([for fs_rolled in struct proc],
3     [ac_cv_solaris_fs_has_fs_rolled],
4     [AC_TRY_COMPILE([#include <sys/fs/ufs_fs.h>],
5                     [struct fs _fs; (void) _fs.fs_rolled;],
6                     [ac_cv_solaris_fs_has_fs_rolled=yes],
7                     [ac_cv_solaris_fs_has_fs_rolled=no])
8   ])
9   AS_IF([test "$ac_cv_solaris_fs_has_fs_rolled" = "yes"],
10         [AC_DEFINE(STRUCT_FS_HAS_FS_ROLLED, 1,
11                    [define if struct fs has fs_rolled])
12   ])
13 ])
14