Add files from parent branch HEAD:
[pkgsrc.git] / security / stunnel / options.mk
1 # $NetBSD: options.mk,v 1.5 2008/10/01 14:34:32 obache Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.stunnel
4 PKG_SUPPORTED_OPTIONS=  inet6 pthread libwrap
5 PKG_SUGGESTED_OPTIONS=  libwrap
6 CHECK_BUILTIN.pthread:=         yes
7 .include "../../mk/pthread.builtin.mk"
8 CHECK_BUILTIN.pthread:=         no
9
10 .if !empty(BUILTIN_LIB_FOUND.pthread:M[yY][eE][sS])
11 PKG_SUGGESTED_OPTIONS+= pthread
12 .endif
13
14 .include "../../mk/bsd.options.mk"
15
16 ###
17 ### Support IPv6
18 ###
19 .if !empty(PKG_OPTIONS:Minet6)
20 CONFIGURE_ARGS+=        --enable-ipv6
21 .else
22 CONFIGURE_ARGS+=        --disable-ipv6
23 .endif
24
25 ###
26 ### Support pthreads
27 ###
28 .if !empty(PKG_OPTIONS:Mpthread)
29 PTHREAD_AUTO_VARS=      yes
30 .include "../../mk/pthread.buildlink3.mk"
31 CONFIGURE_ARGS+=        --with-threads=pthread
32 .else
33 CONFIGURE_ARGS+=        --with-threads=fork
34 .endif
35
36 ###
37 ### Support libwrap
38 ###
39 .if !empty(PKG_OPTIONS:Mlibwrap)
40 .include "../../security/tcp_wrappers/buildlink3.mk"
41 .else
42 CONFIGURE_ARGS+=        --disable-libwrap
43 .endif