Add some libpaths for SSL
authorRyan Dahl <ry@tinyclouds.org>
Tue, 20 Apr 2010 21:43:08 +0000 (21:43 +0000)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 20 Apr 2010 21:44:05 +0000 (14:44 -0700)
wscript

diff --git a/wscript b/wscript
index 38dea82..2a76e92 100644 (file)
--- a/wscript
+++ b/wscript
@@ -136,13 +136,18 @@ def configure(conf):
 
   if conf.check_cfg(package='openssl',
                     args='--cflags --libs',
-                    #libpath=['/usr/lib', '/usr/local/lib'],
                     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')
+    libssl = conf.check_cc(lib='ssl',
+                           header_name='openssl/ssl.h',
+                           function_name='SSL_library_init',
+                           libpath=['/usr/lib', '/usr/local/lib', '/opt/local/lib', '/usr/sfw/lib'],
+                           uselib_store='OPENSSL')
+    libcrypto = conf.check_cc(lib='crypto',
+                              header_name='openssl/crypto.h',
+                              uselib_store='OPENSSL')
     if libcrypto and libssl:
       conf.env["USE_OPENSSL"] = True
       conf.env.append_value("CXXFLAGS", "-DHAVE_OPENSSL=1")