From b9556b69822cb8dc4770873ce4e704d2155c2974 Mon Sep 17 00:00:00 2001 From: ueno Date: Thu, 13 Jul 2006 06:07:53 +0000 Subject: [PATCH] Added --disable-gpgtest option. --- acinclude.m4 | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index fc6c9cc..51c2cda 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -359,15 +359,22 @@ AC_DEFUN([AC_ADD_LOAD_PATH], AC_SUBST(ADDITIONAL_LOAD_PATH)]) AC_DEFUN([AC_PATH_GPG], - [AC_PATH_PROG(GPG, gpg) - AC_ARG_WITH(gpg, - AC_HELP_STRING([--with-gpg=PATH], [use GnuPG binary at PATH]), - GPG=$withval, NO_OVERRIDE=yes) - AC_DEFINE_UNQUOTED(GPG_PATH, "$GPG", [Path to the GnuPG binary.]) - AC_SUBST(GPG) + [AC_ARG_ENABLE(gpgtest, + AC_HELP_STRING([--disable-gpgtest=PATH], [Do not check GnuPG version]), + enable_gpgtest=yes) + ok=maybe + if test "x$enable_gpgtest" = "xyes"; then + ok=yes + else + AC_PATH_PROG(GPG, gpg) + AC_ARG_WITH(gpg, + AC_HELP_STRING([--with-gpg=PATH], [use GnuPG binary at PATH]), + GPG=$withval) + AC_DEFINE_UNQUOTED(GPG_PATH, "$GPG", [Path to the GnuPG binary.]) + AC_SUBST(GPG) + fi dnl Check for GnuPG version requirement. GPG_VERSION=unknown - ok=maybe if test -z "$GPG" -o "x$GPG" = "xno"; then ok=no else -- 1.7.10.4