1 --- gdb-7.0/gdb/configure.ac~ 2010-07-08 14:54:43.770583270 +0200
2 +++ gdb-7.0/gdb/configure.ac 2010-07-08 14:56:17.539947910 +0200
4 LIBS="$LIBS ${python_libs}"
6 if test "${have_libpython}" = no; then
7 + AC_TRY_LIBPYTHON(python2.7, have_libpython)
8 + if test "${HAVE_LIBPYTHON2_7}" = yes; then
9 + AC_DEFINE(HAVE_LIBPYTHON2_7, 1, [Define if Python 2.7 is being used.])
12 + if test "${have_libpython}" = no; then
13 AC_TRY_LIBPYTHON(python2.6, have_libpython)
14 if test "${HAVE_LIBPYTHON2_6}" = yes; then
15 AC_DEFINE(HAVE_LIBPYTHON2_6, 1, [Define if Python 2.6 is being used.])
16 --- gdb-7.0/gdb/python/python-internal.h~ 2010-07-08 14:54:43.136858331 +0200
17 +++ gdb-7.0/gdb/python/python-internal.h 2010-07-08 14:56:56.739736159 +0200
19 #elif HAVE_LIBPYTHON2_6
20 #include "python2.6/Python.h"
21 #include "python2.6/frameobject.h"
22 +#elif HAVE_LIBPYTHON2_7
23 +#include "python2.7/Python.h"
24 +#include "python2.7/frameobject.h"
26 #error "Unable to find usable Python.h"