diff options
author | Werner Koch <wk@gnupg.org> | 2010-05-03 17:23:10 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2010-05-03 17:23:10 +0200 |
commit | 8524ac000c0755e61194c63a32efd648ab689b84 (patch) | |
tree | 852719e710835377f1cec313b9e25b9b2471896b /configure.ac | |
parent | Provide a useful pinentry prompt. (diff) | |
download | gnupg2-8524ac000c0755e61194c63a32efd648ab689b84.tar.xz gnupg2-8524ac000c0755e61194c63a32efd648ab689b84.zip |
auto start the agent if --use-standard-socket is in use.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 337f22f2e..280e40880 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,7 @@ use_bzip2=yes use_exec=yes disable_keyserver_path=no use_ccid_driver=yes +use_standard_socket=no GNUPG_BUILD_PROGRAM(gpg, yes) GNUPG_BUILD_PROGRAM(gpgsm, yes) @@ -266,17 +267,17 @@ if test "$use_exec" = yes ; then [enable email keyserver interface only]), try_mailto=$enableval, try_mailto=no) AC_MSG_RESULT($try_mailto) - fi + fi - AC_MSG_CHECKING([whether keyserver exec-path is enabled]) - AC_ARG_ENABLE(keyserver-path, + AC_MSG_CHECKING([whether keyserver exec-path is enabled]) + AC_ARG_ENABLE(keyserver-path, AC_HELP_STRING([--disable-keyserver-path], [disable the exec-path option for keyserver helpers]), [if test "$enableval" = no ; then disable_keyserver_path=yes fi],enableval=yes) - AC_MSG_RESULT($enableval) - fi + AC_MSG_RESULT($enableval) +fi # @@ -625,6 +626,30 @@ if test "$disable_keyserver_path" = yes; then [Defined to disable exec-path for keyserver helpers]) fi +# +# Allows enabling the use of a standard socket by default This is +# gpg-agent's option --[no-]use-standard-socket. For Windows we force +# the use of this. +# +AC_MSG_CHECKING([whether to use a standard socket by default]) +AC_ARG_ENABLE(standard-socket, + AC_HELP_STRING([--enable-standard-socket], + [use a standard socket for the agent by default]), + use_standard_socket=$enableval) +tmp="" +if test "$use_standard_socket" != yes; then + if test "$have_w32_system" = yes; then + use_standard_socket=yes + tmp=" (forced)" + fi +fi +AC_MSG_RESULT($use_standard_socket$tmp) +if test "$use_standard_socket" = yes; then + AC_DEFINE(USE_STANDARD_SOCKET,1, + [Use the standard socket for the agent by default]) +fi + + # (These need to go after AC_PROG_CC so that $EXEEXT is defined) AC_DEFINE_UNQUOTED(EXEEXT,"$EXEEXT",[The executable file extension, if any]) |