I can't comment on the `./configure` line, but I thought you needed `./configure -with-openssl=/usr/local/Cellar/openssl/1.0.1f`