From: W. Trevor King Date: Wed, 10 Oct 2012 15:55:50 +0000 (-0400) Subject: configure.ac: add --enable-gpgme-tool for installing gpgme-tool. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a1cede39dd4eb3c01177db4dfd02d7269378b12;p=gpgme.git 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 --- 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