1 |
hwoarang 12/02/04 10:43:33 |
2 |
|
3 |
Added: lxdm-0.4.1-configure-add-pam.patch |
4 |
Removed: xinitrc |
5 |
Log: |
6 |
Drop xinitrc. Add pam support. Bug #393681 and Bug #393675. Thanks to Mitch Harder <mmharder@×××××.com> |
7 |
|
8 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 lxde-base/lxdm/files/lxdm-0.4.1-configure-add-pam.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/lxde-base/lxdm/files/lxdm-0.4.1-configure-add-pam.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/lxde-base/lxdm/files/lxdm-0.4.1-configure-add-pam.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: lxdm-0.4.1-configure-add-pam.patch |
17 |
=================================================================== |
18 |
From 949ee91acb55baeb4b8761957eabd2e5a345d2ae Mon Sep 17 00:00:00 2001 |
19 |
From: Mitch Harder <mitch.harder@××××××××××××.org> |
20 |
Date: Thu, 8 Dec 2011 11:02:28 -0600 |
21 |
Subject: Fix configure.ac test for pam libs. |
22 |
|
23 |
A bug report on Gentoo noted that the configure test for pam |
24 |
wasn't working correctly. |
25 |
https://bugs.gentoo.org/show_bug.cgi?id=384615 |
26 |
|
27 |
This corrections borrows the configure.ac pam testing method used in xdm. |
28 |
--- |
29 |
configure.ac | 13 +++++++++++-- |
30 |
1 files changed, 11 insertions(+), 2 deletions(-) |
31 |
|
32 |
diff --git a/configure.ac b/configure.ac |
33 |
index e952473..eaa883a 100644 |
34 |
--- a/configure.ac |
35 |
+++ b/configure.ac |
36 |
@@ -14,12 +14,21 @@ AC_PROG_INSTALL |
37 |
AM_PROG_CC_C_O |
38 |
|
39 |
# Checks for libraries. |
40 |
AC_CHECK_LIB([crypt], [crypt]) |
41 |
|
42 |
-AC_ARG_WITH(pam,AC_HELP_STRING([--without-pam],[build without pam]), |
43 |
-[],[AC_CHECK_LIB([pam], [pam_open_session])]) |
44 |
+# Check for PAM support |
45 |
+AC_ARG_WITH(pam, AC_HELP_STRING([--with-pam],[Use PAM for authentication]), |
46 |
+ [USE_PAM=$withval], [USE_PAM=$use_pam_default]) |
47 |
+if test "x$USE_PAM" != "xno" ; then |
48 |
+ AC_SEARCH_LIBS(pam_open_session,[pam]) |
49 |
+ AC_CHECK_FUNC(pam_open_session, |
50 |
+ [AC_DEFINE(USE_PAM,1,[Use PAM for authentication])], |
51 |
+ [if test "x$USE_PAM" != "xtry" ; then |
52 |
+ AC_MSG_ERROR(["PAM support requested, but pam_open_session not found."]) |
53 |
+ fi]) |
54 |
+fi |
55 |
|
56 |
AC_CHECK_LIB([ck-connector],[ck_connector_open_session]) |
57 |
|
58 |
# Checks for header files. |
59 |
AC_PATH_X |
60 |
-- |
61 |
1.7.3.4 |