Add pwcache(3) and vis(3) to libegacy as install(1) is about to grow a

dependency on them.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Brooks Davis 2013-01-11 20:51:02 +00:00
parent c7cbfddd2b
commit 79626055e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245311

View File

@ -21,6 +21,22 @@ config.h: ${.CURDIR}/../../lib/libmagic/config.h
grep -v HAVE_GETLINE ${.ALLSRC} > ${.TARGET}
.endif
_WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/pwd.h || true
.if ${_WITH_PWCACHEDB} == 0
.PATH: ${.CURDIR}/../../contrib/libc-pwcache
CFLAGS+= -I${.CURDIR}/../../contrib/libc-pwcache \
-I${.CURDIR}/../../lib/libc/include
SRCS+= pwcache.c
.endif
_WITH_STRSVIS!= grep -c strsvis /usr/include/vis.h || true
.if ${_WITH_STRSVIS} == 0
.PATH: ${.CURDIR}/../../contrib/libc-vis
SRCS+= vis.c
CFLAGS+= -I${.CURDIR}/../../contrib/libc-vis \
-I${.CURDIR}/../../lib/libc/include
.endif
.if empty(SRCS)
SRCS= dummy.c
.endif