X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2FMakefile.linux;h=a22dcfab9d74f9658a1522bada021a41249aa90d;hb=ddd57c279f467e18c4fb3a661f21a069a5a37a1f;hp=36d2b036a8c5d228b0ab3cf754efccc5ffa0c9c5;hpb=a96702158e72c0d527a146940b983a366dbce464;p=ppp.git diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 36d2b03..a22dcfa 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -33,12 +33,12 @@ endif # CC = gcc # COPTS = -O2 -pipe -Wall -g -LIBS = +LIBS = -lrt -# Uncomment the next 2 lines to include support for Microsoft's +# Uncomment the next line to include support for Microsoft's # MS-CHAP authentication protocol. Also, edit plugins/radius/Makefile.linux. CHAPMS=y -USE_CRYPT=y +#USE_CRYPT=y # Don't use MSLANMAN unless you really know what you're doing. #MSLANMAN=y # Uncomment the next line to include support for MPPE. CHAPMS (above) must @@ -99,6 +99,7 @@ CFLAGS += -DMSLANMAN=1 endif ifdef MPPE CFLAGS += -DMPPE=1 +HEADERS += mppe.h endif endif @@ -125,7 +126,7 @@ CFLAGS += -DHAS_SHADOW #LIBS += -lshadow $(LIBS) endif -ifneq ($(wildcard /usr/include/crypt.h),) +ifneq ($(wildcard $(shell $(CC) --print-sysroot)/usr/include/crypt.h),) CFLAGS += -DHAVE_CRYPT_H=1 LIBS += -lcrypt endif @@ -137,7 +138,8 @@ endif ifdef NEEDDES ifndef USE_CRYPT -LIBS += -ldes $(LIBS) +CFLAGS += -I$(shell $(CC) --print-sysroot)/usr/include/openssl +LIBS += -lcrypto else CFLAGS += -DUSE_CRYPT=1 endif