summaryrefslogtreecommitdiff
authorAlessandro Decina <alessandro.d@gmail.com>2010-08-30 15:12:12 (GMT)
committer Alessandro Decina <alessandro.d@gmail.com>2010-08-30 15:12:12 (GMT)
commitd23ce7dfcb72f25a46107f7e0cec5b201e6e3f1a (patch) (side-by-side diff)
tree8f7c118c0df0852f0e982c111a588d2fbb9c8973
parent2c31e12c5eccf74415ccdc643affa5c81547d4da (diff)
downloadgst-python-d23ce7dfcb72f25a46107f7e0cec5b201e6e3f1a.zip
gst-python-d23ce7dfcb72f25a46107f7e0cec5b201e6e3f1a.tar.gz
acinclude.m4: also look in ${py_prefix}/lib for libpythonX.Y.so.
Fixes loading the python plugin loader in gentoo.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--acinclude.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 3f71fb6..85e7805 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -83,9 +83,14 @@ if $PYTHON-config --help 2>/dev/null; then
PYTHON_LIB_LOC=/usr/lib
else
PYTHON_LIB_LOC=$PYTHON_LIB/config
+
+ # default to prefix/lib for distros that don't have a link in
+ # .../pythonX.Y/config/
+ if test ! -e $PYTHON_LIB_LOC/libpython${PYTHON_VERSION}.so; then
+ PYTHON_LIB_LOC=${py_prefix}/lib
+ fi
fi
else
- asd
PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
PYTHON_LIB_LOC="${py_prefix}/lib"
fi