xref: /netbsd-src/external/bsd/am-utils/dist/m4/macros/check_mtype_type.m4 (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1dnl ######################################################################
2dnl check the correct type for the mount type in the mount() system call
3dnl If you change this one, you must also fix the check_mtype_printf_type.m4.
4AC_DEFUN([AMU_CHECK_MTYPE_TYPE],
5[
6AC_CACHE_CHECK(type of mount type field in mount() call,
7ac_cv_mtype_type,
8[
9# select the correct type
10case "${host_os_name}" in
11	osf* | freebsd2* | bsdi2* | aix* | ultrix* )
12		ac_cv_mtype_type=int ;;
13	* )
14		ac_cv_mtype_type="char *" ;;
15esac
16])
17AC_DEFINE_UNQUOTED(MTYPE_TYPE, $ac_cv_mtype_type)
18])
19dnl ======================================================================
20