summaryrefslogtreecommitdiffstats
path: root/textproc/libxml2/files/patch-configure
blob: 3c72220519b7d4261fd0937b9250f9a314265864 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- configure.orig  2010-03-20 17:52:35.000000000 -0400
+++ configure   2010-03-20 17:52:35.000000000 -0400
@@ -19865,11 +19865,12 @@ fi
     fi
     if test "$PYTHON_VERSION" != ""
     then
+   with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
    if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
       -d $with_python/lib/python$PYTHON_VERSION/site-packages
    then
        PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
-       PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
+       PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
    else
        if test -r $prefix/include/python$PYTHON_VERSION/Python.h
        then
@@ -20678,6 +20679,8 @@ fi
           fi
       fi
        ;;
+       *freebsd*) THREAD_LIBS=""
+       ;;
     esac
     if test "$WITH_THREADS" = "1" ; then
    THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"