lxdm-0.4.1-fix-optional-pam.patch 669 B

1234567891011121314151617181920212223242526272829303132
  1. diff --git a/Makefile.am b/Makefile.am
  2. index bfac56b..40710fc 100644
  3. --- a/Makefile.am
  4. +++ b/Makefile.am
  5. @@ -2,10 +2,13 @@ NULL =
  6. SUBDIRS= \
  7. src \
  8. po \
  9. - pam \
  10. data \
  11. $(NULL)
  12. +if HAVE_PAM
  13. +SUBDIRS += pam
  14. +endif
  15. +
  16. rpm: dist @PACKAGE_NAME@.spec
  17. rpmbuild -bb \
  18. --define "_sourcedir `pwd`" \
  19. diff --git a/configure.ac b/configure.ac
  20. index ae5177f..aaa1bad 100644
  21. --- a/configure.ac
  22. +++ b/configure.ac
  23. @@ -27,6 +27,7 @@ if test "x$USE_PAM" != "xno" ; then
  24. AC_MSG_ERROR(["PAM support requested, but pam_open_session not found."])
  25. fi])
  26. fi
  27. +AM_CONDITIONAL(HAVE_PAM, [test -n "$USE_PAM" -a "x$USE_PAM" != xno ])
  28. # Checks for header files.
  29. AC_PATH_X