r25093: Use system-provided ldb library if available. Note that this only means using...
[jelmer/samba4-debian.git] / source / lib / ldb / libldb.m4
1
2 # disable ldb_sqlite3 by default
3 SMB_ENABLE(ldb_sqlite3, NO)
4
5 if test x"$with_sqlite3_support" = x"yes"; then
6         SMB_ENABLE(ldb_sqlite3, YES)
7 fi
8
9 AC_MSG_CHECKING([for Python])
10
11 PYTHON=
12  
13 AC_ARG_WITH(python,
14 [  --with-python=PYTHONNAME  build Python libraries],
15 [ case "${withval-python}" in
16   yes)
17         PYTHON=python
18         ;;
19   no)
20         PYTHON=
21         ;;
22   *)
23         PYTHON=${withval-python}
24         ;;
25   esac ])
26
27 if test x"$PYTHON" != "x"; then
28         incdir=`python -c 'import sys; print "%s/include/python%d.%d" % (sys.prefix, sys.version_info[[0]], sys.version_info[[1]])'`
29         CPPFLAGS="$CPPFLAGS -I $incdir"
30 fi
31
32 if test x"$PYTHON" != "x"; then
33         AC_MSG_RESULT([${withval-python}])
34 else
35         AC_MSG_RESULT(no)
36         SMB_ENABLE(swig_ldb, NO)
37 fi
38
39 AC_SUBST(PYTHON)