aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-09-20 05:19:18 +0000
committerNIIBE Yutaka <[email protected]>2019-09-20 05:19:18 +0000
commitbb5ed9fe1abfcbb6128325508366bc802eb576c5 (patch)
tree99054eeb7e88519c1b91ba82a7bd98bb7f0aaf94 /configure.ac
parenttools: Fix gpg-pair-tool to follow new API. (diff)
downloadgnupg-bb5ed9fe1abfcbb6128325508366bc802eb576c5.tar.gz
gnupg-bb5ed9fe1abfcbb6128325508366bc802eb576c5.zip
build: Build gpg-pair-tool only when there is newer libgcrypt.
* configure.ac (HAVE_NEWER_LIBGCRYPT): New. * tools/Makefile.am: Conditionalize build of gpg-pair-tool. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 20 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 41dedf72b..7ce90aa46 100644
--- a/configure.ac
+++ b/configure.ac
@@ -801,7 +801,26 @@ AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",
#
AM_PATH_LIBGCRYPT("$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION",
have_libgcrypt=yes,have_libgcrypt=no)
-
+# And, then, check if it's newer than 1.9.0.
+have_libgcrypt_newer=no
+if test $ok = yes; then
+ if test "$major" -gt 1; then
+ have_libgcrypt_newer=yes
+ else
+ if test "$major" -eq 1; then
+ if test "$minor" -gt 9; then
+ have_libgcrypt_newer=yes
+ else
+ if test "$minor" -eq 9; then
+ if test "$micro" -ge 0; then
+ have_libgcrypt_newer=yes
+ fi
+ fi
+ fi
+ fi
+ fi
+fi
+AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
#
# libassuan is used for IPC