aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-08-08 08:00:00 +0000
committerDmitry V. Levin <ldv@altlinux.org>2020-08-08 08:00:00 +0000
commite42e178c71c11bb25740a5177eed110ee17b8af2 (patch)
tree0e9fbb8096bfc79e9849ff35bc7a6c27371443e2 /modules
parentd5cb4409ab6b04a6ed7c00245e2c9a430f352b16 (diff)
downloadpam-e42e178c71c11bb25740a5177eed110ee17b8af2.tar.gz
pam-e42e178c71c11bb25740a5177eed110ee17b8af2.tar.bz2
pam-e42e178c71c11bb25740a5177eed110ee17b8af2.zip
configure: add --disable-unix option
Some distributions do not build pam_unix, e.g. ALT uses pam_tcb instead. Add a configure option to disable build of pam_unix so that those who choose not to build pam_unix no longer have to edit modules/Makefile.am file. The default is unchanged, i.e. build of pam_unix is enabled. * configure.ac (AC_ARG_ENABLE): Add unix. (AM_CONDITIONAL): Add COND_BUILD_PAM_UNIX. * modules/Makefile.am [COND_BUILD_PAM_UNIX] (MAYBE_PAM_UNIX): Define. (SUBDIRS): Replace pam_unix with $(COND_BUILD_PAM_UNIX).
Diffstat (limited to 'modules')
-rw-r--r--modules/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/Makefile.am b/modules/Makefile.am
index c57ccc44..641108dd 100644
--- a/modules/Makefile.am
+++ b/modules/Makefile.am
@@ -46,6 +46,10 @@ if COND_BUILD_PAM_TTY_AUDIT
MAYBE_PAM_TTY_AUDIT = pam_tty_audit
endif
+if COND_BUILD_PAM_UNIX
+ MAYBE_PAM_UNIX = pam_unix
+endif
+
if COND_BUILD_PAM_USERDB
MAYBE_PAM_USERDB = pam_userdb
endif
@@ -92,7 +96,7 @@ SUBDIRS := \
pam_timestamp \
$(MAYBE_PAM_TTY_AUDIT) \
pam_umask \
- pam_unix \
+ $(MAYBE_PAM_UNIX) \
$(MAYBE_PAM_USERDB) \
pam_usertype \
pam_warn \