diff -Nur pygobject-2.13.1/m4/python.m4 pygobject-2.13.1.new/m4/python.m4
--- pygobject-2.13.1/m4/python.m4	2007-01-16 13:51:03.000000000 +0100
+++ pygobject-2.13.1.new/m4/python.m4	2007-06-16 13:38:54.000000000 +0200
@@ -45,10 +45,14 @@
 dnl deduce PYTHON_INCLUDES
 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_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}"
 if test "$py_prefix" != "$py_exec_prefix"; then
   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
 fi
+fi
 AC_SUBST(PYTHON_INCLUDES)
 dnl check if the headers exist:
 save_CPPFLAGS="$CPPFLAGS"
