xref: /netbsd-src/external/bsd/am-utils/dist/m4/macros/check_mount_style.m4 (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1*a53f50b9Schristosdnl ######################################################################
2*a53f50b9Schristosdnl check style of mounting filesystems
3*a53f50b9SchristosAC_DEFUN([AMU_CHECK_MOUNT_STYLE],
4*a53f50b9Schristos[
5*a53f50b9SchristosAC_CACHE_CHECK(style of mounting filesystems,
6*a53f50b9Schristosac_cv_style_mount,
7*a53f50b9Schristos[
8*a53f50b9Schristos# select the correct style for mounting filesystems
9*a53f50b9Schristoscase "${host_os_name}" in
10*a53f50b9Schristos	solaris1* | sunos[[34]]* | bsdi[[12]]* )
11*a53f50b9Schristos			ac_cv_style_mount=default ;;
12*a53f50b9Schristos	hpux[[6-9]]* | hpux10* )
13*a53f50b9Schristos			ac_cv_style_mount=hpux ;;
14*a53f50b9Schristos	svr4* | sysv4* | solaris* | sunos* | aoi* | hpux* )
15*a53f50b9Schristos			ac_cv_style_mount=svr4 ;;
16*a53f50b9Schristos	bsdi* )
17*a53f50b9Schristos			ac_cv_style_mount=bsdi3 ;;
18*a53f50b9Schristos	aix3* | aix4* )
19*a53f50b9Schristos			ac_cv_style_mount=aix3 ;;
20*a53f50b9Schristos	aix* )
21*a53f50b9Schristos			ac_cv_style_mount=aix ;;
22*a53f50b9Schristos	irix5* )
23*a53f50b9Schristos			ac_cv_style_mount=irix5 ;;
24*a53f50b9Schristos	irix* )
25*a53f50b9Schristos			ac_cv_style_mount=irix6 ;;
26*a53f50b9Schristos	isc3* )
27*a53f50b9Schristos			ac_cv_style_mount=isc3 ;;
28*a53f50b9Schristos	linux* )
29*a53f50b9Schristos			ac_cv_style_mount=linux ;;
30*a53f50b9Schristos	mach3* )
31*a53f50b9Schristos			ac_cv_style_mount=mach3 ;;
32*a53f50b9Schristos	stellix* )
33*a53f50b9Schristos			ac_cv_style_mount=stellix ;;
34*a53f50b9Schristos	* )	# no style needed.  Use default filesystem calls ala BSD
35*a53f50b9Schristos			ac_cv_style_mount=default ;;
36*a53f50b9Schristosesac
37*a53f50b9Schristos])
38*a53f50b9Schristosam_utils_mount_style_file="mountutil.c"
39*a53f50b9Schristosam_utils_link_files=${am_utils_link_files}libamu/${am_utils_mount_style_file}:conf/mount/mount_${ac_cv_style_mount}.c" "
40*a53f50b9Schristos
41*a53f50b9Schristos# append mount utilities object to LIBOBJS for automatic compilation
42*a53f50b9SchristosAC_LIBOBJ(mountutil)
43*a53f50b9Schristos])
44*a53f50b9Schristosdnl ======================================================================
45