From 93b3970ad47f66a621be1581c1f98fe960a5a5cc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 18 May 2021 09:55:02 +0200 Subject: [PATCH] curl-wolfssl.m4: without custom include path, assume /usr/include ... so that we can point out the root of the OpenSSL emulation headers. Previously this used the '$includedir' variable which is wrong since that defaults to the dir where the current configure invoke will install the built libcurl headers: /usr/local by default. Fixes #7085 Reported-by: Joel Jakobsson Closes #7087 --- m4/curl-wolfssl.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/curl-wolfssl.m4 b/m4/curl-wolfssl.m4 index db9f8ceb5..ada65726c 100644 --- a/m4/curl-wolfssl.m4 +++ b/m4/curl-wolfssl.m4 @@ -148,8 +148,8 @@ if test "x$OPT_WOLFSSL" != xno; then else dnl user didn't give a path, so guess/hope they installed wolfssl dnl headers to system default location - CPPFLAGS="-I$includedir/wolfssl $CPPFLAGS" - AC_MSG_NOTICE([Add $includedir/wolfssl to CPPFLAGS]) + CPPFLAGS="-I/usr/include/wolfssl $CPPFLAGS" + AC_MSG_NOTICE([Add /usr/include/wolfssl to CPPFLAGS]) fi WOLFSSL_NTLM=1 ]