This makes the node_crypto module available for node built using just a
default OS X dev environment (no darwinports or fink).
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',