Let AM_PATH_PYTHON honor python's idea about the site directory.
authorMatthias Klose <doko@ubuntu.com>
Sun, 17 May 2009 09:29:16 +0000 (11:29 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 17 May 2009 09:37:55 +0000 (11:37 +0200)
commit6cfa5cb8a21957774301cf07cdcf012531274465
treecf5387f48cbba6ceb764bb858c6d6259164ef8fd
parent0619d4094ad8f5e6d3da97fcc34ff3970b7b0870
Let AM_PATH_PYTHON honor python's idea about the site directory.

* m4/python.m4 (AM_PATH_PYTHON): When computing pythondir and
pyexecdir, pass the expanded prefix resp. exec_prefix as `prefix'
to get_python_lib, so python can determine the name of the site
directory depending on the install location.  Afterwards, replace
the directory names with the unexpanded values of $PYTHON_PREFIX
resp. $PYTHON_EXEC_PREFIX again, to allow override according to
the documentation.  Fixes site directory computation for Debian
and Ubuntu (`dist-packages' for a prefix of `/usr' or `/usr/local',
`site-packages' elsewhere).
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
NEWS
THANKS
m4/python.m4