[git] KSBA - branch, master, updated. libksba-1.3.5-25-ga32a50c
by NIIBE Yutaka
cvs at cvs.gnupg.org
Fri Oct 26 01:46:23 CEST 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "KSBA is a library to access X.509 certificates and CMS data.".
The branch, master has been updated
via a32a50c7726ee7c6ac320d99b9ab42f073960cc9 (commit)
from 07cf4a9ab6f1a7b68aeda39ba03691e713254418 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a32a50c7726ee7c6ac320d99b9ab42f073960cc9
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Fri Oct 26 08:42:19 2018 +0900
build: Relax build requirements.
* m4/gpg-error.m4: Update from libgpg-error 1.33.
* src/ksba.m4: Don't require AM_PATH_GPG_ERROR. Use GPGRT_CONFIG when
it is confirmed that it is available and working well.
* configure.ac (AM_PATH_GPG_ERROR): No requirement for newer version
(It was because of new gpgrt-config which supports *.pc files).
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
diff --git a/configure.ac b/configure.ac
index 097e1da..e21f7d0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
# configure.ac - for libksba
# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
-# 2010, 2011, 2012 g10 Code GmbH
+# 2010, 2011, 2012, 2018 g10 Code GmbH
#
# This file is part of KSBA
#
@@ -58,7 +58,7 @@ LIBKSBA_LT_REVISION=6
KSBA_CONFIG_API_VERSION=1
-NEED_GPG_ERROR_VERSION=1.33
+NEED_GPG_ERROR_VERSION=1.8
AC_CONFIG_AUX_DIR([build-aux])
diff --git a/m4/gpg-error.m4 b/m4/gpg-error.m4
index 0f46cd6..f89a4ee 100644
--- a/m4/gpg-error.m4
+++ b/m4/gpg-error.m4
@@ -62,15 +62,21 @@ AC_DEFUN([AM_PATH_GPG_ERROR],
AC_PATH_PROG(GPG_ERROR_CONFIG, gpg-error-config, no)
min_gpg_error_version=ifelse([$1], ,1.33,$1)
- AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version)
ok=no
- if test "$GPG_ERROR_CONFIG" != "no" \
- && test -f "$GPG_ERROR_CONFIG" ; then
+ if test "$GPG_ERROR_CONFIG" = "no"; then
+ AC_PATH_PROG(GPGRT_CONFIG, gpgrt-config, no)
+ if CC=$CC $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
+ GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
+ gpg_error_config_version=`CC=$CC $GPG_ERROR_CONFIG --modversion`
+ fi
+ else
+ gpg_error_config_version=`CC=$CC $GPG_ERROR_CONFIG --version`
+ fi
+ if test "$GPG_ERROR_CONFIG" != "no"; then
req_major=`echo $min_gpg_error_version | \
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
req_minor=`echo $min_gpg_error_version | \
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
- gpg_error_config_version=`CC=$CC $GPG_ERROR_CONFIG --version`
major=`echo $gpg_error_config_version | \
sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
minor=`echo $gpg_error_config_version | \
@@ -84,7 +90,14 @@ AC_DEFUN([AM_PATH_GPG_ERROR],
fi
fi
fi
+ if test -z "$GPGRT_CONFIG"; then
+ if test "$major" -gt 1 -o "$major" -eq 1 -a "$minor" -ge 33; then
+ AC_PATH_PROG(GPGRT_CONFIG, gpgrt-config, no)
+ GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
+ fi
+ fi
fi
+ AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version)
if test $ok = yes; then
GPG_ERROR_CFLAGS=`CC=$CC $GPG_ERROR_CONFIG --cflags`
GPG_ERROR_LIBS=`CC=$CC $GPG_ERROR_CONFIG --libs`
diff --git a/src/ksba.m4 b/src/ksba.m4
index 62dc17f..43fb1f2 100644
--- a/src/ksba.m4
+++ b/src/ksba.m4
@@ -1,5 +1,5 @@
# ksba.m4 - autoconf macro to detect ksba
-# Copyright (C) 2002 g10 Code GmbH
+# Copyright (C) 2002, 2018 g10 Code GmbH
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
@@ -22,7 +22,6 @@ dnl with a changed API.
dnl
AC_DEFUN([AM_PATH_KSBA],
[ AC_REQUIRE([AC_CANONICAL_HOST])
- AC_REQUIRE([AM_PATH_GPG_ERROR])
dnl --with-libksba-prefix=PFX is the preferred name for this option,
dnl since that is consistent with how our three siblings use the directory/
dnl package name in --with-$dir_name-prefix=PFX.
@@ -41,8 +40,15 @@ AC_DEFUN([AM_PATH_KSBA],
if test x${KSBA_CONFIG+set} != xset ; then
KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
fi
+ fi
+ if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
+ if CC=$CC $GPGRT_CONFIG libksba >/dev/null 2>&1; then
+ LIBKSBA_CONFIG="$GPGRT_CONFIG libksba"
+ else
+ LIBKSBA_CONFIG=no
+ fi
else
- KSBA_CONFIG="$GPG_ERROR_CONFIG ksba"
+ AC_PATH_TOOL(LIBKSBA_CONFIG, ksba-config, no)
fi
tmp=ifelse([$1], ,1:1.0.0,$1)
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 4 ++--
m4/gpg-error.m4 | 21 +++++++++++++++++----
src/ksba.m4 | 12 +++++++++---
3 files changed, 28 insertions(+), 9 deletions(-)
hooks/post-receive
--
KSBA is a library to access X.509 certificates and CMS data.
http://git.gnupg.org
More information about the Gnupg-commits
mailing list