Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,23 @@ if test "$PHP_ZSTD" != "no"; then
], [
PHP_ADD_MAKEFILE_FRAGMENT
])
fi

dnl APCu
if test "$PHP_APCU" != "no"; then
AC_MSG_CHECKING([for APCu includes])
if test -f "$phpincludedir/ext/apcu/apc_serializer.h"; then
apc_inc_path="$phpincludedir"
AC_MSG_RESULT([APCu in $apc_inc_path])
AC_DEFINE(HAVE_APCU_SUPPORT, 1, [Whether to enable APCu support])
else
if test "$PHP_APCU" != "auto"; then
AC_MSG_ERROR([apc_serializer.h header not found])
dnl APCu
if test "$PHP_APCU" != "no"; then
AC_MSG_CHECKING([for APCu includes])
if test ! -f "$phpincludedir/ext/apcu/apc_serializer.h" && test -f "$abs_srcdir/ext/apcu/apc_serializer.h"; then
phpincludedir="$abs_srcdir"
fi
if test -f "$phpincludedir/ext/apcu/apc_serializer.h"; then
apc_inc_path="$phpincludedir"
AC_MSG_RESULT([APCu in $apc_inc_path])
AC_DEFINE(HAVE_APCU_SUPPORT, 1, [Whether to enable APCu support])
else
if test "$PHP_APCU" != "auto"; then
AC_MSG_ERROR([apc_serializer.h header not found])
fi
AC_MSG_RESULT([not found])
fi
AC_MSG_RESULT([not found])
fi
fi

Expand Down