1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

configure: use pkgconfig to find openSSL when cross-compiling

This reverts 736a40fec (November 2004), which doesn't explain why it was
done.

Closes #6145
This commit is contained in:
Cristian Morales Vega 2020-10-29 17:14:49 +00:00 committed by Daniel Stenberg
parent ce8ac2db2b
commit 6f3369bbcf
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1767,19 +1767,13 @@ if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
case "$OPT_SSL" in
yes)
dnl --with-ssl (without path) used
if test x$cross_compiling != xyes; then
dnl only do pkg-config magic when not cross-compiling
PKGTEST="yes"
fi
PKGTEST="yes"
PREFIX_OPENSSL=/usr/local/ssl
LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
;;
off)
dnl no --with-ssl option given, just check default places
if test x$cross_compiling != xyes; then
dnl only do pkg-config magic when not cross-compiling
PKGTEST="yes"
fi
PKGTEST="yes"
PREFIX_OPENSSL=
;;
*)