[PECL-CVS] [pecl-networking-gearman] add-ssl-support: address reviews

[email protected] (Rasmus Lerdorf) Sat, 4 Apr 2026 19:39:00 +0000
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Rasmus Lerdorf (rlerdorf)
Date: 2026-04-04T15:38:54-04:00

Commit: https://github.com/php/pecl-networking-gearman/commit/30804918f751fb1dc1691c6e98da04b82484dbb0
Raw diff: https://github.com/php/pecl-networking-gearman/commit/30804918f751fb1dc1691c6e98da04b82484dbb0.diff

address reviews

Changed paths:
  M  config.m4


Diff:

diff --git a/config.m4 b/config.m4
index b31f448..5931cbe 100644
--- a/config.m4
+++ b/config.m4
@@ -86,12 +86,15 @@ if test "$PHP_GEARMAN" != "no"; then
   ])
 
   AC_MSG_CHECKING([for GEARMAN_WORKER_SSL option])
+  old_CPPFLAGS="$CPPFLAGS"
+  CPPFLAGS="$CPPFLAGS -I$GEARMAN_INC_DIR"
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgearman-1.0/gearman.h>]],
     [[int x = GEARMAN_WORKER_SSL;]])],
     [AC_MSG_RESULT([yes])
      AC_DEFINE(HAVE_GEARMAN_WORKER_SSL_OPTION, 1, [Whether GEARMAN_WORKER_SSL option is available])],
     [AC_MSG_RESULT([no])]
   )
+  CPPFLAGS="$old_CPPFLAGS"
 
   PHP_SUBST(GEARMAN_SHARED_LIBADD)