summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-07-14 23:21:24 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-07-14 23:21:24 +0200
commitf6c57b79761529062e8b32b64373670ae8f34c30 (patch)
treea0059b37e03f0ff146efd3eccc88c16a5713a62a
parentc13c67e1279e8ffb10799056026ce88c6a8a75e1 (diff)
downloadcurl-bagder/wolfssl-crosscompiled-pkgconfig.tar.gz
configure: avoid pkg-config when detecting wolfssl for cross-compilationbagder/wolfssl-crosscompiled-pkgconfig
Reported-by: Ehren Bendler Bug: #5605
-rwxr-xr-xconfigure.ac9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index ed1b5fcec..1c98252b8 100755
--- a/configure.ac
+++ b/configure.ac
@@ -2380,8 +2380,13 @@ if test -z "$ssl_backends" -o "x$OPT_WOLFSSL" != xno; then
OPT_WOLFSSL=""
fi
- CURL_CHECK_PKGCONFIG(wolfssl, [$wolfpkg])
- AC_MSG_NOTICE([Check dir $wolfpkg])
+ if test x$cross_compiling != xyes; then
+ dnl only do pkg-config magic when not cross-compiling
+ CURL_CHECK_PKGCONFIG(wolfssl, [$wolfpkg])
+ AC_MSG_NOTICE([Check dir $wolfpkg])
+ else
+ PKGCONFIG="no"
+ fi
addld=""
addlib=""