gnome-keyring/gnome-keyring-2.20-link-against-pam.patch
2007-10-09 16:19:37 +00:00

31 lines
1.2 KiB
Diff

diff -up gnome-keyring-2.20/configure.in.link-against-pam gnome-keyring-2.20/configure.in
--- gnome-keyring-2.20/configure.in.link-against-pam 2007-10-09 12:14:32.000000000 -0400
+++ gnome-keyring-2.20/configure.in 2007-10-09 12:15:15.000000000 -0400
@@ -243,6 +243,13 @@ if test "$enable_pam" != "no"; then
AC_CHECK_HEADER(security/pam_modules.h, have_pam=yes, have_pam=no)
if test "$enable_pam" = "yes" -a "$have_pam" = "no"; then
AC_MSG_ERROR(The PAM headers are missing)
+ elif test "$have_pam" = "yes"; then
+ old_LIBS=$LIBS
+ AC_CHECK_LIB(pam, pam_start, have_pam=yes, have_pam=no)
+ if test "$enable_pam" = "yes" -a "$have_pam" = "no"; then
+ AC_MSG_ERROR(The PAM library is missing)
+ fi
+ LIBS=$old_LIBS
fi
fi
diff -up gnome-keyring-2.20/pam/Makefile.am.link-against-pam gnome-keyring-2.20/pam/Makefile.am
--- gnome-keyring-2.20/pam/Makefile.am.link-against-pam 2007-10-09 12:14:45.000000000 -0400
+++ gnome-keyring-2.20/pam/Makefile.am 2007-10-09 12:14:56.000000000 -0400
@@ -12,7 +12,8 @@ pam_gnome_keyring_la_SOURCES = \
gkr-pam-stubs.c
pam_gnome_keyring_la_LIBADD = \
- $(top_builddir)/common/libgkr-module-common.la
+ $(top_builddir)/common/libgkr-module-common.la \
+ -lpam
pam_gnome_keyring_la_LDFLAGS = \
-module -avoid-version \