summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-03-06 23:07:39 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-03-06 23:07:39 +0900
commit238e5951bbbd8aaed33908b7822bd1f4b63ee08c (patch)
tree384eb1e080f780de97a0624a5eff1e1ff828061f /configure.ac
parent2ee27ec6d56d7a1b52f345721c3b95a75f460141 (diff)
eeze: handle all version back as we did in 1.7. hopefuly.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac23
1 files changed, 19 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index e1c90cda9e..c1776a85cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3134,18 +3134,33 @@ EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}],
3134 [EEZE_MOUNT], [mount >= 2.18.0]) 3134 [EEZE_MOUNT], [mount >= 2.18.0])
3135EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}]) 3135EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
3136 3136
3137PKG_CHECK_EXISTS([mount < 2.19.0],
3138 [have_libmount_old="yes"],
3139 [have_libmount_old="no"])
3140AC_MSG_CHECKING([Use old libmount API (before 2.19.0)])
3141AC_MSG_RESULT([${have_libmount_old}])
3142
3143PKG_CHECK_EXISTS([mount == 2.19.0],
3144 [have_libmount_219="yes"],
3145 [have_libmount_219="no"])
3146AC_MSG_CHECKING([Use libmount 2.19.0 API])
3147AC_MSG_RESULT([${have_libmount_219}])
3148
3137PKG_CHECK_EXISTS([mount > 2.19.0], 3149PKG_CHECK_EXISTS([mount > 2.19.0],
3138 [have_libmount_new="yes"], 3150 [have_libmount_new="yes"],
3139 [have_libmount_new="no"]) 3151 [have_libmount_new="no"])
3140AC_MSG_CHECKING([Use new libmount API (older that 2.19.0)]) 3152AC_MSG_CHECKING([Use new libmount API (older than 2.19.0)])
3141AC_MSG_RESULT([${have_libmount_new}]) 3153AC_MSG_RESULT([${have_libmount_new}])
3142 3154
3143AM_CONDITIONAL([EEZE_LIBMOUNT_NEW], [test "x${have_libmount_new}" = "xyes"]) 3155AM_CONDITIONAL([EEZE_LIBMOUNT_AFTER_219],
3144if test "x${have_libmount_new}" = "xno"; then 3156 [test "x${have_libmount_new}" = "xyes"])
3157if test "x${have_libmount_old}" = "xyes"; then
3145 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount]) 3158 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
3146fi 3159fi
3147 3160
3148AM_CONDITIONAL([EEZE_NOLIBMOUNT], [test "x${have_eeze_mount}" = "xno"]) 3161AM_CONDITIONAL([EEZE_LIBMOUNT_BEFORE_219],
3162 [test "x${have_libmount_old}" = "xyes"])
3163AM_CONDITIONAL([HAVE_EEZE_MOUNT], [test "x${have_eeze_mount}" = "xno"])
3149 3164
3150## modules 3165## modules
3151if test "${want_tizen}" = "yes"; then 3166if test "${want_tizen}" = "yes"; then