]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/Makefile.linux
pppd: Arrange to use logwtmp from libutil on Linux
[ppp.git] / pppd / Makefile.linux
index fd71454517e7ec7be2a29aa7fb3b3cdcddb9d25c..a74c914fd3acf84dbcaac360e6f5cabd3582f802 100644 (file)
@@ -73,6 +73,9 @@ PLUGIN=y
 # Enable EAP SRP-SHA1 authentication (requires libsrp)
 #USE_SRP=y
 
+# Use libutil
+USE_LIBUTIL=y
+
 MAXOCTETS=y
 
 INCLUDE_DIRS= -I../include
@@ -122,6 +125,11 @@ CFLAGS  += -DHAVE_CRYPT_H=1
 LIBS   += -lcrypt
 endif
 
+ifdef USE_LIBUTIL
+CFLAGS += -DHAVE_LOGWTMP=1
+LIBS   += -lutil
+endif
+
 ifdef NEEDDES
 ifndef USE_CRYPT
 LIBS     += -ldes $(LIBS)