1 dnl ######################################################################
2 dnl check if system has NFS protocol headers
3 AC_DEFUN([AMU_CHECK_NFS_PROT_HEADERS],
5 AC_CACHE_CHECK(location of NFS protocol header files,
6 ac_cv_nfs_prot_headers,
8 # select the correct style for mounting filesystems
11 ac_cv_nfs_prot_headers=irix5 ;;
13 ac_cv_nfs_prot_headers=irix6 ;;
15 ac_cv_nfs_prot_headers=sunos3 ;;
17 ac_cv_nfs_prot_headers=sunos4 ;;
18 sunos5.[[0-3]] | solaris2.[[0-3]] )
19 ac_cv_nfs_prot_headers=sunos5_3 ;;
20 sunos5.4* | solaris2.4* )
21 ac_cv_nfs_prot_headers=sunos5_4 ;;
22 sunos5.5* | solaris2.5* )
23 ac_cv_nfs_prot_headers=sunos5_5 ;;
24 sunos5.6* | solaris2.6* )
25 ac_cv_nfs_prot_headers=sunos5_6 ;;
26 sunos5.7* | solaris2.7* )
27 ac_cv_nfs_prot_headers=sunos5_7 ;;
29 ac_cv_nfs_prot_headers=sunos5_8 ;;
31 ac_cv_nfs_prot_headers=bsdi2 ;;
33 ac_cv_nfs_prot_headers=bsdi3 ;;
35 ac_cv_nfs_prot_headers=freebsd2 ;;
36 freebsd* | freebsdelf* )
37 ac_cv_nfs_prot_headers=freebsd3 ;;
39 ac_cv_nfs_prot_headers=netbsd ;;
41 ac_cv_nfs_prot_headers=netbsd1_3 ;;
42 netbsd* | netbsdelf* )
43 ac_cv_nfs_prot_headers=netbsd1_4 ;;
45 ac_cv_nfs_prot_headers=openbsd ;;
46 hpux[[6-9]]* | hpux10* )
47 ac_cv_nfs_prot_headers=hpux ;;
49 ac_cv_nfs_prot_headers=hpux11 ;;
51 ac_cv_nfs_prot_headers=aix3 ;;
53 ac_cv_nfs_prot_headers=aix4 ;;
55 ac_cv_nfs_prot_headers=aix4_2 ;;
57 ac_cv_nfs_prot_headers=aix4_3 ;;
59 ac_cv_nfs_prot_headers=aix5_1 ;;
61 ac_cv_nfs_prot_headers=aix5_2 ;;
63 ac_cv_nfs_prot_headers=osf2 ;;
65 ac_cv_nfs_prot_headers=osf4 ;;
67 ac_cv_nfs_prot_headers=osf5 ;;
69 ac_cv_nfs_prot_headers=svr4 ;;
70 sysv4* ) # this is for NCR2 machines
71 ac_cv_nfs_prot_headers=ncr2 ;;
73 ac_cv_nfs_prot_headers=linux ;;
75 ac_cv_nfs_prot_headers=nextstep ;;
77 ac_cv_nfs_prot_headers=ultrix ;;
78 darwin* | macosx* | rhapsody* )
79 ac_cv_nfs_prot_headers=darwin ;;
81 ac_cv_nfs_prot_headers=default ;;
85 # make sure correct header is linked in top build directory
86 am_utils_nfs_prot_file="amu_nfs_prot.h"
87 am_utils_link_files=${am_utils_link_files}${am_utils_nfs_prot_file}:conf/nfs_prot/nfs_prot_${ac_cv_nfs_prot_headers}.h" "
89 # define the name of the header to be included for other M4 macros
90 AC_DEFINE_UNQUOTED(AMU_NFS_PROTOCOL_HEADER, "${srcdir}/conf/nfs_prot/nfs_prot_${ac_cv_nfs_prot_headers}.h")
92 # set headers in a macro for Makefile.am files to use (for dependencies)
93 AMU_NFS_PROT_HEADER='${top_builddir}/'$am_utils_nfs_prot_file
94 AC_SUBST(AMU_NFS_PROT_HEADER)
96 dnl ======================================================================