Oh, I had a similar problem today, and was taught a bit about pkg-config, the wonderful system that describes installation of libraries. As a way of paying back that explanation, I wrote about it.
TL;DR
Add this to your shell startup file (such as ~/.bash_profile or ~/.zshrc). Then run the installation again.
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig:/usr/local/lib/pkgconfig
This makes the OpenSSL that isn't broken be found by configure scripts.