summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-05-24 15:38:39 +0200
committerAnatol Belski <ab@php.net>2015-05-24 23:49:45 +0200
commit404360f261ef56b478228caf8f5371ddbe6feaf2 (patch)
treee9d9fa1702d5d50ee147f006fa1e3471705bcde4
parentc63467fe6e92d664d6f51369be821c60d8eead6f (diff)
downloadphp-git-404360f261ef56b478228caf8f5371ddbe6feaf2.tar.gz
pick up sasl auth plugins if there was any in the deps
-rw-r--r--win32/build/mkdist.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/win32/build/mkdist.php b/win32/build/mkdist.php
index 9e4422addc..7b4c057530 100644
--- a/win32/build/mkdist.php
+++ b/win32/build/mkdist.php
@@ -342,6 +342,22 @@ foreach ($ENCHANT_DLLS as $dll) {
}
}
+$SASL_DLLS = $php_build_dir . "/bin/sasl2/sasl*.dll";
+$fls = glob($SASL_DLLS);
+if (!empty($fls)) {
+ $sasl_dest_dir = "$dist_dir/sasl2";
+ if (!file_exists($sasl_dest_dir) || !is_dir($sasl_dest_dir)) {
+ if (!mkdir("$sasl_dest_dir", 0777, true)) {
+ echo "WARNING: couldn't create '$sasl_dest_dir' for SASL2 auth plugins ";
+ }
+ }
+ foreach ($fls as $fl) {
+ if (!copy($fl, "$sasl_dest_dir/" . basename($fl))) {
+ echo "WARNING: couldn't copy $fl into the $sasl_dest_dir";
+ }
+ }
+}
+
/* and those for pecl */
foreach ($pecl_dll_deps as $dll) {
if (in_array($dll, $extra_dll_deps)) {