1dnl ######################################################################
2dnl check style of accessing the mount table file
3AC_DEFUN([AMU_CHECK_MNTTAB_STYLE],
4[
5AC_CACHE_CHECK(mount table style,
6ac_cv_style_mnttab,
7[
8# select the correct style for mount table manipulation functions
9case "${host_os_name}" in
10	aix* )
11			ac_cv_style_mnttab=aix ;;
12	bsd* | bsdi* | freebsd* | netbsd* | openbsd* | darwin* | macosx* | rhapsody* )
13			ac_cv_style_mnttab=bsd ;;
14	isc3* )
15			ac_cv_style_mnttab=isc3 ;;
16	mach3* )
17			ac_cv_style_mnttab=mach3 ;;
18	osf* )
19			ac_cv_style_mnttab=osf ;;
20	svr4* | sysv4* | solaris2* | sunos5* | aoi* )
21			ac_cv_style_mnttab=svr4 ;;
22	ultrix* )
23			ac_cv_style_mnttab=ultrix ;;
24	linux*)
25			ac_cv_style_mnttab=linux ;;
26	* )
27			ac_cv_style_mnttab=file ;;
28esac
29])
30am_utils_link_files=${am_utils_link_files}libamu/mtabutil.c:conf/mtab/mtab_${ac_cv_style_mnttab}.c" "
31
32# append mtab utilities object to LIBOBJS for automatic compilation
33AC_LIBOBJ(mtabutil)
34])
35dnl ======================================================================
36