diff options
| author | Paul Eggert | 2017-03-21 13:53:47 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-03-21 13:55:26 -0700 |
| commit | 3bb5af3a32dd131926fb9cbb5c8db5cd5d97d91c (patch) | |
| tree | 881e76899d5fa8eaa292e16c234bb2e9ca2b2a26 | |
| parent | 650defd4e74ad00dd16e61c1fc5b4f497821c3d2 (diff) | |
| download | emacs-3bb5af3a32dd131926fb9cbb5c8db5cd5d97d91c.tar.gz emacs-3bb5af3a32dd131926fb9cbb5c8db5cd5d97d91c.zip | |
Improve configure --with-pop etc. diagnostics
* configure.ac: Improve diagnostics re --with-pop and
--with-mailutils (Bug#26102).
| -rw-r--r-- | configure.ac | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac index fad7fb0104b..9937a6cce91 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -234,14 +234,16 @@ AC_DEFUN([OPTION_DEFAULT_ON], [dnl | |||
| 234 | # connections. Encrypted connections should be the default. | 234 | # connections. Encrypted connections should be the default. |
| 235 | 235 | ||
| 236 | OPTION_DEFAULT_OFF([mailutils], | 236 | OPTION_DEFAULT_OFF([mailutils], |
| 237 | [rely on GNU Mailutils being installed; this makes the options | 237 | [rely on GNU Mailutils, so that the --without-pop through --with-mailhost |
| 238 | --without-pop through --with-mailhost irrelevant]) | 238 | options are irrelevant]) |
| 239 | if test "$with_mailutils" = no; then | 239 | if test "$with_mailutils" = no; then |
| 240 | with_mailutils= | 240 | with_mailutils= |
| 241 | fi | 241 | fi |
| 242 | AC_SUBST([with_mailutils]) | 242 | AC_SUBST([with_mailutils]) |
| 243 | 243 | ||
| 244 | OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail]) | 244 | OPTION_DEFAULT_ON([pop], |
| 245 | [don't support POP mail retrieval with movemail (--without-pop or | ||
| 246 | --with-mailutils is recommended, as movemail POP is insecure)]) | ||
| 245 | if test "$with_pop" = yes; then | 247 | if test "$with_pop" = yes; then |
| 246 | AC_DEFINE(MAIL_USE_POP) | 248 | AC_DEFINE(MAIL_USE_POP) |
| 247 | fi | 249 | fi |
| @@ -5482,31 +5484,25 @@ fi | |||
| 5482 | AC_OUTPUT | 5484 | AC_OUTPUT |
| 5483 | 5485 | ||
| 5484 | if test ! "$with_mailutils"; then | 5486 | if test ! "$with_mailutils"; then |
| 5487 | if test "$with_pop" = yes; then | ||
| 5488 | AC_MSG_WARN([This configuration installs a 'movemail' program | ||
| 5489 | that retrieves POP3 email via only insecure channels. | ||
| 5490 | To omit insecure POP3, you can use '$0 --without-pop'.]) | ||
| 5491 | fi | ||
| 5492 | |||
| 5485 | case $opsys in | 5493 | case $opsys in |
| 5486 | cygwin | mingw32) | 5494 | cygwin | mingw32) |
| 5487 | # Don't suggest GNU Mailutils, as it hasn't been ported. | 5495 | # Don't suggest GNU Mailutils, as it hasn't been ported. |
| 5488 | if test "$with_pop" = yes; then | 5496 | ;; |
| 5489 | emacs_fix_movemail="use '$0 --without-pop'" | ||
| 5490 | else | ||
| 5491 | emacs_fix_movemail= | ||
| 5492 | fi;; | ||
| 5493 | *) | 5497 | *) |
| 5494 | emacs_fix_movemail="use '$0 --with-mailutils'" | 5498 | emacs_fix_movemail="use '$0 --with-mailutils'" |
| 5495 | case `(movemail --version) 2>/dev/null` in | 5499 | case `(movemail --version) 2>/dev/null` in |
| 5496 | *Mailutils*) ;; | 5500 | *Mailutils*) ;; |
| 5497 | *) emacs_fix_movemail="install GNU Mailutils | 5501 | *) emacs_fix_movemail="install GNU Mailutils |
| 5498 | <http://mailutils.org> and $emacs_fix_movemail";; | 5502 | <http://mailutils.org> and $emacs_fix_movemail";; |
| 5499 | esac;; | 5503 | esac |
| 5504 | AC_MSG_NOTICE([You might want to $emacs_fix_movemail.]);; | ||
| 5500 | esac | 5505 | esac |
| 5501 | |||
| 5502 | if test "$with_pop" = yes; then | ||
| 5503 | AC_MSG_WARN([This configuration installs a 'movemail' program | ||
| 5504 | that retrieves POP3 email via only insecure channels. | ||
| 5505 | To fix this you can $emacs_fix_movemail.]) | ||
| 5506 | elif test "$emacs_fix_movemail"; then | ||
| 5507 | AC_MSG_NOTICE([This configuration installs a 'movemail' program that cannot | ||
| 5508 | retrieve POP3 email. You might want to $emacs_fix_movemail.]) | ||
| 5509 | fi | ||
| 5510 | fi | 5506 | fi |
| 5511 | 5507 | ||
| 5512 | test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.]) | 5508 | test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.]) |