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