OSDN Git Service

support homebrew on macOS.
authorYoshihiro Yamazaki <yoya@awm.jp>
Tue, 22 Dec 2020 12:27:03 +0000 (21:27 +0900)
committerYoshihiro Yamazaki <yoya@awm.jp>
Tue, 22 Dec 2020 12:27:03 +0000 (21:27 +0900)
zlib path => /usr/local/opt/zlib/{lib/include}

src/config-lib.m4

index d29945b..a3e4fbf 100644 (file)
@@ -28,7 +28,7 @@ fi
       AC_MSG_ERROR([Can't find ZLIB headers under "$PHP_ZLIB_DIR"])
     fi
   else
-    for i in /usr/local /usr; do
+    for i in /usr/local /usr /usr/local/opt/zlib; do
       if test -f "$i/include/zlib/zlib.h"; then
         PHP_ZLIB_DIR="$i"
         PHP_ZLIB_INCDIR="$i/include/zlib"