From ab8b2b7375641f47deb21d8e8ba1a00ea5364cf6 Mon Sep 17 00:00:00 2001 From: kjdev Date: Mon, 18 Dec 2023 09:41:03 +0900 Subject: [PATCH] change: config.m4 --- config.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.m4 b/config.m4 index 9260b69..a20f903 100644 --- a/config.m4 +++ b/config.m4 @@ -68,7 +68,7 @@ if test "$PHP_SNAPPY" != "no"; then SNAPPY_PATCHLEVEL="7" AC_PROG_CXX - AC_LANG([C++]) + AC_LANG_PUSH([C++]) AC_C_BIGENDIAN([AC_DEFINE([SNAPPY_IS_BIG_ENDIAN], [1], [snappy is big endian])]) AC_CHECK_HEADERS([stdint.h stddef.h sys/mman.h sys/resource.h windows.h byteswap.h sys/byteswap.h sys/endian.h sys/time.h]) @@ -101,6 +101,7 @@ if test "$PHP_SNAPPY" != "no"; then if test x$snappy_have_builtin_ctz = xyes ; then AC_DEFINE([HAVE_BUILTIN_CTZ], [1], [Define to 1 if the compiler supports __builtin_ctz and friends.]) fi + AC_LANG_POP([C++]) if test "$ac_cv_header_stdint_h" = "yes"; then AC_SUBST([ac_cv_have_stdint_h], [1])