1 dnl ######################################################################
2 dnl check the mount system call trap needed to mount(2) a filesystem
3 AC_DEFUN([AMU_CHECK_MOUNT_TRAP],
5 AC_CACHE_CHECK(mount trap system-call style,
8 # select the correct style to mount(2) a filesystem
9 case "${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 ;;
17 ac_cv_mount_trap=news4 ;;
19 ac_cv_mount_trap=linux ;;
21 ac_cv_mount_trap=irix ;;
23 ac_cv_mount_trap=aux ;;
25 ac_cv_mount_trap=hcx ;;
27 ac_cv_mount_trap=rtu6 ;;
29 ac_cv_mount_trap=dgux ;;
31 ac_cv_mount_trap=aix3 ;;
33 ac_cv_mount_trap=mach3 ;;
35 ac_cv_mount_trap=ultrix ;;
37 ac_cv_mount_trap=isc3 ;;
39 ac_cv_mount_trap=stellix ;;
41 ac_cv_mount_trap=netbsd ;;
43 ac_cv_mount_trap=default ;;
46 am_utils_mount_trap=$srcdir"/conf/trap/trap_"$ac_cv_mount_trap".h"
47 AC_SUBST_FILE(am_utils_mount_trap)
49 dnl ======================================================================