summaryrefslogtreecommitdiff
path: root/lxde-base/lxdm/files/lxdm-0.4.1-optional-consolekit.patch
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
commit7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch)
tree1684924656132935256e034f35f92abee6623265 /lxde-base/lxdm/files/lxdm-0.4.1-optional-consolekit.patch
Added ebuilds for kogaion desktop
Diffstat (limited to 'lxde-base/lxdm/files/lxdm-0.4.1-optional-consolekit.patch')
-rw-r--r--lxde-base/lxdm/files/lxdm-0.4.1-optional-consolekit.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/lxde-base/lxdm/files/lxdm-0.4.1-optional-consolekit.patch b/lxde-base/lxdm/files/lxdm-0.4.1-optional-consolekit.patch
new file mode 100644
index 00000000..021f3212
--- /dev/null
+++ b/lxde-base/lxdm/files/lxdm-0.4.1-optional-consolekit.patch
@@ -0,0 +1,38 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -28,8 +28,6 @@ if test "x$USE_PAM" != "xno" ; then
+ fi])
+ fi
+
+-AC_CHECK_LIB([ck-connector],[ck_connector_open_session])
+-
+ # Checks for header files.
+ AC_PATH_X
+ AC_CHECK_HEADERS([shadow.h stdlib.h string.h unistd.h utmpx.h])
+@@ -89,11 +87,21 @@ PKG_CHECK_MODULES(GTK, [$pkg_modules])
+ AC_SUBST(GTK_CFLAGS)
+ AC_SUBST(GTK_LIBS)
+
+-PKG_CHECK_MODULES(CONSOLEKIT, "ck-connector",[
+- AC_SUBST(CONSOLEKIT_CFLAGS)
+- AC_SUBST(CONSOLEKIT_LIBS)],[
+- echo "ConsoleKit devel package not found"
+- ])
++AC_ARG_ENABLE(consolekit,
++AC_HELP_STRING([--enable-consolekit], [enable ConsoleKit support]),
++[case "${enableval}" in
++ yes) enable_ck=yes ;;
++ no) enable_ck=no ;;
++ *) AC_MSG_ERROR([bad value "${enableval}" for --enable-consolekit, use "yes" (default) or "no".]) ;;
++esac],[])
++if test "x$enable_ck" = "xyes" ; then
++ AC_CHECK_LIB([ck-connector],[ck_connector_open_session])
++ PKG_CHECK_MODULES(CONSOLEKIT, "ck-connector",[
++ AC_SUBST(CONSOLEKIT_CFLAGS)
++ AC_SUBST(CONSOLEKIT_LIBS)],[
++ echo "ConsoleKit devel package not found"
++ ])
++fi
+
+ AC_ARG_ENABLE(password,
+ AC_HELP_STRING([--enable-password],[enable to load autologin password store at config file]),