Add jpeg and png for linux

This change addresses the need by:
- Using locate to find the .so files for libjpeg and libpng
This commit is contained in:
James Doyley
2017-07-18 18:36:27 +01:00
parent 724b14787f
commit fc588fadf5

View File

@@ -146,7 +146,21 @@ os_based_configure_options() {
configure_options="$configure_options --with-readline=$readline_path"
fi
else
local jpeg_path=$(locate libjpeg.so | head -n 1)
local libpng_path=$(locate libpng.so | head -n 1)
configure_options="--with-openssl --with-curl --with-zlib --with-readline --with-gettext"
if [ "$jpeg_path" = "" ]; then
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING jpeg"
else
configure_options="$configure_options --with-jpeg-dir=$jpeg_path"
fi
if [ "$libpng_path" = "" ]; then
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libpng"
else
configure_options="$configure_options --with-png-dir=$libpng_path"
fi
fi
echo $configure_options