Do a manual check for openssl if 'pkg-config openssl' fails.
This makes the node_crypto module available for node built using just a default OS X dev environment (no darwinports or fink).
This commit is contained in:
parent
8daa1f8d04
commit
fa514a9f16
6
wscript
6
wscript
@ -140,6 +140,12 @@ def configure(conf):
|
||||
uselib_store='OPENSSL'):
|
||||
conf.env["USE_OPENSSL"] = True
|
||||
conf.env.append_value("CXXFLAGS", "-DHAVE_OPENSSL=1")
|
||||
else:
|
||||
libcrypto = conf.check(lib='crypto', uselib_store='OPENSSL')
|
||||
libssl = conf.check(lib='ssl', uselib_store='OPENSSL')
|
||||
if libcrypto and libssl:
|
||||
conf.env["USE_OPENSSL"] = True
|
||||
conf.env.append_value("CXXFLAGS", "-DHAVE_OPENSSL=1")
|
||||
|
||||
if conf.check_cfg(package='gnutls',
|
||||
args='--cflags --libs',
|
||||
|
Loading…
x
Reference in New Issue
Block a user