rgw: civetweb/openssl: automagic: load libssl.so and libcrypto.so by soname.
If building with radosgw, always look for openssl library (even when
building with nss). Then, use objdump to fetch SONAME from the copies
of libssl and libcrypto that were found. When building civetweb; pass
the library soname values in as the libraries to load with "dlopen".
The issue reported here against master
http://tracker.ceph.com/issues/16535
reflects stuff that doesn't seem to have made it into jewel
(which had: -lssl -lcrypto hard-wired into it.)
Still, since people were pretty riled about making that change,
this puts things in congruence to the final result in master.
(which is: runtime shared object load of ssl crypto by soname.)
Fixes: http://tracker.ceph.com/issues/11239
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(inspired by commit
7caa0bd002110b62514da83a37a2a3deb841267a)