summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
authorKarel Zak2012-05-29 15:15:38 +0200
committerKarel Zak2012-05-29 15:15:38 +0200
commitaec9ecbd6c0e34739d61d23bb4c47f3f080d8de1 (patch)
treec051875dcfea7dbed3ce50503dde6fff4495130c /login-utils
parentbuild-sys: add --disable-su (diff)
downloadkernel-qcow2-util-linux-aec9ecbd6c0e34739d61d23bb4c47f3f080d8de1.tar.gz
kernel-qcow2-util-linux-aec9ecbd6c0e34739d61d23bb4c47f3f080d8de1.tar.xz
kernel-qcow2-util-linux-aec9ecbd6c0e34739d61d23bb4c47f3f080d8de1.zip
build-sys: add --enable-newgrp
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils')
-rw-r--r--login-utils/Makefile.am23
1 files changed, 11 insertions, 12 deletions
diff --git a/login-utils/Makefile.am b/login-utils/Makefile.am
index d02a282c4..624ddc393 100644
--- a/login-utils/Makefile.am
+++ b/login-utils/Makefile.am
@@ -88,14 +88,22 @@ su_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
su_LDADD = -lpam -lpam_misc
endif
+if BUILD_NEWGRP
+usrbin_exec_PROGRAMS += newgrp
+dist_man_MANS += newgrp.1
+newgrp_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
+newgrp_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
+newgrp_LDADD =
+if HAVE_LIBCRYPT
+newgrp_LDADD += -lcrypt
+endif
+endif # BUILD_NEWGRP
+
if BUILD_LOGIN_UTILS
-usrbin_exec_PROGRAMS += \
- newgrp
usrsbin_exec_PROGRAMS += \
vipw
dist_man_MANS += \
- newgrp.1 \
vigr.8 \
vipw.8
@@ -104,21 +112,12 @@ vipw_SOURCES = \
setpwnam.h \
$(top_srcdir)/lib/fileutils.c
-newgrp_LDADD =
vipw_LDADD =
-newgrp_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
-newgrp_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
-
-if HAVE_LIBCRYPT
-newgrp_LDADD += -lcrypt
-endif
-
if HAVE_SELINUX
vipw_LDADD += -lselinux
endif
-
install-exec-hook::
cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr