xref: /netbsd-src/external/bsd/am-utils/dist/m4/macros/check_unmount_args.m4 (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1*a53f50b9Schristosdnl ######################################################################
2*a53f50b9Schristosdnl check the unmount system call arguments needed for
3*a53f50b9SchristosAC_DEFUN([AMU_CHECK_UNMOUNT_ARGS],
4*a53f50b9Schristos[
5*a53f50b9SchristosAC_CACHE_CHECK(unmount system-call arguments,
6*a53f50b9Schristosac_cv_unmount_args,
7*a53f50b9Schristos[
8*a53f50b9Schristos# select the correct style to mount(2) a filesystem
9*a53f50b9Schristoscase "${host_os_name}" in
10*a53f50b9Schristos	aix* )
11*a53f50b9Schristos		ac_cv_unmount_args="mnt->mnt_passno, 0" ;;
12*a53f50b9Schristos	ultrix* )
13*a53f50b9Schristos		ac_cv_unmount_args="mnt->mnt_passno" ;;
14*a53f50b9Schristos	* )
15*a53f50b9Schristos		ac_cv_unmount_args="mnt->mnt_dir" ;;
16*a53f50b9Schristosesac
17*a53f50b9Schristos])
18*a53f50b9Schristosam_utils_unmount_args=$ac_cv_unmount_args
19*a53f50b9SchristosAC_SUBST(am_utils_unmount_args)
20*a53f50b9Schristos])
21*a53f50b9Schristosdnl ======================================================================
22