the file openssl/ssl.h cannot be located on your system. Apparently, it's not where you expect it to be,
I verify, the path is OK.
or CPPFLAGS are not being read as expected by configure. I'm more inclined towards the latter, as no "-I" appears in the cc commands in your log.
Any idea to test this case or force configure to use the variables that are in CPPFLAGS ?