Skip to content

Commit

Permalink
additional PIL check for modern (debian-based) linuxes
Browse files Browse the repository at this point in the history
  • Loading branch information
petri committed May 19, 2016
1 parent ca74764 commit 0e8edee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure
Expand Up @@ -7111,12 +7111,16 @@ else
esac
for v in $VERSIONS; do
# Linux
linux_arch=`uname -m`
if test -f "/usr/include/python$v/Python.h";then
PY_VERSION=$v
PYTHON_LIB="-lpython$PY_VERSION"
if test -f "/usr/lib/python$v/site-packages/PIL/_imaging.so";then
PYTHON_LIB2="$PYTHON_LIB /usr/lib/python$v/site-packages/PIL/_imaging.so"
HAVE_PYTHON_IMAGING_LIB=1
elif test -f "/usr/lib/python$v/dist-packages/PIL/_imaging.$linux_arch-linux-gnu.so";then
PYTHON_LIB2="$PYTHON_LIB /usr/lib/python$v/dist-packages/PIL/_imaging.$linux_arch-linux-gnu.so"
HAVE_PYTHON_IMAGING_LIB=1
else
PYTHON_LIB2="$PYTHON_LIB"
fi
Expand Down

0 comments on commit 0e8edee

Please sign in to comment.