1*a53f50b9Schristosdnl ###################################################################### 2*a53f50b9Schristosdnl check the autofs flavor 3*a53f50b9SchristosAC_DEFUN([AMU_CHECK_AUTOFS_STYLE], 4*a53f50b9Schristos[ 5*a53f50b9SchristosAC_CACHE_CHECK(autofs style, 6*a53f50b9Schristosac_cv_autofs_style, 7*a53f50b9Schristos[ 8*a53f50b9Schristos# select the correct style to mount(2) a filesystem 9*a53f50b9Schristoscase "${host_os}" in 10*a53f50b9Schristos solaris1* | solaris2.[[0-4]] ) 11*a53f50b9Schristos ac_cv_autofs_style=default ;; 12*a53f50b9Schristos solaris2.5* ) 13*a53f50b9Schristos ac_cv_autofs_style=solaris_v1 ;; 14*a53f50b9Schristos # Solaris 8+ uses the AutoFS V3/V4 protocols, but they are very similar 15*a53f50b9Schristos # to V2, so use one style for all. 16*a53f50b9Schristos solaris* ) 17*a53f50b9Schristos ac_cv_autofs_style=solaris_v2_v3 ;; 18*a53f50b9Schristos irix6* ) 19*a53f50b9Schristos ac_cv_autofs_style=solaris_v1 ;; 20*a53f50b9Schristos linux* ) 21*a53f50b9Schristos ac_cv_autofs_style=linux ;; 22*a53f50b9Schristos * ) 23*a53f50b9Schristos ac_cv_autofs_style=default ;; 24*a53f50b9Schristosesac 25*a53f50b9Schristos]) 26*a53f50b9Schristos# always make a link and include the file name, otherwise on systems where 27*a53f50b9Schristos# autofs support has not been ported yet check_fs_{headers, mntent}.m4 add 28*a53f50b9Schristos# ops_autofs.o to AMD_FS_OBJS, but there's no way to build it. 29*a53f50b9Schristosam_utils_link_files=${am_utils_link_files}amd/ops_autofs.c:conf/autofs/autofs_${ac_cv_autofs_style}.c" "amu_autofs_prot.h:conf/autofs/autofs_${ac_cv_autofs_style}.h" " 30*a53f50b9Schristos 31*a53f50b9Schristos# set headers in a macro for Makefile.am files to use (for dependencies) 32*a53f50b9SchristosAMU_AUTOFS_PROT_HEADER='${top_builddir}/'amu_autofs_prot.h 33*a53f50b9SchristosAC_SUBST(AMU_AUTOFS_PROT_HEADER) 34*a53f50b9Schristos]) 35*a53f50b9Schristosdnl ====================================================================== 36