Detect if MIT Kerberos V headers are present on the system (by looking

in ${DESTDIR}/usr/include/krb5/osconf.h) and if so, tell the operator
to remove the contents of that directory in an error message and abort.
This commit is contained in:
thorpej 2000-06-19 23:50:52 +00:00
parent b703642129
commit 1d5362fe7e
1 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2000/06/16 22:46:46 thorpej Exp $ # $NetBSD: Makefile,v 1.3 2000/06/19 23:50:52 thorpej Exp $
DIST= ${.CURDIR}/../../crypto/dist DIST= ${.CURDIR}/../../crypto/dist
.PATH: ${DIST}/heimdal/lib/krb5 .PATH: ${DIST}/heimdal/lib/krb5
.PATH: ${DIST}/heimdal/lib/des .PATH: ${DIST}/heimdal/lib/des
@ -160,5 +160,15 @@ $(SRCS:.c=.o): krb5_err.h heim_err.h
TEXINFO= heimdal.texi TEXINFO= heimdal.texi
INFOFLAGS= -I${DIST}/heimdal/doc INFOFLAGS= -I${DIST}/heimdal/doc
# Prevent collision with old MIT Kerberos includes -- require manual
# intervention of the operator.
.BEGIN:
.ifmake includes
@if [ -f ${DESTDIR}${INCSDIR}/osconf.h ]; then \
echo "Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \
false; \
fi
.endif
.include <bsd.lib.mk> .include <bsd.lib.mk>
.include <bsd.info.mk> .include <bsd.info.mk>