mirror of
https://github.com/jlengrand/asdf-php.git
synced 2026-03-10 08:01:22 +00:00
Merge pull request #13 from salzig/feat/detect_iconv
feat: detect iconv on MacOS
This commit is contained in:
@@ -93,6 +93,7 @@ os_based_configure_options() {
|
||||
local libxml2_path=$(homebrew_package_path libxml2)
|
||||
local zlib_path=$(homebrew_package_path zlib)
|
||||
local readline_path=$(homebrew_package_path readline)
|
||||
local iconv_path=$(homebrew_package_path libiconv)
|
||||
|
||||
if [ "$freetype_path" = "" ]; then
|
||||
export ASDF_PKG_MISSING="freetype"
|
||||
@@ -149,6 +150,12 @@ os_based_configure_options() {
|
||||
if [ "$readline_path" != "" ]; then
|
||||
configure_options="$configure_options --with-readline=$readline_path"
|
||||
fi
|
||||
|
||||
if [ "$iconv_path" != "" ]; then
|
||||
configure_options="$configure_options --with-iconv=$iconv_path"
|
||||
else
|
||||
configure_options="$configure_options --without-iconv"
|
||||
fi
|
||||
else
|
||||
local jpeg_path=$(locate libjpeg.so | head -n 1)
|
||||
local libpng_path=$(locate libpng.so | head -n 1)
|
||||
|
||||
Reference in New Issue
Block a user