Commit 0b1494be authored by npzacs's avatar npzacs Committed by Ano Nymous
Browse files

Properly link against libgpg-error when it is used

parent 1c52531a
????-??-??:
- Check for libgpg-error. Link against it when needed.
- Distribute README.txt
- Added ChangeLog
......
......@@ -122,6 +122,7 @@ else
AC_SUBST(LIBGCRYPT_LIBS)
fi
AC_FUNC_STRERROR_R
AC_CHECK_LIB([gpg-error], [gpg_strerror_r])
# function testing for supported compiler options
check_cc_options()
......
......@@ -151,7 +151,7 @@ void crypto_aesg3(const uint8_t *D, uint8_t *lsubk, uint8_t* rsubk, uint8_t *pk)
}
}
#ifdef HAVE_STRERROR_R
#if defined(HAVE_STRERROR_R) && defined(HAVE_LIBGPG_ERROR)
#define LOG_GCRY_ERROR(msg, func, err) \
char errstr[100] = {0}; \
gpg_strerror_r(err, errstr, sizeof(errstr)); \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment