diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-07-14 23:21:24 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-07-14 23:21:24 +0200 |
commit | f6c57b79761529062e8b32b64373670ae8f34c30 (patch) | |
tree | a0059b37e03f0ff146efd3eccc88c16a5713a62a | |
parent | c13c67e1279e8ffb10799056026ce88c6a8a75e1 (diff) | |
download | curl-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-x | configure.ac | 9 |
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="" |