Allow python to find its files if moved from original location.
authorDoug Evans <dje@google.com>
Thu, 27 May 2010 03:40:45 +0000 (03:40 +0000)
committerDoug Evans <dje@google.com>
Thu, 27 May 2010 03:40:45 +0000 (03:40 +0000)
commit0c4a40633c767da2c7659a3f460cf1e8e3dd3a5c
tree5e04abc4cc89fd32c6532d5d7bdd654af37b4c45
parentec685c5ecafd5bf8876d332a0eb17f206c8d733a
Allow python to find its files if moved from original location.
* acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
(GDB_AC_WITH_DIR): Call it.
* configure.ac: Define WITH_PYTHON_PATH if we can find the
python installation directory.
* config.in: Regenerate.
* configure: Regenerate.
* defs.h (python_libdir): Declare.
* main.c (python_libdir): Define.
(captured_main): Initialize python_libdir.
* python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
call Py_SetProgramName to make sure python can find its libraries
and modules.
gdb/ChangeLog
gdb/acinclude.m4
gdb/config.in
gdb/configure
gdb/configure.ac
gdb/defs.h
gdb/main.c
gdb/python/python.c