summaryrefslogtreecommitdiff
path: root/source3/lib/socket_wrapper/config.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-18 22:12:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:52:03 -0500
commit47e6b7733a2d063e5858da1f5af3408f46611b61 (patch)
treea481f82de9d5beb76ad5863f4fe3c1f8ba4fe9e8 /source3/lib/socket_wrapper/config.m4
parent58bd4333a517464c0949134d5a9ad30a4d619001 (diff)
downloadsamba-47e6b7733a2d063e5858da1f5af3408f46611b61.tar.gz
samba-47e6b7733a2d063e5858da1f5af3408f46611b61.tar.bz2
samba-47e6b7733a2d063e5858da1f5af3408f46611b61.zip
r18640: move to socket_wrapper to lib/socket_wrapper/
and sync it with samba4 metze (This used to be commit 9c0e5b29f1451a90605cce7e1e032e5516b6970d)
Diffstat (limited to 'source3/lib/socket_wrapper/config.m4')
-rw-r--r--source3/lib/socket_wrapper/config.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/lib/socket_wrapper/config.m4 b/source3/lib/socket_wrapper/config.m4
new file mode 100644
index 0000000000..42212abc7f
--- /dev/null
+++ b/source3/lib/socket_wrapper/config.m4
@@ -0,0 +1,22 @@
+AC_ARG_ENABLE(socket-wrapper,
+[ --enable-socket-wrapper Turn on socket wrapper library (default=no)])
+
+DEFAULT_TEST_TARGET=test-noswrap
+HAVE_SOCKET_WRAPPER=no
+
+if eval "test x$developer = xyes"; then
+ enable_socket_wrapper=yes
+fi
+
+if eval "test x$enable_socket_wrapper = xyes"; then
+ AC_DEFINE(SOCKET_WRAPPER,1,[Use socket wrapper library])
+ DEFAULT_TEST_TARGET=test-swrap
+ HAVE_SOCKET_WRAPPER=yes
+
+ # this is only used for samba3
+ SOCKET_WRAPPER_OBJS="lib/socket_wrapper/socket_wrapper.o"
+fi
+
+AC_SUBST(DEFAULT_TEST_TARGET)
+AC_SUBST(HAVE_SOCKET_WRAPPER)
+AC_SUBST(SOCKET_WRAPPER_OBJS)