diff -Naur -x '*~' dia-0.97.2/acinclude.m4 dia-0.97.2-fix-lib64-python-path/acinclude.m4
--- dia-0.97.2/acinclude.m4	2011-03-20 12:18:13.000000000 +0100
+++ dia-0.97.2-fix-lib64-python-path/acinclude.m4	2011-12-29 12:29:01.156086294 +0100
@@ -202,7 +202,7 @@
 AC_MSG_CHECKING(for headers required to compile python extensions)
 dnl deduce PYTHON_INCLUDES
 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
-py_lib=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,1)" | cut -d '/' -f 3`
+py_lib=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,1)" | cut -d '/' -f 3`
 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
 if test "$py_prefix" != "$py_exec_prefix"; then
