summaryrefslogtreecommitdiff
path: root/features/mkc_imp.f_SLIST.mk
blob: d5a1fc499b93ecef91e09f9d4b6ef81c82e32166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright (c) 2014 by Aleksey Cheusov
#
# See LICENSE file in the distribution.
############################################################
.ifndef _MKC_IMP_F_SYSQUEUE_MK
_MKC_IMP_F_SYSQUEUE_MK := 1

.include <mkc_imp.conf-cleanup.mk>

_macro = SLIST SIMPLEQ STAILQ LIST TAILQ TAILQ

.for m in ${_macro}
MKC_CHECK_DEFINES +=	${m}_ENTRY:sys/queue.h
_macro.${m}        =	1
.endfor

.include <mkc_imp.conf-cleanup.mk>

.for f in ${MKC_FEATURES}
.if defined(_macro.${f}) && !${HAVE_DEFINE.${m}_ENTRY.sys/queue.h:U0}
bad=1
.endif
.endfor

.ifndef bad
CFLAGS+=	-DMKC_SYS_QUEUE_IS_FINE=1
.endif

.for m in ${_macro}
.undef _macro.${m}
.endfor

.undef bad
.undef _macro

.endif # _MKC_IMP_F_SYSQUEUE_MK