I've also had "... and link flags for Python are sane... no: PYTHON DISABLED"
On Ubuntu 10.04 you have to install 'python2.6-dev'. The flags for ./configure are:
--enable-pythoninterp
--with-python-config-dir=/usr/lib/python2.6/config
Make sure you got a path to directory, which contains 'config.c' file. Also no '/' at the end of the path! That caused me problems.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…