Install standalone python modules (so we can use stock python rather than smbpython).
[ira/wip.git] / source4 / scripting / python / config.m4
index 3790071ba88cc3148b517e78147ae3b1dcba5196..a61d5410493762d6cfb27c7c4f6622391fb6b0ab 100644 (file)
@@ -71,3 +71,8 @@ else
        AC_MSG_ERROR([Python not found. Please install Python 2.x and its development headers/libraries.])
 fi
 
+AC_MSG_CHECKING(python library directory)
+pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1, 0, '\\${prefix}')"`
+AC_MSG_RESULT($pythondir)
+
+AC_SUBST(pythondir)