Partially implemented Thomas Runge's BSD port.

This commit is contained in:
gfk
2001-12-23 21:52:45 +00:00
parent 87b5487da5
commit 13d82693ac
3 changed files with 29 additions and 3 deletions
+25
View File
@@ -222,6 +222,31 @@ AC_DEFUN(AC_CURSES_ACS_ARRAY, [
fi
])
dnl
dnl Find out where is the mounted filesystem table
dnl
AC_DEFUN([AC_FIND_MFS], [
dnl Linux
AC_CHECK_FILE([/etc/mtab], [
mtab=/etc/mtab
],[
dnl Solaris
AC_CHECK_FILE([/etc/mnttab], [
mtab=/etc/mnttab
], [
dnl BSD
AC_CHECK_FILE([/etc/fstab], [
mtab=/etc/fstab
])
])
])
if test "$mtab"; then
AC_DEFINE_UNQUOTED(MTAB_FILE, ["$mtab"], [Where is your mounted filesystem table located?])
fi
])
dnl
dnl Filesystem information detection
dnl