From 84c405e69018074bcc3facf760decbf92cfc8898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Fri, 14 Aug 2015 10:17:52 +0200 Subject: [PATCH] Let bootstrap/autoreconf work without GPGME installed * configure.ac: Check for existance of AM_PATH_GPGME --- configure.ac | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index 2f62605e..eb128f3c 100644 --- a/configure.ac +++ b/configure.ac @@ -490,17 +490,22 @@ AS_IF([test x"$with_metalink" != xno], [ ], [ with_metalink=no ]) -]) -dnl -dnl Check for GPGME -dnl -AM_PATH_GPGME([], [ - LIBS="$GPGME_LIBS $LIBS" - CFLAGS="$GPGME_CFLAGS $CFLAGS" - AC_DEFINE([HAVE_GPGME], [1], [Define if GPGME is available.]) - have_gpg=yes - ], [have_gpg=no]) + have_gpg=no + AS_IF([test x"$with_metalink" = xyes], [ + dnl + dnl Check for GPGME + dnl + m4_ifdef([AM_PATH_GPGME], [ + AM_PATH_GPGME([], [ + LIBS="$GPGME_LIBS $LIBS" + CFLAGS="$GPGME_CFLAGS $CFLAGS" + AC_DEFINE([HAVE_GPGME], [1], [Define if GPGME is available.]) + have_gpg=yes + ]) + ]) + ]) +]) dnl ********************************************************************** dnl Checks for IPv6