- if (glob(configure_module_dirname +"\\..\\hash\\php_hash_sha.h").length) {
- ADD_FLAG("CFLAGS_HTTP", "/I"+ configure_module_dirname +"\\..\\hash");
- AC_DEFINE("HTTP_HAVE_HASH_EXT_INCLUDES", 1, "");
+ var f;
+ STDOUT.Write("Checking for ext/hash ... ");
+ if (glob((f = configure_module_dirname +"\\..\\hash") +"\\php_hash.h").length ||
+ glob((f = configure_module_dirname +"\\..\\..\\..\\pecl\\hash") +"\\php_hash.h").length) {
+ ADD_FLAG("CFLAGS_HTTP", "/I"+ f);
+ AC_DEFINE("HTTP_HAVE_EXT_HASH", 1, "");
+ ADD_EXTENSION_DEP("http", "hash", true);
+ STDOUT.WriteLine(condense_path(f));
+ } else {
+ STDOUT.WriteLine("<not found>");