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:
Standa Opichal 2010-04-18 18:24:08 +02:00 committed by Ryan Dahl
parent 8daa1f8d04
commit fa514a9f16

View File

@ -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',