title: Configuration issue when building ClamAV and OpenSSL from sources
body: <p>I'm trying to build clamav-0.99.2 on OS X 10.11.6. <code>./configure</code> is getting the following error:</p>
  
  <pre><code>configure:17977: error: Your OpenSSL installation is misconfigured or missing
  
  configure:17963: gcc -o conftest -I/usr/local/include  -L/usr/local/lib -lssl -lcrypto -lz conftest.c -lssl -lcrypto -lz  &gt;&amp;5
  Undefined symbols for architecture x86_64:
    "_SSL_library_init", referenced from:
        _main in conftest-256c9a.o
  ld: symbol(s) not found for architecture x86_64
  </code></pre>
  
  <p>It's just running a simple test program:</p>
  
  <pre><code>|    Use char because int might match the return type of a GCC
  |    builtin and then its argument prototype would still apply.  */
  | #ifdef __cplusplus
  | extern "C"
  | #endif
  | char SSL_library_init ();
  | int
  | main ()
  | {
  | return SSL_library_init ();
  |   ;
  |   return 0;
  | }
  </code></pre>
  
  <p>I tried <code>./configure --without-ssl</code>, same problem.</p>
  
  <pre><code>checking for OpenSSL installation... /usr/local
  checking for SSL_library_init in -lssl... no
  configure: error: Your OpenSSL installation is misconfigured or missing
  </code></pre>
  
  <p>I've installed OpenSSL from github and it built without errors:</p>
  
  <pre><code>$ openssl
  OpenSSL&gt; version
  OpenSSL 1.0.2l  25 May 2017
  </code></pre>
  
  <p>There may be a conflict with Anaconda's openssl:</p>
  
  <pre><code>$ which openssl
  /Users/davidlaxer/anaconda/bin/openssl
  $ whereis openssl
  /usr/bin/openssl
  </code></pre>
  
  <p>The function <code>SSL_library_init ()</code> isn't in the libraries:</p>
  
  <pre><code>$ nm /usr/local/lib/libssl.* | grep SSL_l
  00000000000143a0 T _SSL_load_client_CA_file
  0000000000001590 T _SSL_load_client_CA_file
  00000000000143a0 T _SSL_load_client_CA_file
  
  $ ls -l /usr/local/lib/libssl.* 
  -rwxr-xr-x  1 root  wheel  501464 Oct 14 14:41 /usr/local/lib/libssl.1.1.dylib
  -rw-r--r--  1 root  wheel  711256 Oct 14 14:41 /usr/local/lib/libssl.a
  lrwxr-xr-x  1 root  wheel      16 Oct 14 14:41 /usr/local/lib/libssl.dylib -&gt; libssl.1.1.dylib
  
  $ gcc --version
  Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
  Apple LLVM version 8.0.0 (clang-800.0.42.1)
  Target: x86_64-apple-darwin15.6.0
  Thread model: posix
  InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
  </code></pre>
  
  <p>Openssl appears to have build and passes it's tests:</p>
  
  <pre><code>$ make test
  ...
  All tests successful.
  Files=136, Tests=1116, 643 wallclock secs ( 3.69 usr  0.55 sys + 261.00 cusr 239.88 csys = 505.12 CPU)
  Result: PASS
  </code></pre>