From 9a152b4f1e5cc64f90309449da3f4cb0dfd74e72 Mon Sep 17 00:00:00 2001 From: Peter Avalos Date: Sat, 27 Oct 2007 23:49:15 -0400 Subject: [PATCH] Add knob to turn off GNU readline. --- etc/defaults/make.conf | 1 + gnu/lib/Makefile | 6 +++++- share/man/man5/make.conf.5 | 3 +++ 3 files changed, 9 insertions(+), 1 deletions(-) diff --git a/etc/defaults/make.conf b/etc/defaults/make.conf index 186e23a..fabb0cb 100644 --- a/etc/defaults/make.conf +++ b/etc/defaults/make.conf @@ -109,6 +109,7 @@ BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ #NO_OBJC= true # do not build Objective C support #NO_OPENSSH= true # do not build OpenSSH #NO_OPENSSL= true # do not build OpenSSL (implies NO_OPENSSH) +#NO_READLINE= true # do not build GNU readline #NO_SENDMAIL= true # do not build sendmail and related programs #NO_SHARE= true # do not enter the share subdirectory #NO_X= true # do not compile in XWindows support (e.g. doscmd) diff --git a/gnu/lib/Makefile b/gnu/lib/Makefile index 8d6842f..f590a3d 100644 --- a/gnu/lib/Makefile +++ b/gnu/lib/Makefile @@ -1,9 +1,13 @@ # $FreeBSD: src/gnu/lib/Makefile,v 1.25.2.4 2001/01/06 23:16:53 obrien Exp $ # $DragonFly: src/gnu/lib/Makefile,v 1.16 2007/09/05 21:40:10 pavalos Exp $ -SUBDIR= libdialog libregex libreadline gcc41 +SUBDIR= libdialog libregex gcc41 .if !defined(NO_GCC34) SUBDIR+= gcc34 .endif +.if !defined(NO_READLINE) +SUBDIR+= libreadline +.endif + .include diff --git a/share/man/man5/make.conf.5 b/share/man/man5/make.conf.5 index f548b07..36106ae 100644 --- a/share/man/man5/make.conf.5 +++ b/share/man/man5/make.conf.5 @@ -433,6 +433,9 @@ Set to not build OpenSSH. .Pq Vt bool Set to not build OpenSSL (implies .Va NO_OPENSSH ) . +.It Va NO_READLINE +.Pq Vt bool +Set to not build GNU readline. .It Va NO_SENDMAIL .Pq Vt bool Set to not build -- 1.5.5.1