From: Frank Cusack Date: Mon, 12 May 2003 08:13:24 +0000 (+0000) Subject: use librcrypt if available (crypt(3) is apparently in libcrypt on Linux) X-Git-Tag: ppp-2.4.7~293 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=541584dfbb3b0ca4b12c4c468bc3ac809c30a46e;p=ppp.git use librcrypt if available (crypt(3) is apparently in libcrypt on Linux) --- diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index ac7bebb..38f1f29 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.56 2003/01/13 08:17:04 fcusack Exp $ +# $Id: Makefile.linux,v 1.57 2003/05/12 08:13:24 fcusack Exp $ # # Default installation locations @@ -119,17 +119,18 @@ CFLAGS += -DHAS_SHADOW #LIBS += -lshadow $(LIBS) endif -ifdef NEEDDES -ifndef USE_CRYPT -LIBS += -ldes $(LIBS) -else -CFLAGS += -DUSE_CRYPT=1 ifneq ($(wildcard /usr/include/crypt.h),) CFLAGS += -DHAVE_CRYPT_H=1 endif ifneq ($(wildcard /usr/lib/libcrypt.*),) LIBS += -lcrypt endif + +ifdef NEEDDES +ifndef USE_CRYPT +LIBS += -ldes $(LIBS) +else +CFLAGS += -DUSE_CRYPT=1 endif PPPDOBJS += pppcrypt.o HEADERS += pppcrypt.h