1 dnl ######################################################################
2 dnl check style of fixmount check_mount() function
3 AC_DEFUN([AMU_CHECK_CHECKMOUNT_STYLE],
5 AC_CACHE_CHECK(style of fixmount check_mount(),
6 ac_cv_style_checkmount,
8 # select the correct style for unmounting filesystems
9 case "${host_os_name}" in
10 svr4* | sysv4* | solaris2* | sunos5* )
11 ac_cv_style_checkmount=svr4 ;;
12 bsd44* | bsdi* | freebsd* | netbsd* | openbsd* | darwin* | macosx* | rhapsody* )
13 ac_cv_style_checkmount=bsd44 ;;
15 ac_cv_style_checkmount=aix ;;
17 ac_cv_style_checkmount=osf ;;
19 ac_cv_style_checkmount=ultrix ;;
21 ac_cv_style_checkmount=default ;;
24 am_utils_checkmount_style_file="check_mount.c"
25 am_utils_link_files=${am_utils_link_files}fixmount/${am_utils_checkmount_style_file}:conf/checkmount/checkmount_${ac_cv_style_checkmount}.c" "
28 dnl ======================================================================