add --enable-mtab to eeze to force use of deprecated mtab for mountinfo (libmount pre 2.20)

SVN revision: 74556
This commit is contained in:
Mike Blumenkrantz 2012-07-30 07:30:46 +00:00
parent e33c5d05cd
commit 10e1c670dd
1 changed files with 22 additions and 4 deletions

View File

@ -146,12 +146,30 @@ if test "x$eeze_mount" = "xyes";then
AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eject"], [eject bin to use])
fi
if test -n "$mount_v";then
AM_CONDITIONAL([OLD_LIBMOUNT], [test "$(echo $mount_v | cut -d'.' -f2)" -lt 19])
AM_CONDITIONAL([NEW_LIBMOUNT], [test "$(echo $mount_v | cut -d'.' -f2)" -gt 19])
else
want_mtab=
AC_ARG_ENABLE([mtab],
[AC_HELP_STRING([--enable-mtab],
[force use of mtab for mount info @<:@default=detect@:>@])],
[
if test "x${enableval}" = "xyes" ; then
want_mtab="yes"
else
want_mtab="no"
fi],
[want_mtab="auto"])
if test "x${want_mtab}" = "xyes" ; then
AM_CONDITIONAL([OLD_LIBMOUNT], [false])
AM_CONDITIONAL([NEW_LIBMOUNT], [false])
else
if test -n "$mount_v";then
AM_CONDITIONAL([OLD_LIBMOUNT], [test "$(echo $mount_v | cut -d'.' -f2)" -lt 19])
AM_CONDITIONAL([NEW_LIBMOUNT], [test "$(echo $mount_v | cut -d'.' -f2)" -gt 19])
else
AM_CONDITIONAL([OLD_LIBMOUNT], [false])
AM_CONDITIONAL([NEW_LIBMOUNT], [false])
fi
fi
AM_COND_IF([OLD_LIBMOUNT], [
AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])