summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSeunghun Lee <shiin.lee@samsung.com>2014-12-09 09:36:42 -0500
committerChris Michael <cp.michael@samsung.com>2014-12-09 09:36:42 -0500
commitb10ab1a86f35ab793ba6efb49224d9ecdd1b7dbd (patch)
treea29763a81807d24d4a994dfff9b7098a02e22e45 /configure.ac
parent05006e64634359613e093776af19e7b9ca0caec1 (diff)
ecore-drm: added drm launcher that is allow to determine whether to launch with logind or root privilege.
Summary: - allow to launch drm backend without systemd-logind with root privilege. - allow to open drm device node via logind, not directly open it, in case exist systemd-logind. - fixes issue that couldn't switch session, because ecore-drm couldn't drop master to drm device with no permission. (allow to switch session appropriate.) Reviewers: gwanglim, devilhorns Subscribers: torori, cedric Differential Revision: https://phab.enlightenment.org/D1704
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e09213d..5911192 100644
--- a/configure.ac
+++ b/configure.ac
@@ -673,13 +673,18 @@ fi
673AM_CONDITIONAL([HAVE_SYSTEMD_USER_SESSION], [test "x${have_systemd_user_session}" = "xyes"]) 673AM_CONDITIONAL([HAVE_SYSTEMD_USER_SESSION], [test "x${have_systemd_user_session}" = "xyes"])
674AC_SUBST([USER_SESSION_DIR]) 674AC_SUBST([USER_SESSION_DIR])
675 675
676
677if test "x${have_systemd_pkg}" = "xauto" -o "x${have_systemd_pkg}" = "xyes"; then 676if test "x${have_systemd_pkg}" = "xauto" -o "x${have_systemd_pkg}" = "xyes"; then
678 PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon >= 192 libsystemd-journal >= 192], 677 PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon >= 192 libsystemd-journal >= 192],
679 [have_systemd_pkg="yes"], 678 [have_systemd_pkg="yes"],
680 [have_systemd_pkg="no"]) 679 [have_systemd_pkg="no"])
681fi 680fi
682 681
682PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libsystemd-login >= 198],
683 [have_systemd_login=yes], [have_systemd_login=no])
684AS_IF([test "x$have_systemd_login" = "xyes"],
685 [AC_DEFINE([HAVE_SYSTEMD_LOGIN], [1], [Have systemd-login])])
686AM_CONDITIONAL(HAVE_SYSTEMD_LOGIN, test "x$have_systemd_login" = "xyes")
687
683# check for systemd library if requested 688# check for systemd library if requested
684if test "x${want_systemd}" = "xyes" -a "x${have_systemd_pkg}" = "xno"; then 689if test "x${want_systemd}" = "xyes" -a "x${have_systemd_pkg}" = "xno"; then
685 AC_MSG_ERROR([Systemd dependencie requested but not found]) 690 AC_MSG_ERROR([Systemd dependencie requested but not found])
@@ -3072,7 +3077,7 @@ EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [eeze])
3072EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [eo]) 3077EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [eo])
3073EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [eina]) 3078EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [eina])
3074 3079
3075EFL_DEPEND_PKG([ECORE_DRM], [DRM], [libdrm >= 2.4 xkbcommon >= 0.3.0 libsystemd-login >= 192 gbm]) 3080EFL_DEPEND_PKG([ECORE_DRM], [DRM], [libdrm >= 2.4 xkbcommon >= 0.3.0 gbm])
3076 3081
3077EFL_EVAL_PKGS([ECORE_DRM]) 3082EFL_EVAL_PKGS([ECORE_DRM])
3078 3083