summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-03-04 16:40:36 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-05-16 15:47:26 +0200
commita2e417f38c57ed87c956ddcecf4dafca93842b65 (patch)
tree33cb120c44f34b531cf1ea7474e14c51bfdc87e4 /src/conf_macros.m4
parentf333ca01311000475db0fbd059243d05f9a90e96 (diff)
downloadsssd-a2e417f38c57ed87c956ddcecf4dafca93842b65.tar.gz
sssd-a2e417f38c57ed87c956ddcecf4dafca93842b65.tar.xz
sssd-a2e417f38c57ed87c956ddcecf4dafca93842b65.zip
BUILD: Make samba4 libraries optional
Samba 4 libraries are necessary for building {ad, ipa} provider, but samba4 needn't be available on older distributions. This patch add possibility to build SSSD without {ad, ipa} provider and thus without Samba 4 libraries. The script configure have new argument --with-samba with default value yes. Reviewed-by: Michal Židek <mzidek@redhat.com>
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])
+ ])