r15300: Only enable SWIG shared libs if python is available
[bbaumbach/samba-autobuild/.git] / source4 / scripting / swig / config.m4
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)