Try this when you configure the libcurl
./configure --with-ssl --with-libssl-prefix=/usr/local/ssl
/usr/local/ssl
is where openssl contains header files and library
/usr/local/ssl/
├── bin
├── certs
├── include
├── lib
├── man
├── misc
├── openssl.cnf
└── private
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…