diff --git a/memcache/config9.m4 b/memcache/config9.m4 index 26b51b8..e58c7c3 100644 --- a/memcache/config9.m4 +++ b/memcache/config9.m4 @@ -72,6 +72,8 @@ if test "$PHP_MEMCACHE" != "no"; then session_inc_path="$abs_srcdir" elif test -f "$phpincludedir/ext/session/php_session.h"; then session_inc_path="$phpincludedir" + elif test -f $prefix/include/php/"$(php-config --version)"/ext/session/php_session.h; then + session_inc_path=$prefix/include/php/"$(php-config --version)" else for i in php php4 php5 php6; do if test -f "$prefix/include/$i/ext/session/php_session.h"; then