Permalink
Browse files

On windows, the default ldap library became wldap32

  • Loading branch information...
nazy authored and alexey-chebotar committed Sep 25, 2010
1 parent 018ff0b commit d0557dc821ceaf117760f1194e7b44d777878a59
Showing with 7 additions and 2 deletions.
  1. +7 −2 extconf.rb
View
@@ -101,8 +101,13 @@ def ldap_with_config(arg, default = nil)
print("--with-netscape=5")
$use_netscape = "5"
else
- print("--with-openldap2\n")
- $use_openldap2 = true
+ if RUBY_PLATFORM =~ /-(:?mingw32|mswin32)/
+ print("--with-wldap32\n")
+ $use_wldap32 = true
+ else
+ print("--with-openldap2\n")
+ $use_openldap2 = true
+ end
end
end
if( $use_netscape == true )

0 comments on commit d0557dc

Please sign in to comment.