1dnl ######################################################################
2dnl check the mount system call trap needed to mount(2) a filesystem
3AC_DEFUN([AMU_CHECK_MOUNT_TRAP],
4[
5AC_CACHE_CHECK(mount trap system-call style,
6ac_cv_mount_trap,
7[
8# select the correct style to mount(2) a filesystem
9case "${host_os_name}" in
10          solaris1* | sunos[[34]]* )
11                    ac_cv_mount_trap=default ;;
12          hpux[[6-9]]* | hpux10* )
13                    ac_cv_mount_trap=hpux ;;
14          svr4* | sysv4* | solaris* | sunos* | aoi* | hpux* )
15                    ac_cv_mount_trap=svr4 ;;
16          news4* | riscix* )
17                    ac_cv_mount_trap=news4 ;;
18          linux* )
19                    ac_cv_mount_trap=linux ;;
20          irix* )
21                    ac_cv_mount_trap=irix ;;
22          aux* )
23                    ac_cv_mount_trap=aux ;;
24          hcx* )
25                    ac_cv_mount_trap=hcx ;;
26          rtu6* )
27                    ac_cv_mount_trap=rtu6 ;;
28          dgux* )
29                    ac_cv_mount_trap=dgux ;;
30          aix* )
31                    ac_cv_mount_trap=aix3 ;;
32          mach2* | mach3* )
33                    ac_cv_mount_trap=mach3 ;;
34          ultrix* )
35                    ac_cv_mount_trap=ultrix ;;
36          isc3* )
37                    ac_cv_mount_trap=isc3 ;;
38          stellix* )
39                    ac_cv_mount_trap=stellix ;;
40          netbsd* )
41                    ac_cv_mount_trap=netbsd ;;
42          * )
43                    ac_cv_mount_trap=default ;;
44esac
45])
46am_utils_mount_trap=$srcdir"/conf/trap/trap_"$ac_cv_mount_trap".h"
47AC_SUBST_FILE(am_utils_mount_trap)
48])
49dnl ======================================================================
50