3 @@ -14631,6 +14631,10 @@ rm -f core conftest.err conftest.$ac_objext \
4 # Problem does not happen for the recommended libpythonX.Y.so linkage.
6 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
7 + old_CPPFLAGS="$CPPFLAGS"
8 + CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
10 + LIBS="$LIBS $PYTHON_LIBS"
11 if test "$cross_compiling" = yes; then :
14 @@ -14657,6 +14661,8 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18 + CPPFLAGS="$old_CPPFLAGS"
21 LDFLAGS="$old_LDFLAGS"
23 --- a/gdb/configure.ac
24 +++ b/gdb/configure.ac
25 @@ -1576,6 +1576,10 @@ if test "${gdb_native}" = yes; then
26 # Problem does not happen for the recommended libpythonX.Y.so linkage.
28 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
29 + old_CPPFLAGS="$CPPFLAGS"
30 + CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
32 + LIBS="$LIBS $PYTHON_LIBS"
35 [#include "]${have_libpython}[/Python.h"],
36 @@ -1586,6 +1590,8 @@ if test "${gdb_native}" = yes; then
37 return err == 0 ? 0 : 1;]),
38 [dynamic_list=true], [], [true])
40 + CPPFLAGS="$old_CPPFLAGS"
43 LDFLAGS="$old_LDFLAGS"