NetBSD/dist/am-utils/m4/macros/check_nfs_socket_connection.m4
2003-03-09 01:12:05 +00:00

29 lines
775 B
Plaintext

dnl ######################################################################
dnl check if need to turn on, off, or leave alone the NFS "noconn" option
AC_DEFUN(AMU_CHECK_NFS_SOCKET_CONNECTION,
[
AC_CACHE_CHECK(if to turn on/off noconn option,
ac_cv_nfs_socket_connection,
[
# set default to no-change
ac_cv_nfs_socket_connection=none
# select the correct style
case "${host_os}" in
openbsd2.[[01]]* )
ac_cv_nfs_socket_connection=noconn ;;
openbsd* | freebsd* | freebsdelf* )
ac_cv_nfs_socket_connection=conn ;;
esac
])
# set correct value
case "$ac_cv_nfs_socket_connection" in
noconn )
AC_DEFINE(USE_UNCONNECTED_NFS_SOCKETS)
;;
conn )
AC_DEFINE(USE_CONNECTED_NFS_SOCKETS)
;;
esac
])
dnl ======================================================================