summaryrefslogtreecommitdiffstats
path: root/src/external
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-03-13 11:09:11 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-03-20 12:28:55 +0100
commitec26d836b1b2a41ec2692976a539da51f261412b (patch)
tree38903b5088f63e0ba53bcef46524d954d1336a10 /src/external
parentfae99bfe4bfc8b4a12e9c2a0ad01b3684c22f934 (diff)
downloadsssd-ec26d836b1b2a41ec2692976a539da51f261412b.tar.gz
sssd-ec26d836b1b2a41ec2692976a539da51f261412b.tar.xz
sssd-ec26d836b1b2a41ec2692976a539da51f261412b.zip
Making the ldb check configurable
It is possible to enable/disable checking in LDB memberof plugin whether it was built against the same version of LDB that is present on the system. This feature is turned off by default and enabled in Fedora/RHEL spec file. https://fedorahosted.org/sssd/ticket/1813
Diffstat (limited to 'src/external')
-rw-r--r--src/external/libldb.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/src/external/libldb.m4 b/src/external/libldb.m4
index d3d3ccece..3e26b15a0 100644
--- a/src/external/libldb.m4
+++ b/src/external/libldb.m4
@@ -24,5 +24,20 @@ else
ldblibdir="${libdir}/ldb"
fi
fi
+
+AC_MSG_CHECKING([feature ldb runtime version check])
+AC_ARG_ENABLE(ldb-version-check,
+ [AS_HELP_STRING([--enable-ldb-version-check],
+ [compile with ldb runtime version check [default=no]])],
+ enable_ldb_version_check="$enableval",
+ enable_ldb_version_check="no")
+if test x"$enable_ldb_version_check" = xyes ; then
+ AC_MSG_RESULT([yes])
+ AC_DEFINE([SSS_LDB_VERSION_CHECK], [1],
+ [Define to 1 if you want ldb version check.])
+else
+ AC_MSG_RESULT([no])
+fi
+
AC_MSG_NOTICE([ldb lib directory: $ldblibdir])
AC_SUBST(ldblibdir)