mirror of
git://git.sv.gnu.org/findutils.git
synced 2026-01-27 12:13:22 +01:00
Bruno Haible: Prefer the 4.4BSD API (if present) to the 4.3BSD API,
because some 4.4BSD systems have <mntent.h> but no /etc/mtab file.
This commit is contained in:
@@ -59,10 +59,10 @@ AC_TRY_CPP([#include <sys/statfs.h>
|
||||
#include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS, 1, [Define to use AIX3 statfs to get filesystem type.]) fstype=AIX)
|
||||
fi
|
||||
if test $fstype = no; then
|
||||
AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT, 1, [Define to use 4.3BSD getmntent to get filesystem type.]) fstype=4.3BSD)
|
||||
AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS, 1, [Define to use 4.4BSD and OSF1 statfs to get filesystem type.]) fstype=4.4BSD/OSF1)
|
||||
fi
|
||||
if test $fstype = no; then
|
||||
AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS, 1, [Define to use 4.4BSD and OSF1 statfs to get filesystem type.]) fstype=4.4BSD/OSF1)
|
||||
AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT, 1, [Define to use 4.3BSD getmntent to get filesystem type.]) fstype=4.3BSD)
|
||||
fi
|
||||
if test $fstype = no; then
|
||||
AC_TRY_CPP([#include <sys/mount.h>
|
||||
|
||||
Reference in New Issue
Block a user