No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / am-utils / dist / m4 / macros / check_mount_style.m4
blobe34f943494dd08afb66eb0ac6a667c21139c6ec2
1 dnl ######################################################################
2 dnl check style of mounting filesystems
3 AC_DEFUN([AMU_CHECK_MOUNT_STYLE],
5 AC_CACHE_CHECK(style of mounting filesystems,
6 ac_cv_style_mount,
8 # select the correct style for mounting filesystems
9 case "${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 ;;
36 esac
38 am_utils_mount_style_file="mountutil.c"
39 am_utils_link_files=${am_utils_link_files}libamu/${am_utils_mount_style_file}:conf/mount/mount_${ac_cv_style_mount}.c" "
41 # append mount utilities object to LIBOBJS for automatic compilation
42 AC_LIBOBJ(mountutil)
44 dnl ======================================================================