source: branches/samba-3.3.x/source/lib/ldb/libldb.m4

Last change on this file was 206, checked in by Herwig Bauernfeind, 16 years ago

Import Samba 3.3 branch at 3.0.0 level (psmedley's port)

File size: 659 bytes
Line 
1SMB_ENABLE(ldb_sqlite3,$with_sqlite3_support)
2
3AC_MSG_CHECKING([for Python])
4
5PYTHON=
6
7AC_ARG_WITH(python,
8[ --with-python=PYTHONNAME build Python libraries],
9[ case "${withval-python}" in
10 yes)
11 PYTHON=python
12 ;;
13 no)
14 PYTHON=
15 ;;
16 *)
17 PYTHON=${withval-python}
18 ;;
19 esac ])
20
21if test x"$PYTHON" != "x"; then
22 incdir=`python -c 'import sys; print "%s/include/python%d.%d" % (sys.prefix, sys.version_info[[0]], sys.version_info[[1]])'`
23 CPPFLAGS="$CPPFLAGS -I $incdir"
24fi
25
26if test x"$PYTHON" != "x"; then
27 AC_MSG_RESULT([${withval-python}])
28else
29 AC_MSG_RESULT(no)
30 SMB_ENABLE(swig_ldb, NO)
31fi
32
33AC_SUBST(PYTHON)
Note: See TracBrowser for help on using the repository browser.