* 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 <wking@tremily.us>
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
@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