summaryrefslogtreecommitdiff
path: root/m4/ls-mntd-fs.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-01 07:58:34 +0000
committerJim Meyering <jim@meyering.net>2000-05-01 07:58:34 +0000
commitcc5b8b2e79c94acb7b20e87884e6f0372cf97470 (patch)
tree6a846b6e2ccfafd09fae50b4410bbf0b3adfac08 /m4/ls-mntd-fs.m4
parent56b16d84df9840e4068dab04ee75151886eabde3 (diff)
downloadcoreutils-cc5b8b2e79c94acb7b20e87884e6f0372cf97470.tar.xz
(jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
Diffstat (limited to 'm4/ls-mntd-fs.m4')
-rw-r--r--m4/ls-mntd-fs.m418
1 files changed, 17 insertions, 1 deletions
diff --git a/m4/ls-mntd-fs.m4 b/m4/ls-mntd-fs.m4
index 40a2fb17c..a1d271df2 100644
--- a/m4/ls-mntd-fs.m4
+++ b/m4/ls-mntd-fs.m4
@@ -1,4 +1,4 @@
-#serial 3
+#serial 4
dnl From Jim Meyering.
dnl
@@ -201,6 +201,22 @@ if test -z "$ac_list_mounted_fs"; then
fi
if test -z "$ac_list_mounted_fs"; then
+ # BeOS
+ AC_MSG_CHECKING([for next_dev function])
+ AC_CACHE_VAL(fu_cv_sys_mounted_next_dev,
+ [AC_TRY_CPP([#include <fs_info.h>],
+ fu_cv_sys_mounted_next_dev=yes,
+ fu_cv_sys_mounted_next_dev=no)])
+ AC_MSG_RESULT($fu_cv_sys_mounted_next_dev)
+ if test $fu_cv_sys_mounted_next_dev = yes; then
+ ac_list_mounted_fs=found
+ AC_DEFINE(MOUNTED_NEXT_DEV, 1,
+ [Define if there are functions named next_dev and fs_stat_dev for
+ reading the list of mounted filesystems. (BeOS)])
+ fi
+fi
+
+if test -z "$ac_list_mounted_fs"; then
# SVR2
AC_MSG_CHECKING([whether it is possible to resort to fread on /etc/mnttab])
AC_CACHE_VAL(fu_cv_sys_mounted_fread,