Source: libcoap3
Version: 4.3.0-1
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

libcoap3 fails to cross build from source, because configure.ac hard
codes the build architecture pkg-config. The attached patch replaces it
with the host architecture one and makes libcoap3 cross buildable.
Please consider applying it.

Helmut
--- libcoap3-4.3.0.orig/configure.ac
+++ libcoap3-4.3.0/configure.ac
@@ -435,7 +435,7 @@
         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 @@
         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 @@
       # 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 @@
 
       # ... 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"

Reply via email to