I hear that the config directory of Python3 will be changed on
Ubuntu 13.04 because of multiarch support. E.g. it becomes
/usr/lib/python3.3/config-3.3m-i386-linux-gnu/ on Ubuntu 13.04 32bit.
Currently the configure script can't find this directory.
The config directory of Python2/3 can be retrieved by the following code:
import distutils.sysconfig
print(distutils.sysconfig.get_config_var('LIBPL'))
Attached patch uses distutils.sysconfig first, then the old routine
to retrieve the config directory.
Tested on Ubuntu 13.04 32bit (beta), 12.04 64bit, 10.04 64bit and Cygwin.
I also attached a patch to fix some indents in the configure.in.
Best regards,
Ken Takata