]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - pkgs/swig/patches/swig-1.3.23-pylib.patch
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / swig / patches / swig-1.3.23-pylib.patch
1 --- SWIG-1.3.23/configure.in.pylib 2004-11-02 00:45:57.000000000 +0100
2 +++ SWIG-1.3.23/configure.in 2004-11-23 12:20:12.552926982 +0100
3 @@ -574,9 +574,11 @@
4
5 # Set the include directory
6
7 + PYLIB=`$PYTHON -c "import sys; print sys.path[[1]]"`
8 +
9 AC_MSG_CHECKING(for Python header files)
10 if test -r $PYPREFIX/include/$PYVERSION/Python.h; then
11 - PYINCLUDE="-I$PYPREFIX/include/$PYVERSION -I$PYEPREFIX/$PYLIBDIR/$PYVERSION/config"
12 + PYINCLUDE="-I$PYPREFIX/include/$PYVERSION -I$PYLIB/config"
13 fi
14 if test -z "$PYINCLUDE"; then
15 if test -r $PYPREFIX/include/Py/Python.h; then
16 @@ -587,13 +589,6 @@
17
18 # Set the library directory blindly. This probably won't work with older versions
19 AC_MSG_CHECKING(for Python library)
20 - dirs="$PYVERSION/config $PYVERSION/$PYLIBDIR python/$PYLIBDIR"
21 - for i in $dirs; do
22 - if test -d $PYEPREFIX/$PYLIBDIR/$i; then
23 - PYLIB="$PYEPREFIX/$PYLIBDIR/$i"
24 - break
25 - fi
26 - done
27 if test -z "$PYLIB"; then
28 AC_MSG_RESULT(Not found)
29 else