After configuring with --prefix=/usr --libdir=/usr/lib64, compilation failed in the last step about /usr/lib/liblzma.la not being found.
Checking the compilation command, I found -L/usr/lib near the -lpython2.7 and in config.log:
PYTHON_LIBS='-L/usr/lib -lpython2.7'
Python is installed in /usr/lib64. It also states so in python2.7.pc file. And python2-config reports the same. I have no idea where the /usr/lib comes from...
Maybe not directly related. The config.log file also states:
--with-python-dir=/lib64/python2.7/site-packages
which doesn't sound right either.
I could finalize compilation explicitly defining:
PYTHON_LIBS=/usr/lib64/libpython2.7.so ./configure --prefix=/usr --libdir=/usr/lib64
Though I solved the problem, I would be interested in investigating where this problem originates.
Code which finds the python directories is here: https://bitbucket.org/medit/medit/src/9a939f3f31de867326b3c5904a7ce550e6594024/m4/moo-python.m4?at=default
I suppose the problem is this:
and it should use some other variable instead of PREFIX.