2012-06-12 17:45:54 +02:00
|
|
|
# $NetBSD: options.mk,v 1.8 2012/06/12 15:46:03 wiz Exp $
|
2005-07-03 06:00:18 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.stunnel
|
2009-10-31 00:54:52 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= inet6 threads tcpwrappers
|
2012-06-12 17:45:54 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= inet6 tcpwrappers
|
2008-10-01 16:34:32 +02:00
|
|
|
CHECK_BUILTIN.pthread:= yes
|
|
|
|
.include "../../mk/pthread.builtin.mk"
|
|
|
|
CHECK_BUILTIN.pthread:= no
|
|
|
|
|
|
|
|
.if !empty(BUILTIN_LIB_FOUND.pthread:M[yY][eE][sS])
|
2009-10-31 00:54:52 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS+= threads
|
2007-08-11 16:41:36 +02:00
|
|
|
.endif
|
2005-07-03 06:00:18 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
###
|
|
|
|
### Support IPv6
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
2007-08-11 16:41:36 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
### Support pthreads
|
|
|
|
###
|
2009-10-31 00:54:52 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mthreads)
|
2008-10-01 16:34:32 +02:00
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2007-08-11 16:41:36 +02:00
|
|
|
CONFIGURE_ARGS+= --with-threads=pthread
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-threads=fork
|
|
|
|
.endif
|
2008-09-19 21:20:57 +02:00
|
|
|
|
|
|
|
###
|
2009-10-31 00:54:52 +01:00
|
|
|
### Support tcp_wrappers
|
2008-09-19 21:20:57 +02:00
|
|
|
###
|
2009-10-31 00:54:52 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mtcpwrappers)
|
2008-10-01 16:34:32 +02:00
|
|
|
.include "../../security/tcp_wrappers/buildlink3.mk"
|
2008-09-19 21:20:57 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libwrap
|
|
|
|
.endif
|