diff --git a/README.md b/README.md index 39c6b89fbbd74..5b8ec6f0d7dc0 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ sudo dnf install re2c bison autoconf make libtool ccache libxml2-devel sqlite-de On MacOS, you can install these using `brew`: ```shell -brew install autoconf bison re2c iconv libxml2 sqlite +brew install autoconf bison re2c libiconv libxml2 sqlite ``` or with `MacPorts`: diff --git a/build/php.m4 b/build/php.m4 index db4265c66fc67..5b7c62464d8cd 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -1796,7 +1796,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [ dnl Check external libs for iconv funcs. AS_VAR_IF([found_iconv], [no], [ - for i in $PHP_ICONV /usr/local /usr; do + for i in $PHP_ICONV /usr/local /opt/homebrew/opt/libiconv /usr; do if test -r $i/include/gnu-libiconv/iconv.h; then ICONV_DIR=$i ICONV_INCLUDE_DIR=$i/include/gnu-libiconv