This happens with the configure script for apache cannot find the “openssl” (or “ssleay”) binaries in any of /usr/bin/openssl /usr/sbin/openssl /usr/apps/openssl
The usual location for “openssl” is /usr/bin/openssl
On a debian system, run
apt-get install openssl