1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00
Jelmer Vernooij 836bab841c Add configure test for vdeplug library.
(This used to be commit 89590d7dfe0735093a4a5b66eeed9276df043ac9)
2008-02-19 23:00:43 +01:00

30 lines
835 B
Plaintext

AC_ARG_ENABLE(socket-wrapper,
[ --enable-socket-wrapper Turn on socket wrapper library (default=no)])
DEFAULT_TEST_OPTIONS=
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_OPTIONS=--socket-wrapper
HAVE_SOCKET_WRAPPER=yes
# this is only used for samba3
SOCKET_WRAPPER_OBJS="lib/socket_wrapper/socket_wrapper.o"
fi
AC_SUBST(DEFAULT_TEST_OPTIONS)
AC_SUBST(HAVE_SOCKET_WRAPPER)
AC_SUBST(SOCKET_WRAPPER_OBJS)
# Look for the vdeplug library
AC_CHECK_HEADERS(libvdeplug.h)
if test x"$ac_cv_header_libvdeplug_h" = xyes; then
AC_DEFINE(HAVE_VDEPLUG, 1, [Whether the VDE plug library is available])
SMB_EXT_LIB(VDEPLUG,[-lvdeplug],[],[],[])
fi