From 5a1cede39dd4eb3c01177db4dfd02d7269378b12 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 10 Oct 2012 11:55:50 -0400 Subject: [PATCH] configure.ac: add --enable-gpgme-tool for installing gpgme-tool. * configure.ac (install_gpgme_tool, INSTALL_GPGME_TOOL): New. * src/Makefile.am (bin_PROGRAMS): Add gpgme-tool if enabled. (noinst_PROGRAMS): Add gpgme-tool if not enabled. Signed-off-by: W. Trevor King --- configure.ac | 5 +++++ src/Makefile.am | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 3cac826..841eae2 100644 --- a/configure.ac +++ b/configure.ac @@ -851,6 +851,11 @@ if test "$uiserver" != "no"; then fi AM_CONDITIONAL(HAVE_UISERVER, test "$uiserver" != "no") +install_gpgme_tool=no +AC_ARG_ENABLE([gpgme-tool], + AC_HELP_STRING([--enable-gpgme-tool], [install the gpgme-tool executable]), + install_gpgme_tool=$enableval) +AM_CONDITIONAL([INSTALL_GPGME_TOOL], [test "$install_gpgme_tool" != no]) # Generate values for the DLL version info diff --git a/src/Makefile.am b/src/Makefile.am index e934419..d9b95c7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -222,7 +222,12 @@ libgpgme_qt_la_LIBADD = $(gpgme_res) @LIBASSUAN_LIBS@ @LTLIBOBJS@ \ @GPG_ERROR_LIBS@ @QT4_CORE_LIBS@ endif +if INSTALL_GPGME_TOOL bin_PROGRAMS = gpgme-tool +else +noinst_PROGRAMS = gpgme-tool +endif + gpgme_tool_LDADD = libgpgme.la @LIBASSUAN_LIBS@ install-data-local: install-def-file -- 2.26.2