553cdc7d0b
Changes: - PHP 7 compatibility - provide APC compatibility in "apc" optional extension - move APCIterator to APC compatibility extension - add APCuIterator without cache argument - drop apcu_bin_* functions - add apcu_entry(key, callback, ttl) function - fix race on refcount of entry when using rwlocks (or on windows) NOTE: apc-compatible interfaces moved into separate module
26 lines
771 B
Text
26 lines
771 B
Text
$NetBSD: patch-config.m4,v 1.2 2016/07/26 09:22:40 jdolecek Exp $
|
|
|
|
Fix bashism
|
|
|
|
--- config.m4.orig 2016-06-07 12:41:02.000000000 +0000
|
|
+++ config.m4
|
|
@@ -149,7 +149,7 @@ if test "$PHP_APCU" != "no"; then
|
|
fi
|
|
fi
|
|
|
|
- if test "$PHP_APCU_RWLOCKS" == "no"; then
|
|
+ if test "$PHP_APCU_RWLOCKS" = "no"; then
|
|
orig_LIBS="$LIBS"
|
|
LIBS="$LIBS -lpthread"
|
|
AC_TRY_RUN(
|
|
@@ -202,8 +202,8 @@ if test "$PHP_APCU" != "no"; then
|
|
LIBS="$orig_LIBS"
|
|
fi
|
|
|
|
- if test "$PHP_APCU_RWLOCKS" == "no"; then
|
|
- if test "$PHP_APCU_MUTEX" == "no"; then
|
|
+ if test "$PHP_APCU_RWLOCKS" = "no"; then
|
|
+ if test "$PHP_APCU_MUTEX" = "no"; then
|
|
if test "$PHP_APCU_SPINLOCK" != "no"; then
|
|
AC_DEFINE(APC_SPIN_LOCK, 1, [ ])
|
|
AC_MSG_WARN([APCu spin locking enabled])
|