summaryrefslogtreecommitdiff
path: root/security/stunnel/options.mk
blob: 6fcaf194329f198959fe4e897124bf1ccd10c0f2 (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
# $NetBSD: options.mk,v 1.3 2007/08/11 14:41:36 schmonz Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.stunnel
PKG_SUPPORTED_OPTIONS=	inet6 pthread
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none"
PKG_SUGGESTED_OPTIONS+=	pthread
.endif

.include "../../mk/bsd.options.mk"

###
### Support IPv6
###
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif

###
### Support pthreads
###
.if !empty(PKG_OPTIONS:Mpthread)
CONFIGURE_ARGS+=	--with-threads=pthread
CONFIGURE_ENV+=		CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" \
			LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
.else
CONFIGURE_ARGS+=	--with-threads=fork
.endif