From 4834b86067aee09b2f3398f1b09051deb0e4da38 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 17 Oct 2021 08:23:00 +0200 Subject: [PATCH] pkg-config: Don't use hard coded binary libcoap3 fails to cross build from source, because configure.ac hard codes the build architecture pkg-config. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 11fdc4be..918ccddc 100644 --- a/configure.ac +++ b/configure.ac @@ -435,7 +435,7 @@ if test "x$build_dtls" = "xyes"; then AC_MSG_NOTICE([The use of GnuTLS was explicitly requested with configure option '--with-gnutls'!]) # check for valid GnuTLS version - gnutls_version=`pkg-config --modversion gnutls` + gnutls_version=`$PKG_CONFIG --modversion gnutls` AX_CHECK_GNUTLS_VERSION have_openssl="no" # don't confuse AC_MSG_RESULT at the end of the script have_mbedtls="no" # don't confuse AC_MSG_RESULT at the end of the script @@ -453,7 +453,7 @@ if test "x$build_dtls" = "xyes"; then AC_MSG_NOTICE([The use of OpenSSL was explicitly requested with configure option '--with-openssl'!]) # check for valid OpenSSL version - openssl_version=`pkg-config --modversion openssl` + openssl_version=`$PKG_CONFIG --modversion openssl` AX_CHECK_OPENSSL_VERSION have_gnutls="no" # don't confuse AC_MSG_RESULT at the end of the script have_mbedtls="no" # don't confuse AC_MSG_RESULT at the end of the script @@ -495,7 +495,7 @@ if test "x$build_dtls" = "xyes"; then # The user hasn't requested the use of a specific cryptography library # we try first GnuTLS for usability ... if test "x$have_gnutls" = "xyes"; then - gnutls_version=`pkg-config --modversion gnutls` + gnutls_version=`$PKG_CONFIG --modversion gnutls` AX_CHECK_GNUTLS_VERSION AC_MSG_NOTICE([Using auto selected library GnuTLS for DTLS support!]) with_gnutls_auto="yes" @@ -505,7 +505,7 @@ if test "x$build_dtls" = "xyes"; then # ... and if not found check OpenSSL is suitable. elif test "x$have_openssl" = "xyes"; then - openssl_version=`pkg-config --modversion openssl` + openssl_version=`$PKG_CONFIG --modversion openssl` AX_CHECK_OPENSSL_VERSION AC_MSG_NOTICE([Using auto selected library OpenSSL for DTLS support!]) with_openssl_auto="yes"