Commit 218ec164 authored by Ramiro Estrugo's avatar Ramiro Estrugo

Add a real check for pam.

parent 604acdd1
2000-04-27 Ramiro Estrugo <ramiro@eazel.com>
Add a real check for pam.
* acconfig.h:
Add HAVE_PAM.
* configure.in:
Check for pam.
* helper-utilities/authenticate/Makefile.am:
Use $(PAM_LIBS) instead of hardcoding.
2000-04-27 John Sullivan <sullivan@eazel.com>
Fixed bug 660 (Need to publish menu positions for components to use)
......
......@@ -7,3 +7,5 @@
#undef HAVE_STPCPY
#undef HAVE_RPM
#undef HAVE_PAM
......@@ -50,14 +50,25 @@ AC_SUBST(EAZEL_SERVICES)
AM_CONDITIONAL(EAZEL_SERVICES, test "x$EAZEL_SERVICES" = "x1")
dnl There needs to be a better check here for the real stuff the authenticate
dnl helper depends on, like pam.
dnl ====================================
dnl =
dnl = authenticate helper
dnl =
dnl ====================================
BUILD_AUTHENTICATE_HELPER=
AC_ARG_ENABLE(authenticate-helper,
[--enable-authenticate-helper Authenticate Helper utility],
BUILD_AUTHENTICATE_HELPER=1)
AC_CHECK_LIB(pam, pam_authenticate,
[BUILD_AUTHENTICATE_HELPER=1
AC_DEFINE(HAVE_PAM)
AC_CHECK_LIB(pam_misc, pam_misc_setenv,
[PAM_LIBS="-ldl -lpam -lpam_misc"], [PAM_LIBS="-ldl -lpam"], -ldl -lpam) ], [PAM_LIBS=], -ldl)
AC_SUBST(PAM_LIBS)
AM_CONDITIONAL(BUILD_AUTHENTICATE_HELPER, test "x$BUILD_AUTHENTICATE_HELPER" = "x1")
dnl ====================================
dnl = end authenticate helper
dnl ====================================
dnl ====================================
dnl =
......
......@@ -25,6 +25,5 @@ nautilus_authenticate_LDFLAGS = \
$(top_builddir)/librsvg/librsvg.la \
$(GNOMEUI_LIBS) \
$(GCONF_LIBS) \
-lpam \
-lpam_misc \
$(PAM_LIBS) \
$(NULL)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment