1dnl ###################################################################### 2dnl check if the mount table is kept in a file or in the kernel. 3AC_DEFUN([AMU_CHECK_MNTTAB_LOCATION], 4[ 5AMU_CACHE_CHECK_DYNAMIC(where mount table is kept, 6ac_cv_mnttab_location, 7[ 8# assume location is on file 9ac_cv_mnttab_location=file 10AC_CHECK_FUNCS(mntctl getmntinfo getmountent, 11ac_cv_mnttab_location=kernel) 12# Solaris 8 Beta Refresh and up use the mntfs pseudo filesystem to store the 13# mount table in kernel (cf. mnttab(4): the MS_NOMNTTAB option in 14# <sys/mount.h> inhibits that a mount shows up there and thus can be used to 15# check for the in-kernel mount table 16if test "$ac_cv_mnt2_gen_opt_nomnttab" != notfound 17then 18 ac_cv_mnttab_location=kernel 19fi 20]) 21if test "$ac_cv_mnttab_location" = file 22then 23 AC_DEFINE(MOUNT_TABLE_ON_FILE) 24fi 25]) 26dnl ====================================================================== 27