From 073666ed2972b63bec4e86762943e6c9b99f84e0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 13 May 2012 16:02:22 +1000 Subject: lib/socket_wrapper only enable python_socket and socket.py with socket_wrapper Autobuild-User: Andrew Bartlett Autobuild-Date: Sun May 13 10:41:27 CEST 2012 on sn-devel-104 --- lib/socket_wrapper/wscript_build | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'lib/socket_wrapper') diff --git a/lib/socket_wrapper/wscript_build b/lib/socket_wrapper/wscript_build index c4b94147d6..8e1c296229 100644 --- a/lib/socket_wrapper/wscript_build +++ b/lib/socket_wrapper/wscript_build @@ -8,12 +8,14 @@ bld.SAMBA_LIBRARY('socket_wrapper', deps='replace') bld.SAMBA_PYTHON('py_socket_wrapper', - source='py_socket_wrapper.c', - deps='socket_wrapper', - public_deps='talloc pytalloc-util', - realname='samba/socket_wrapper.so') + source='py_socket_wrapper.c', + deps='socket_wrapper', + enabled=bld.CONFIG_SET('SOCKET_WRAPPER'), + public_deps='talloc pytalloc-util', + realname='samba/socket_wrapper.so') -bld.SAMBA_SCRIPT('python_socket', - pattern='socket.py', - installdir='python', - installname='samba/socket.py') +if bld.CONFIG_SET('SOCKET_WRAPPER'): + bld.SAMBA_SCRIPT('python_socket', + pattern='socket.py', + installdir='python', + installname='samba/socket.py') -- cgit