Skip to content

Commit

Permalink
configure: fix pkg-config detecting wolfssl
Browse files Browse the repository at this point in the history
When amending the include path with "/wolfssl", this now properly strips
off all whitespace from the path variable! Previously this would lead to
pkg-config builds creating bad command lines.

Closes #5848
  • Loading branch information
bagder committed Aug 24, 2020
1 parent ebc6c54 commit 510d981
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions configure.ac
Expand Up @@ -2474,8 +2474,12 @@ if test -z "$ssl_backends" -o "x$OPT_WOLFSSL" != xno; then
AC_DEFINE(HAVE_WOLFSSL_DES_ECB_ENCRYPT, 1,
[if you have wolfSSL_DES_ecb_encrypt])
if test -n "$addcflags"; then
CPPFLAGS="$addcflags/wolfssl $CPPFLAGS"
AC_MSG_NOTICE([Add $addcflags/wolfssl to CPPFLAGS])
dnl use a for loop to strip off whitespace
for f in $addcflags; do
CPPFLAGS="$f/wolfssl $CPPFLAGS"
AC_MSG_NOTICE([Add $f/wolfssl to CPPFLAGS])
break
done
else
dnl user didn't give a path, so guess/hope they installed wolfssl
dnl headers to system default location
Expand Down

0 comments on commit 510d981

Please sign in to comment.