summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ntp/ntpdc
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2004-07-22 08:14:37 +0000
committerroberto <roberto@FreeBSD.org>2004-07-22 08:14:37 +0000
commit393a8563ce53c0957b638f2b8837b256f3395794 (patch)
tree62aefadf50e2203fe5ce7dc7f0032cb518a93780 /usr.sbin/ntp/ntpdc
parent896583b3ecfe3b3b153ace03a17a88c855cbc5fb (diff)
downloadFreeBSD-src-393a8563ce53c0957b638f2b8837b256f3395794.zip
FreeBSD-src-393a8563ce53c0957b638f2b8837b256f3395794.tar.gz
Allow ntpd to be compiled w/o readline when NO_GNU is defined. Part of a
larger patchset to get a GNU-free world. Patch rewritten to cope with the 4.2.0 changes. Submitted by: des
Diffstat (limited to 'usr.sbin/ntp/ntpdc')
-rw-r--r--usr.sbin/ntp/ntpdc/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/ntp/ntpdc/Makefile b/usr.sbin/ntp/ntpdc/Makefile
index 9bb3a54..94947f5 100644
--- a/usr.sbin/ntp/ntpdc/Makefile
+++ b/usr.sbin/ntp/ntpdc/Makefile
@@ -8,8 +8,15 @@ SRCS= ntpdc.c ntpdc_ops.c version.c
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
-DPADD= ${LIBNTP} ${LIBREADLINE} ${LIBTERMCAP} ${LIBMD}
-LDADD= ${LIBNTP} -lreadline -ltermcap -lmd
+DPADD= ${LIBNTP} ${LIBMD}
+LDADD= ${LIBNTP} -lmd
+
+.if !defined(NO_GNU)
+DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
+LDADD+= -lreadline -ltermcap
+CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \
+ -DHAVE_READLINE_READLINE_H
+.endif
CLEANFILES+= .version version.c
OpenPOWER on IntegriCloud