diff options
author | Cy Schubert <cy@FreeBSD.org> | 2016-08-31 00:08:49 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2016-08-31 00:08:49 +0000 |
commit | ca57057f598bfc7119f79f71bf38ec88244ab396 (patch) | |
tree | 051f78ef258707b493cc7cb21569b6949915f6c7 /m4/macros/check_umount_style.m4 | |
parent | e66b16bf080ead1c51f321eaf56710c771778706 (diff) | |
download | src-ca57057f598bfc7119f79f71bf38ec88244ab396.tar.gz src-ca57057f598bfc7119f79f71bf38ec88244ab396.zip |
Import am-utils 6.2,vendor/amd/6.2vendor/amd
Suggested by: pfg@
Obtained from: ftp://ftp.am-utils.org/pub/am-utils/
Notes
Notes:
svn path=/vendor/amd/dist/; revision=305100
svn path=/vendor/amd/6.2/; revision=305101; tag=vendor/amd/6.2
Diffstat (limited to 'm4/macros/check_umount_style.m4')
-rw-r--r-- | m4/macros/check_umount_style.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/m4/macros/check_umount_style.m4 b/m4/macros/check_umount_style.m4 new file mode 100644 index 000000000000..c5abcf12ea74 --- /dev/null +++ b/m4/macros/check_umount_style.m4 @@ -0,0 +1,28 @@ +dnl ###################################################################### +dnl check style of unmounting filesystems +AC_DEFUN([AMU_CHECK_UMOUNT_STYLE], +[ +AC_CACHE_CHECK(style of unmounting filesystems, +ac_cv_style_umount, +[ +# select the correct style for unmounting filesystems +case "${host_os_name}" in + linux* ) + ac_cv_style_umount=linux ;; + bsd44* | bsdi* | freebsd* | netbsd* | openbsd* | darwin* | macosx* | rhapsody* ) + ac_cv_style_umount=bsd44 ;; + osf* ) + ac_cv_style_umount=osf ;; + aix* ) + ac_cv_style_umount=aix ;; + * ) + ac_cv_style_umount=default ;; +esac +]) +am_utils_umount_style_file="umount_fs.c" +am_utils_link_files=${am_utils_link_files}libamu/${am_utils_umount_style_file}:conf/umount/umount_${ac_cv_style_umount}.c" " + +# append un-mount utilities object to LIBOBJS for automatic compilation +AC_LIBOBJ(umount_fs) +]) +dnl ====================================================================== |