From dc8fed26a60880481fb417ef1340f0ef3dd74690 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 19 Feb 2021 07:17:46 +0100 Subject: [PATCH] add check for libgpgme version 1.3.0 --- config.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config.m4 b/config.m4 index 0aff28b..4a5ca35 100644 --- a/config.m4 +++ b/config.m4 @@ -40,15 +40,16 @@ if test "$PHP_GNUPG" != "no"; then PHP_ADD_INCLUDE($GNUPG_DIR/include) + dnl gpgme_op_passwd is not used but was added in 1.3.0 LIBNAME=gpgme - LIBSYMBOL=gpgme_check_version + LIBSYMBOL=gpgme_op_passwd PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, [ PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $GNUPG_DIR/$PHP_LIBDIR, GNUPG_SHARED_LIBADD) AC_DEFINE(HAVE_GNUPGLIB,1,[ ]) ],[ - AC_MSG_ERROR([wrong gpgme lib version or lib not found]) + AC_MSG_ERROR([wrong gpgme lib version or lib not found (version >= 1.3 required)]) ],[ -L$GNUPG_DIR/$PHP_LIBDIR -lm $GNUPG_DL ])