diff options
author | Ollivier Robert <roberto@FreeBSD.org> | 2004-07-22 08:14:37 +0000 |
---|---|---|
committer | Ollivier Robert <roberto@FreeBSD.org> | 2004-07-22 08:14:37 +0000 |
commit | d060ebf7b2b5bc7a4978fe5972050b910ca5997b (patch) | |
tree | 62aefadf50e2203fe5ce7dc7f0032cb518a93780 /usr.sbin/ntp/ntpq/Makefile | |
parent | 284b024b2b4afebfec18924630090bf08d661a1b (diff) | |
download | src-d060ebf7b2b5bc7a4978fe5972050b910ca5997b.tar.gz src-d060ebf7b2b5bc7a4978fe5972050b910ca5997b.zip |
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
Notes
Notes:
svn path=/head/; revision=132531
Diffstat (limited to 'usr.sbin/ntp/ntpq/Makefile')
-rw-r--r-- | usr.sbin/ntp/ntpq/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/ntp/ntpq/Makefile b/usr.sbin/ntp/ntpq/Makefile index 67687e961416..7d3e1e5e07ad 100644 --- a/usr.sbin/ntp/ntpq/Makefile +++ b/usr.sbin/ntp/ntpq/Makefile @@ -10,8 +10,15 @@ SRCS= ntpq.c ntpq_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 \ +i -DHAVE_READLINE_READLINE_H +.endif CLEANFILES+= .version version.c |