如何使用旧的OpenSSL版本编译为已识别的安装

I compiled OpenSLL like this

./config --prefix=/opt/OpenSSL/openssl-1.0.0s 
make 
make install 

Everything passed well

    /opt/OpenSSL/openssl-1.0.0s/bin/openssl version -a
OpenSSL 1.0.0s 11 Jun 2015
built on: Fri Nov 30 10:04:53 2018
platform: linux-x86_64
options:  bn(64,64) rc4(1x,char) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: gcc -I. -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASM
OPENSSLDIR: "/opt/OpenSSL/openssl-1.0.0s"

When I trying to compile Curl with the option --with-ssl=/opt/OpenSSL/openssl-1.0.0s like

./configure --prefix=/opt/OpenSSL/openssl-1.0.0s --with-ssl=/opt/OpenSSL/openssl-1.0.0s/lib

I've a message meaning

configure: error: OpenSSL libs and/or directories were not found where specified!

Same When I trying to compile PHP5.6 with the option --with-openssl=/opt/OpenSSL/openssl-1.0.0s I got

configure: error: Cannot find OpenSSL's libraries

How to get OpenSSL's libraries found Regards,