summaryrefslogtreecommitdiffstats
path: root/src/pam
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2009-05-25 09:48:34 +0200
committerJan Safranek <jsafrane@redhat.com>2009-05-25 09:48:34 +0200
commit62e5d793d3d34479fec591dee62854381dc51291 (patch)
tree1c5ee0a288a5c6da051745df1df5eca7a7e3ec43 /src/pam
parent4a79706ce7f2e24dc7a028a42d2311aa885d77c3 (diff)
downloadlibcg-62e5d793d3d34479fec591dee62854381dc51291.tar.gz
libcg-62e5d793d3d34479fec591dee62854381dc51291.tar.xz
libcg-62e5d793d3d34479fec591dee62854381dc51291.zip
Add options to enable/disable various build targets.
By default, everything is compiled. I want to add options to ./configure, which can selectively disable tools, daemon and pam module. The library itself is mandatory component and cannot be disabled. Usage: ./configure --help ./configure --disable-tools --disable-pam --disable-daemon Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Diffstat (limited to 'src/pam')
-rw-r--r--src/pam/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pam/Makefile.am b/src/pam/Makefile.am
index 1a1e782..2ad565e 100644
--- a/src/pam/Makefile.am
+++ b/src/pam/Makefile.am
@@ -1,6 +1,10 @@
INCLUDES = -I $(top_srcdir)/include
-lib_LTLIBRARIES = pam_cgroup.la
+if WITH_PAM
+
+lib_LTLIBRARIES = pam_cgroup.la
pam_cgroup_la_SOURCES = pam_cgroup.c
pam_cgroup_la_LDFLAGS = -module
pam_cgroup_la_LIBADD = $(top_srcdir)/src/.libs/libcgroup.la -lpam
+
+endif