summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
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