This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: update for Python 2.7
>>>>> "Doug" == Doug Evans <dje@google.com> writes:
Doug> I'm happy to do it.
Thanks for the offer, but I went ahead and did it this morning.
Here is what I am checking in.
I am putting it on the 7.2 branch as well.
Tom
2010-07-30 Tom Tromey <tromey@redhat.com>
* configure: Rebuild.
* configure.ac: Add missing case for Python 2.7.
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.127
diff -u -r1.127 configure.ac
--- configure.ac 28 Jul 2010 23:24:57 -0000 1.127
+++ configure.ac 30 Jul 2010 15:58:03 -0000
@@ -622,7 +622,7 @@
dnl yes - Include python support, error if it's missing.
dnl If we find python in $PATH, use it to fetch configure options,
dnl otherwise assume the compiler can find it with no help from us.
-dnl Python 2.6, 2.5, and then 2.4 are tried in turn.
+dnl Python 2.7, 2.6, 2.5, and then 2.4 are tried in turn.
dnl auto - Same as "yes", but if python is missing from the system,
dnl fall back to "no".
dnl /path/to/python/exec-prefix -
@@ -631,7 +631,7 @@
dnl the compilation parameters. Otherwise use
dnl -I/path/to/python/exec-prefix/include,
dnl -L/path/to/python/exec-prefix/lib.
-dnl Python 2.6, 2.5, and then 2.4 are tried in turn.
+dnl Python 2.7, 2.6, 2.5, and then 2.4 are tried in turn.
dnl NOTE: This case is historical. It is what was done for 7.0/7.1
dnl but is deprecated.
dnl /path/to/python/executable -
@@ -780,6 +780,10 @@
esac
elif test "${have_python_config}" != failed; then
if test "${have_libpython}" = no; then
+ AC_TRY_LIBPYTHON(python2.7, have_libpython,
+ ${python_includes}, "${python_libs} -lpython2.7")
+ fi
+ if test "${have_libpython}" = no; then
AC_TRY_LIBPYTHON(python2.6, have_libpython,
${python_includes}, "${python_libs} -lpython2.6")
fi