You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.0 KiB

  1. --- a/acinclude.m4
  2. +++ b/acinclude.m4
  3. @@ -386,9 +386,9 @@ AC_DEFUN([LIBSSH2_CHECKFOR_MBEDTLS], [
  4. old_LDFLAGS=$LDFLAGS
  5. old_CFLAGS=$CFLAGS
  6. - if test -n "$use_mbedtls" && test "$use_mbedtls" != "no"; then
  7. - LDFLAGS="$LDFLAGS -L$use_mbedtls/lib"
  8. - CFLAGS="$CFLAGS -I$use_mbedtls/include"
  9. + if test -n "$with_libmbedtls_prefix" && test "$use_mbedtls" != "no"; then
  10. + LDFLAGS="$LDFLAGS -L$with_libmbedtls_prefix/lib"
  11. + CFLAGS="$CFLAGS -I$with_libmbedtls_prefix/include"
  12. fi
  13. AC_LIB_HAVE_LINKFLAGS([mbedtls], [], [
  14. @@ -412,9 +412,9 @@ AC_DEFUN([LIBSSH2_CHECKFOR_GCRYPT], [
  15. old_LDFLAGS=$LDFLAGS
  16. old_CFLAGS=$CFLAGS
  17. - if test -n "$use_libgcrypt" && test "$use_libgcrypt" != "no"; then
  18. - LDFLAGS="$LDFLAGS -L$use_libgcrypt/lib"
  19. - CFLAGS="$CFLAGS -I$use_libgcrypt/include"
  20. + if test -n "$with_libgcrypt_prefix" && test "$use_libgcrypt" != "no"; then
  21. + LDFLAGS="$LDFLAGS -L$with_libgcrypt_prefix/lib"
  22. + CFLAGS="$CFLAGS -I$with_libgcrypt_prefix/include"
  23. fi
  24. AC_LIB_HAVE_LINKFLAGS([gcrypt], [], [
  25. #include <gcrypt.h>