summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-11-17 14:45:42 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-11-17 14:45:42 +0100
commit3b32a7ece09a4652a5fd6186aa059fd0e2163f5a (patch)
tree3ebe5c2aa49d2a06e40bbd2e777480a27c1d4713 /utils
parentdc229fb098be918e0e60c47d8f5a0de5956a559f (diff)
Make libcrypt really optional
* configure.ac (--without-libcrypt): Add option. Only test for libcrypt if it is not set. * utils/Makefile (login-LDLIBS, addauth-LDLIBS, setauth-LDLIBS): Only add -lcrypt when libcrypt is available.
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 48f9e7a0..0cefd27b 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -36,9 +36,9 @@ SRCS = shd.c ps.c settrans.c syncfs.c showtrans.c addauth.c rmauth.c \
OBJS = $(filter-out %.sh,$(SRCS:.c=.o))
HURDLIBS = ps ihash store fshelp ports ftpconn shouldbeinlibc
LDLIBS += -lpthread
-login-LDLIBS = -lutil -lcrypt
-addauth-LDLIBS = -lcrypt
-setauth-LDLIBS = -lcrypt
+login-LDLIBS = -lutil $(and $(HAVE_LIBCRYPT),-lcrypt)
+addauth-LDLIBS = $(and $(HAVE_LIBCRYPT),-lcrypt)
+setauth-LDLIBS = $(and $(HAVE_LIBCRYPT),-lcrypt)
mount-LDLIBS = $(libblkid_LIBS)
mount-CPPFLAGS = $(libblkid_CFLAGS)