configure: check if OpenSSL linking wants -ldl

To make it easier to link with static versions of OpenSSL, the configure
script now checks if -ldl is needed for linking.

Help-by: TJ Saunders
1 file changed