1 # $NetBSD: options.mk,v 1.5 2008/10/01 14:34:32 obache Exp $
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
10 .if !empty(BUILTIN_LIB_FOUND.pthread:M[yY][eE][sS])
11 PKG_SUGGESTED_OPTIONS+= pthread
14 .include "../../mk/bsd.options.mk"
19 .if !empty(PKG_OPTIONS:Minet6)
20 CONFIGURE_ARGS+= --enable-ipv6
22 CONFIGURE_ARGS+= --disable-ipv6
28 .if !empty(PKG_OPTIONS:Mpthread)
29 PTHREAD_AUTO_VARS= yes
30 .include "../../mk/pthread.buildlink3.mk"
31 CONFIGURE_ARGS+= --with-threads=pthread
33 CONFIGURE_ARGS+= --with-threads=fork
39 .if !empty(PKG_OPTIONS:Mlibwrap)
40 .include "../../security/tcp_wrappers/buildlink3.mk"
42 CONFIGURE_ARGS+= --disable-libwrap