Do not test for GnuPG version and use gpgconf to find it.
authorWerner Koch <wk@gnupg.org>
Mon, 25 Feb 2019 11:43:42 +0000 (12:43 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 25 Feb 2019 11:43:42 +0000 (12:43 +0100)
commita467acce64885919b5de4e18b94671f3cfcdf4c8
tree09571cf3114bb6bc0bac9709cb99d92252f8f575
parent4fc9da05d490b8d4d0d0714d51781d7e2521bbc6
Do not test for GnuPG version and use gpgconf to find it.

* configure.ac: Remove all tests for GPGSM and GPG_CONNECT_AGENT.
* src/agent.c (agent_connect): Change to use gpgconf.
* src/get-path.c (get_gpg_connect_agent_path): Rename to ...
(get_gpgconf_path): this.
(get_bindir): New.
(get_gpgsm_path): Implement using get_bindir.
--

gpgconf is the suggested way to test for gnupg and to find properties
of the installation.

Signed-off-by: Werner Koch <wk@gnupg.org>
configure.ac
src/agent.c
src/get-path.c
src/support.h