From d7cc11191dfd3fead5e596fcbc24f40d1317819e Mon Sep 17 00:00:00 2001 From: David Timber Date: Mon, 10 Aug 2020 19:25:43 +0930 Subject: Build system change, bugfix ... * Workaround for a bug where getrandom() call block within mbedtls * Remove use of undocumented autoconf feature: pkg-config * Remove proone-arch-test --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 24eb7c8..4d1f95f 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,9 @@ AM_CONDITIONAL(TESTS, test x"$tests" = x"true") # [AC_MSG_ERROR([gtest/gtest.h not found.])]) # ]) -PKG_CHECK_MODULES_STATIC([DEP_PKGCFG], [zlib]) +AC_CHECK_LIB([pthread], [pthread_create], [], [AC_MSG_ERROR([pthread not found])]) +AC_CHECK_LIB([rt], [shm_open], [], [AC_MSG_ERROR([rt not found])]) +AC_CHECK_LIB([z], [zlibVersion], [], [AC_MSG_ERROR([zlib not found])]) AC_CHECK_LIB([mbedcrypto], [mbedtls_cipher_setup], [], [AC_MSG_ERROR([mbedtls not found])]) AC_CHECK_LIB([mbedtls], [mbedtls_ssl_init], [], [AC_MSG_ERROR([mbedtls not found])]) AC_CHECK_LIB([mbedx509], [mbedtls_x509_crt_parse], [], [AC_MSG_ERROR([mbedtls not found])]) -- cgit