I have defined PYTHON_VERSION=2.5 in my make.conf and devel/apr cannot find python during the configure stage. Making a symlink from the python2.5 binary to python solves the problem. I guess this might be a problem with autoconf or USE_PYTHON_BUILD.