From 9ce1b41cc1fe94baf16a32bb444d4aa4fe2d58a3 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 26 Jul 2023 11:13:20 +0900 Subject: libassuan.m4: Allow use of libassuan 3 for API of version 2. * src/libassuan.m4: API 3 is backward compatible to API 2. -- Signed-off-by: NIIBE Yutaka --- src/libassuan.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libassuan.m4 b/src/libassuan.m4 index f9e2e4f..a2eb5d9 100644 --- a/src/libassuan.m4 +++ b/src/libassuan.m4 @@ -9,7 +9,7 @@ dnl This file is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. dnl SPDX-License-Identifier: FSFULLR -# Last-changed: 2022-11-01 +# Last-changed: 2023-07-26 dnl dnl Common code used for libassuan detection [internal] @@ -105,6 +105,8 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON], AC_MSG_CHECKING([LIBASSUAN API version]) if test "$req_libassuan_api" -eq "$tmp" ; then AC_MSG_RESULT(okay) + elif test "$req_libassuan_api" -eq 2 -a "$tmp" -eq 3; then + AC_MSG_RESULT(okay) else ok=no AC_MSG_RESULT([does not match. want=$req_libassuan_api got=$tmp.]) -- cgit v1.2.3