[PECL-CVS] [pecl-networking-gearman] master: Merge pull request #58 from php/fix-homebrew-apple-silicon-search-path
[email protected] (Rasmus Lerdorf via GitHub) Sat, 4 Apr 2026 18:11:57 +0000
| Newsgroups | php.pecl.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Rasmus Lerdorf (rlerdorf)
Committer: GitHub (web-flow)
Pusher: rlerdorf
Date: 2026-04-04T19:11:54+01:00
Commit: https://github.com/php/pecl-networking-gearman/commit/c48aa80eff25cb947c16092c14c6fa71d066c2fc
Raw diff: https://github.com/php/pecl-networking-gearman/commit/c48aa80eff25cb947c16092c14c6fa71d066c2fc.diff
Merge pull request #58 from php/fix-homebrew-apple-silicon-search-path
Fixes #32
Changed paths:
M config.m4
Diff:
diff --git a/config.m4 b/config.m4
index bc832d9..5f427c7 100644
--- a/config.m4
+++ b/config.m4
@@ -13,7 +13,11 @@ PHP_ARG_WITH(gearman, whether to enable gearman support,
[[ --with-gearman[=PATH] Include gearman support]])
if test "$PHP_GEARMAN" != "no"; then
- for i in $PHP_GEARMAN /usr/local /usr /opt/local; do
+ HOMEBREW_PREFIX=""
+ if command -v brew >/dev/null 2>&1; then
+ HOMEBREW_PREFIX=$(brew --prefix gearman 2>/dev/null)
+ fi
+ for i in $PHP_GEARMAN /usr/local /usr /opt/local $HOMEBREW_PREFIX; do
if test -r $i/include/libgearman-1.0/gearman.h; then
GEARMAN_LIB_DIR=$i/$PHP_LIBDIR
GEARMAN_INC_DIR=$i/include