diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2001-11-29 13:03:08 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2001-11-29 13:03:08 +0000 |
commit | 622142fe5f864ad3964a6f30ffe6af7361515e83 (patch) | |
tree | 3132d2cafa7c712ee6fff1fbd3e4e9c2fec4ae11 /extconf.rb | |
parent | eec231c7350bda539d10564b723a124a7caeafa6 (diff) | |
download | ruby-openssl-history-622142fe5f864ad3964a6f30ffe6af7361515e83.tar.gz |
* Make work under MS Windows (strptime added) + doc in README
Diffstat (limited to 'extconf.rb')
-rw-r--r-- | extconf.rb | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -10,11 +10,19 @@ This program is licenced under the same licence as Ruby. require "mkmf" -CRYPTOLIB="crypto" -SSLLIB="ssl" +if RUBY_PLATFORM =~ /mswin32/ + CRYPTOLIB="libeay32" + SSLLIB="ssleay32" +else + CRYPTOLIB="crypto" + SSLLIB="ssl" +end dir_config("openssl") +have_func("strncasecmp", "string.h") +have_func("strptime", "time.h") + if have_header("openssl/ssl.h") if have_library(CRYPTOLIB, nil) and have_library(SSLLIB, nil) #"SSLv23_method") create_makefile("openssl") |