File: 60_use-python-config-for-includes.patch

package info (click to toggle)
pygobject 2.14.2-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,732 kB
  • ctags: 1,489
  • sloc: ansic: 11,090; sh: 9,052; xml: 3,391; python: 2,565; makefile: 351
file content (19 lines) | stat: -rw-r--r-- 803 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
GNOME #448173, Debian #468130; use python-config to set PYTHON_INCLUDES; fixes
support for -dbg package

Index: pygobject-2.14.2/configure.ac
===================================================================
--- pygobject-2.14.2.orig/configure.ac	2008-06-07 14:06:35.211005448 +0200
+++ pygobject-2.14.2/configure.ac	2008-06-07 14:06:41.314510224 +0200
@@ -74,7 +74,11 @@ AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(c
 
 AC_MSG_CHECKING([for PySignal_SetWakeupFd in Python.h])
 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
+if test -x "$PYTHON-config"; then
+PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
+else
 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
+fi
 old_CPPFLAGS=$CPPFLAGS
 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
 AC_TRY_COMPILE([#include <Python.h>],