summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index 1c3162668..2c8340319 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -651,3 +651,19 @@ AC_DEFUN([WITH_IFP],
fi
AM_CONDITIONAL([BUILD_IFP], [test x"$with_infopipe" = xyes])
])
+
+AC_DEFUN([WITH_SAMBA],
+ [ AC_ARG_WITH([samba],
+ [AC_HELP_STRING([--with-samba],
+ [Whether to build with samba4 libraries [yes]]
+ )
+ ],
+ [with_samba=$withval],
+ [with_samba=yes]
+ )
+
+ if test x"$with_samba" = xyes; then
+ AC_DEFINE(BUILD_SAMBA, 1, [whether to build with samba support])
+ fi
+ AM_CONDITIONAL([BUILD_SAMBA], [test x"$with_samba" = xyes])
+ ])