diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/configure.in b/configure.in index cd0c9a3de..ace3aaaa3 100644 --- a/configure.in +++ b/configure.in | |||
@@ -109,11 +109,26 @@ if test -z "$RANDOM_POOL" -a -z "$EGD_POOL"; then | |||
109 | fi | 109 | fi |
110 | 110 | ||
111 | dnl Check whether use wants to disable the external ssh-askpass | 111 | dnl Check whether use wants to disable the external ssh-askpass |
112 | INSTALL_ASKPASS="yes" | ||
113 | AC_MSG_CHECKING([whether to enable external ssh-askpass support]) | ||
112 | AC_ARG_WITH(askpass, | 114 | AC_ARG_WITH(askpass, |
113 | [ --without-askpass Disable external ssh-askpass support], | 115 | [ --with-askpass=yes/no Enable external ssh-askpass support (default=yes)], |
114 | [AC_DEFINE(DISABLE_EXTERNAL_ASKPASS)], | 116 | [ |
115 | [INSTALL_ASKPASS="yes"] | 117 | if test x$withval = xno ; then |
118 | INSTALL_ASKPASS="no" | ||
119 | else | ||
120 | INSTALL_ASKPASS="yes" | ||
121 | fi | ||
122 | |||
123 | ] | ||
116 | ) | 124 | ) |
117 | AC_SUBST(INSTALL_ASKPASS) | 125 | |
126 | if test "x$INSTALL_ASKPASS" = "xyes" ; then | ||
127 | AC_DEFINE(USE_EXTERNAL_ASKPASS) | ||
128 | AC_SUBST(INSTALL_ASKPASS) | ||
129 | AC_MSG_RESULT(yes) | ||
130 | else | ||
131 | AC_MSG_RESULT(no) | ||
132 | fi | ||
118 | 133 | ||
119 | AC_OUTPUT(Makefile) | 134 | AC_OUTPUT(Makefile) |