From: Enlightenment S. <no-...@en...> - 2012-07-30 07:30:53
|
Log: add --enable-mtab to eeze to force use of deprecated mtab for mountinfo (libmount pre 2.20) Author: discomfitor Date: 2012-07-30 00:30:46 -0700 (Mon, 30 Jul 2012) New Revision: 74556 Trac: http://trac.enlightenment.org/e/changeset/74556 Modified: trunk/eeze/configure.ac Modified: trunk/eeze/configure.ac =================================================================== --- trunk/eeze/configure.ac 2012-07-30 07:18:20 UTC (rev 74555) +++ trunk/eeze/configure.ac 2012-07-30 07:30:46 UTC (rev 74556) @@ -146,12 +146,30 @@ 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]) |