build: Add conditional use of GPGME
Allow to disable GPGME support with option "--without-gpgme" for configure. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com> Closes: #1889 Approved by: cgwalters
This commit is contained in:
parent
97c673b64b
commit
b7a9c6d07c
12
configure.ac
12
configure.ac
|
|
@ -210,7 +210,10 @@ m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
|
|||
AM_CONDITIONAL(BUILDOPT_INTROSPECTION, test "x$found_introspection" = xyes)
|
||||
|
||||
LIBGPGME_DEPENDENCY="1.1.8"
|
||||
|
||||
AC_ARG_WITH(gpgme,
|
||||
AS_HELP_STRING([--with-gpgme], [Use gpgme @<:@default=yes@:>@]),
|
||||
[], [with_gpgme=yes])
|
||||
AS_IF([test x$with_gpgme != xno], [
|
||||
PKG_CHECK_MODULES(OT_DEP_GPGME, gpgme-pthread >= $LIBGPGME_DEPENDENCY, have_gpgme=yes, [
|
||||
m4_ifdef([AM_PATH_GPGME_PTHREAD], [
|
||||
AM_PATH_GPGME_PTHREAD($LIBGPGME_DEPENDENCY, have_gpgme=yes, have_gpgme=no)
|
||||
|
|
@ -229,6 +232,13 @@ dnl to link to it directly.
|
|||
])
|
||||
OT_DEP_GPGME_CFLAGS="${OT_DEP_GPGME_CFLAGS} ${OT_DEP_GPG_ERROR_CFLAGS}"
|
||||
OT_DEP_GPGME_LIBS="${OT_DEP_GPGME_LIBS} ${OT_DEP_GPG_ERROR_LIBS}"
|
||||
],
|
||||
[
|
||||
AC_DEFINE([OSTREE_DISABLE_GPGME], 1, [Define to disable internal GPGME support])
|
||||
with_gpgme=no
|
||||
]
|
||||
)
|
||||
AM_CONDITIONAL(USE_GPGME, test "x$have_gpgme" = xyes)
|
||||
|
||||
LIBARCHIVE_DEPENDENCY="libarchive >= 2.8.0"
|
||||
# What's in RHEL7.2.
|
||||
|
|
|
|||
Loading…
Reference in New Issue