From fbf64174fe8b6a3a8ab93a0fc25b3acfa61ddbf2 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 3 Sep 2024 01:14:17 +0200 Subject: [PATCH] Fix library append check with AS_CASE The ac_cv_search_shm_open is either "no", "none required" or "-lrt". This appends it only when some library containing shm_open is found. --- config.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.m4 b/config.m4 index 3559453..6eea7a5 100644 --- a/config.m4 +++ b/config.m4 @@ -220,7 +220,7 @@ if test "$PHP_APCU" != "no"; then LIBS_SAVED=$LIBS; LIBS= AC_SEARCH_LIBS([shm_open], [rt]) LIBS=$LIBS_SAVED - AS_VAR_IF([ac_cv_search_shm_open], ["none required"], [], + AS_CASE([$ac_cv_search_shm_open], ["none required"|no], [], [PHP_ADD_LIBRARY([rt], [], [APCU_SHARED_LIBADD])]) PHP_NEW_EXTENSION([apcu], [$apc_sources], [$ext_shared],, [$APCU_CFLAGS])