The AS_PATH_PYTHON macro is broken and does not respect $PYTHON when version is specified. This causes serious breakage on Gentoo. Instead, use the AM_PATH_PYTHON macro that is integral part of automake.
* m4/Makefile.am: * m4/as-ac-expand.m4 (added): Correctly set installation dir for noarch python files so that it works on 64 bit.