| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 | --- libxml2-2.9.1.orig/configure.in	2013-04-19 09:25:20.000000000 +0200+++ libxml2-2.9.1/configure.in	2013-11-23 23:02:06.000000000 +0100@@ -748,80 +748,16 @@ PYTHON_SITE_PACKAGES= PYTHON_TESTS= pythondir= if test "$with_python" != "no" ; then-    if test -x "$with_python/bin/python"-    then-        echo Found python in $with_python/bin/python-        PYTHON="$with_python/bin/python"-    else-        if test -x "$with_python/python.exe"-        then-            echo Found python in $with_python/python.exe-            PYTHON="$with_python/python.exe"-        else-            if test -x "$with_python"-            then-                echo Found python in $with_python-                PYTHON="$with_python"-            else-                if test -x "$PYTHON"-                then-                    echo Found python in environment PYTHON=$PYTHON-                    with_python=`$PYTHON -c "import sys; print(sys.exec_prefix)"`-                else-                    AC_PATH_PROG(PYTHON, python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5)-		fi-	    fi-	fi-    fi+    AC_PATH_PROG(PYTHON, python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5)     if test "$PYTHON" != ""     then         PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_version())"`-	PYTHON_INCLUDES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_inc())"`-# does not work as it produce a /usr/lib/python path instead of/usr/lib64/python-#-#	PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"` 	echo Found Python version $PYTHON_VERSION     fi-    if test "$PYTHON_VERSION" != "" -a "$PYTHON_INCLUDES" = ""-    then-	if test -r $with_python/include/python$PYTHON_VERSION/Python.h-	then-	    PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION-	else-	    if test -r $prefix/include/python$PYTHON_VERSION/Python.h-	    then-	        PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION-	    else-		if test -r /usr/include/python$PYTHON_VERSION/Python.h-		then-		    PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION-		else-	            if test -r $with_python/include/Python.h-	            then-	                PYTHON_INCLUDES=$with_python/include-	            else-		        echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h-		    fi-		fi-	    fi-	fi-    fi-    if test "$PYTHON_VERSION" != "" -a "$PYTHON_SITE_PACKAGES" = ""-    then-	if test -d $libdir/python$PYTHON_VERSION/site-packages-	then-	    PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages-	else-	    if test -d $with_python/lib/site-packages-	    then-		PYTHON_SITE_PACKAGES=$with_python/lib/site-packages-	    else-		PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`-	    fi-	fi-    fi-    pythondir='$(PYTHON_SITE_PACKAGES)'+    PYTHON_INCLUDES=`python$PYTHON_VERSION-config --includes`     PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`+    PYTHON_SITE_PACKAGES=${prefix}/lib/python$PYTHON_VERSION/site-packages+    pythondir='$(PYTHON_SITE_PACKAGES)' else     PYTHON= fi
 |