]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: use pkgconfig to find openSSL when cross-compiling
authorCristian Morales Vega <cristian@samknows.com>
Thu, 29 Oct 2020 17:14:49 +0000 (17:14 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Oct 2020 22:18:29 +0000 (23:18 +0100)
This reverts 736a40fec (November 2004), which doesn't explain why it was
done.

Closes #6145

configure.ac

index b7a7d2daa2ae8db00961b8564462083dc53727c1..a81d96a39b9f39e4319b583430b13e1b37eddc38 100755 (executable)
@@ -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=
     ;;
   *)