diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2016-01-08 23:40:50 +0000 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-01-08 21:00:18 -0300 |
commit | be0f005da639a36147a25426a8663b0c7339062d (patch) | |
tree | 5b94ed240fb5f59ea52b8c2fcd306e8630605b0f | |
parent | 5c8467a07c654f6acd9e8e3a436cd5b746bb2f44 (diff) | |
download | ffmpeg-be0f005da639a36147a25426a8663b0c7339062d.tar.gz |
configure: Use libgcrypt-config's cflags
Signed-off-by: James Almer <jamrial@gmail.com>
-rwxr-xr-x | configure | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -5578,8 +5578,11 @@ fi if enabled gcrypt; then GCRYPT_CONFIG="${cross_prefix}libgcrypt-config" if "${GCRYPT_CONFIG}" --version > /dev/null 2>&1; then + gcrypt_cflags=$("${GCRYPT_CONFIG}" --cflags) gcrypt_libs=$("${GCRYPT_CONFIG}" --libs) - require2 gcrypt gcrypt.h gcry_mpi_new $gcrypt_libs + check_func_headers gcrypt.h gcry_mpi_new $gcrypt_cflags $gcrypt_libs || + die "ERROR: gcrypt not found" + add_cflags $gcrypt_cflags && add_extralibs $gcrypt_libs else require2 gcrypt gcrypt.h gcry_mpi_new -lgcrypt fi |