summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-08-07 12:15:06 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-08-12 15:32:11 +0200
commitb480e6841ecd5317faa136647a2b8253a4c2d0df (patch)
tree53d9371b51b04e4fc4b09c68131eeaddb9446418 /build
parent6ca6e9f89163f4160ade12eb516e0e29f3c3fa15 (diff)
downloadphp-git-b480e6841ecd5317faa136647a2b8253a4c2d0df.tar.gz
Recognize gnu-libiconv location on alpine
Diffstat (limited to 'build')
-rw-r--r--build/php.m410
1 files changed, 8 insertions, 2 deletions
diff --git a/build/php.m4 b/build/php.m4
index 1797b38382..da1007ff4e 100644
--- a/build/php.m4
+++ b/build/php.m4
@@ -1944,8 +1944,14 @@ AC_DEFUN([PHP_SETUP_ICONV], [
if test "$found_iconv" = "no"; then
for i in $PHP_ICONV /usr/local /usr; do
- if test -r $i/include/iconv.h; then
+ if test -r $i/include/gnu-libiconv/iconv.h; then
ICONV_DIR=$i
+ ICONV_INCLUDE_DIR=$i/include/gnu-libiconv
+ iconv_lib_name=iconv
+ break
+ elif test -r $i/include/iconv.h; then
+ ICONV_DIR=$i
+ ICONV_INCLUDE_DIR=$i/include
iconv_lib_name=iconv
break
fi
@@ -1979,7 +1985,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
AC_DEFINE(HAVE_ICONV,1,[ ])
if test -n "$ICONV_DIR"; then
PHP_ADD_LIBRARY_WITH_PATH($iconv_lib_name, $ICONV_DIR/$PHP_LIBDIR, $1)
- PHP_ADD_INCLUDE($ICONV_DIR/include)
+ PHP_ADD_INCLUDE($ICONV_INCLUDE_DIR)
fi
$2
ifelse([$3],[],,[else $3])