fix custom version checks
[m6w6/ext-http] / autoconf / pecl / pecl.m4
index 8822605af2e546dded589754ad7975aaf98bff4a..7991e4c20f6d88d9fdd57933e43e3c6f0987efc2 100644 (file)
@@ -255,7 +255,9 @@ AC_DEFUN([PECL_CHECK_CUSTOM], [
                LIBS="-l$4"
 
                AC_CACHE_VAL(PECL_CACHE_VAR([$1_version]), [
+                       pushd $PECL_CACHE_VAR([$1_prefix]) 
                        PECL_CACHE_VAR([$1_version])=$5
+                       popd
                ])
                PECL_CHECKED_VERSION([$1])=$PECL_CACHE_VAR([$1_version])