r26087: Fix include, add setup.py for tdb
[jelmer/samba4-debian.git] / source / scripting / swig / config.m4
1 dnl # Scripting subsystem
2
3 # Check for python support
4
5 PYTHON=
6  
7 AC_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
21 if 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"
24 else
25         SMB_ENABLE(swig_dcerpc, NO)
26 fi
27
28 AC_SUBST(PYTHON)
29