r15300: Only enable SWIG shared libs if python is available
authorJelmer Vernooij <jelmer@samba.org>
Thu, 27 Apr 2006 20:55:26 +0000 (20:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:05:04 +0000 (14:05 -0500)
(This used to be commit d9f1c19f58578f97e7a20a54c474abfe6525849f)

source4/lib/ldb/config.m4
source4/lib/tdb/config.m4
source4/scripting/swig/config.m4

index c8603b079fac8fc426296f32c3e52c4a84e2bd72..845563b4a185e70aa37ddd8f4f6e112e5c3eb417 100644 (file)
@@ -27,6 +27,7 @@ if test x"$PYTHON" != "x"; then
        AC_MSG_RESULT([${withval-python}])
 else
        AC_MSG_RESULT(no)
+       SMB_ENABLE(swig_ldb, NO)
 fi
 
 AC_SUBST(PYTHON)
index 73e74ddd0c448a482c57470f719c6970bb53e7c8..cb0801795cc8a44c6d9ee4fe42da73a050b07284 100644 (file)
@@ -30,6 +30,7 @@ fi
 if test x"$PYTHON" != "x"; then
        AC_MSG_RESULT([${withval-python}])
 else
+       SMB_ENABLE(swig_tdb, NO)
        AC_MSG_RESULT(no)
 fi
 
index 02a563e167d768ec6fcf8d96fbc5f33ee4cd37e3..9988399f70d5c4f03f5d441609795a113695a7b4 100644 (file)
@@ -21,6 +21,8 @@ AC_ARG_WITH(python,
 if test x"$PYTHON" != "x"; then
        incdir=`python -c 'import sys; print "%s/include/python%d.%d" % (sys.prefix, sys.version_info[[0]], sys.version_info[[1]])'`
        CPPFLAGS="$CPPFLAGS -I $incdir"
+else
+       SMB_ENABLE(swig_dcerpc, NO)
 fi
 
 AC_SUBST(PYTHON)