Kea 1.8.2 configure fails when linking to static OpenSSL library
I am attempting to build a static Kea 1.8.2 binary on CentOS7. I have built a static version of OpenSSL 1.1.1k (./config no-shared). When running configure for Kea 1.8.2 and specifying the --with-openssl directive, it fails with the following:
checking OS type... Linux
checking for sa_len in struct sockaddr... no
checking for usuable C++11 regex... no
checking for OpenSSL library... yes
checking OpenSSL version... OpenSSL 1.1.1k 25 Mar 2021
checking support of SHA-2... configure: error: missing EVP entry for SHA-2
Attached is the config.log file. config.log
As a work around, I am able to force it to configure properly by specifying LDFLAGS and LIBS:
LDFLAGS="-L/opt/tmp/install/openssl/lib" LIBS="-lcrypto -lpthread"
Note that this problem does not occur if OpenSSL is built with dynamic libraries.