summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-06-18 04:20:46 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-06-18 04:20:46 +0200
commit78e316ddbc15c37604c84cb08dd13c95e2539d68 (patch)
tree0fab63c3956ec32a38b2c4854a5e55cf2c02a7a6 /source4
parent8178a40dcd0f66e3858fcac8fe23d9fc8b54ecf4 (diff)
downloadsamba-78e316ddbc15c37604c84cb08dd13c95e2539d68.tar.gz
samba-78e316ddbc15c37604c84cb08dd13c95e2539d68.tar.bz2
samba-78e316ddbc15c37604c84cb08dd13c95e2539d68.zip
Use system Python LDB bindings, if present.
Diffstat (limited to 'source4')
-rw-r--r--source4/configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/configure.ac b/source4/configure.ac
index 4b644d4cae..1930f4b6c7 100644
--- a/source4/configure.ac
+++ b/source4/configure.ac
@@ -78,6 +78,14 @@ SMB_INCLUDED_LIB_PKGCONFIG(LIBLDB, ldb = LDB_REQUIRED_VERSION,
SMB_INCLUDE_MK(lib/ldb/ldb_ildap/config.mk)
SMB_INCLUDE_MK(lib/ldb/tools/config.mk)
define_ldb_modulesdir=no
+ AC_MSG_CHECKING([for Python LDB bindings])
+ if $PYTHON -c "import ldb" 2>/dev/null; then
+ AC_MSG_RESULT(yes)
+ else
+ SMB_INCLUDE_MK(lib/ldb/python.mk)
+ AC_MSG_RESULT(no)
+ fi
+
],
[
# Here we need to do some tricks
@@ -103,8 +111,8 @@ SMB_INCLUDED_LIB_PKGCONFIG(LIBLDB, ldb = LDB_REQUIRED_VERSION,
m4_include(lib/ldb/libldb.m4)
SMB_INCLUDE_MK(lib/ldb/config.mk)
AC_CONFIG_FILES(lib/ldb/ldb.pc)
+ SMB_INCLUDE_MK(lib/ldb/python.mk)
])
-SMB_INCLUDE_MK(lib/ldb/python.mk)
m4_include(lib/tls/config.m4)
m4_include(torture/libnetapi/config.m4)