summaryrefslogtreecommitdiffstats
path: root/graphics-libs/pythonmagick/fix_detection_of_python_includedir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'graphics-libs/pythonmagick/fix_detection_of_python_includedir.patch')
-rw-r--r--graphics-libs/pythonmagick/fix_detection_of_python_includedir.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics-libs/pythonmagick/fix_detection_of_python_includedir.patch b/graphics-libs/pythonmagick/fix_detection_of_python_includedir.patch
new file mode 100644
index 0000000000..59e4788cdb
--- /dev/null
+++ b/graphics-libs/pythonmagick/fix_detection_of_python_includedir.patch
@@ -0,0 +1,19 @@
+diff -urN pythonmagick-orig/m4/ax_python.m4 pythonmagick-mod/m4/ax_python.m4
+--- pythonmagick-orig/m4/ax_python.m4 2010-12-09 19:14:29.981000110 -0600
++++ pythonmagick-mod/m4/ax_python.m4 2010-12-09 19:16:25.274000110 -0600
+@@ -58,13 +58,13 @@
+ AC_DEFUN([AX_PYTHON],
+ [AC_MSG_CHECKING(for python build information)
+ AC_MSG_RESULT([])
+-for python in python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
++for python in python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
+ AC_CHECK_PROGS(PYTHON_BIN, [$python])
+ ax_python_bin=$PYTHON_BIN
+ if test x$ax_python_bin != x; then
+ AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no)
+ AC_CHECK_HEADER([$ax_python_bin/Python.h],
+- [[ax_python_header=`locate $ax_python_bin/Python.h | sed -e s,/Python.h,,`]],
++ [[ax_python_header=`$ax_python_bin -c 'import sys; print(sys.prefix + "/include/python%s.%s" % sys.version_info[:2])'`]],
+ ax_python_header=no)
+ if test $ax_python_lib != no; then
+ if test $ax_python_header != no; then