1dnl ######################################################################
2dnl Define mount type to hide amd mounts from df(1)
3dnl
4dnl This has to be determined individually per OS.  Depending on whatever
5dnl mount options are defined in the system header files such as
6dnl MNTTYPE_IGNORE or MNTTYPE_AUTO, or others does not work: some OSs define
7dnl some of these then use other stuff; some do not define them at all in
8dnl the headers, but still use it; and more.  After a long attempt to get
9dnl this automatically configured, I came to the conclusion that the semi-
10dnl automatic per-host-os determination here is the best.
11dnl
12AC_DEFUN([AMU_CHECK_HIDE_MOUNT_TYPE],
13[
14AC_CACHE_CHECK(for mount type to hide from df,
15ac_cv_hide_mount_type,
16[
17case "${host_os}" in
18	irix* | hpux* )
19		ac_cv_hide_mount_type="ignore"
20		;;
21	sunos4* )
22		ac_cv_hide_mount_type="auto"
23		;;
24	* )
25		ac_cv_hide_mount_type="nfs"
26		;;
27esac
28])
29AC_DEFINE_UNQUOTED(HIDE_MOUNT_TYPE, "$ac_cv_hide_mount_type")
30])
31dnl ======================================================================
32