From 594a6a48c983f012a70323047c723ef48883934a Mon Sep 17 00:00:00 2001 From: Antonio Radici Date: Sun, 3 Oct 2010 20:39:48 +0100 Subject: [PATCH] Imported Upstream version 1.5.21 --- ChangeLog | 1152 +- INSTALL | 2 +- Makefile.am | 10 +- Makefile.in | 33 +- OPS | 1 + TODO | 7 - UPDATING | 16 +- VERSION | 2 +- account.c | 4 + aclocal.m4 | 131 +- attach.c | 8 +- bcache.c | 13 +- browser.c | 22 +- buffy.c | 278 +- buffy.h | 4 + charset.c | 53 +- charset.h | 2 +- commands.c | 9 +- compose.c | 45 +- config.guess | 32 +- config.h.in | 15 +- config.sub | 16 +- configure | 27786 ++++++++++++------------------------ configure.ac | 39 +- contrib/Makefile.in | 7 +- copy.c | 4 + crypt-gpgme.c | 107 +- crypt.c | 4 +- curs_lib.c | 73 +- curs_main.c | 45 +- doc/Makefile.am | 18 +- doc/Makefile.in | 25 +- doc/Muttrc | 99 +- doc/Muttrc.head | 2 +- doc/advancedusage.html | 1016 +- doc/configuration.html | 1661 ++- doc/devel-notes.txt | 4 +- doc/gen-map-doc | 6 +- doc/gettingstarted.html | 738 +- doc/index.html | 13 +- doc/intro.html | 93 +- doc/makedoc.c | 35 +- doc/manual.html | 6733 +++++---- doc/manual.txt | 2412 ++-- doc/manual.xml.head | 5053 ++++--- doc/manual.xml.tail | 18 +- doc/mimesupport.html | 807 +- doc/miscellany.html | 19 +- doc/mutt.css | 4 +- doc/mutt.man | 12 +- doc/muttrc.man.head | 13 +- doc/optionalfeatures.html | 474 +- doc/reference.html | 1619 ++- doc/security.html | 30 +- doc/smime_keys.man | 69 + doc/tuning.html | 83 +- editmsg.c | 2 +- filter.c | 2 +- functions.h | 8 +- globals.h | 1 + gnupgparse.c | 2 +- group.c | 103 +- group.h | 39 + handler.c | 19 +- hcache.c | 30 +- hcache.h | 3 +- headers.c | 2 +- help.c | 2 +- history.c | 2 +- hook.c | 1 - imap/Makefile.in | 3 +- imap/auth_login.c | 2 +- imap/command.c | 24 +- imap/imap_private.h | 4 + imap/message.c | 55 +- imap/util.c | 38 +- init.c | 160 +- init.h | 90 +- keymap.c | 146 +- keymap.h | 2 + lib.c | 27 +- lib.h | 7 +- m4/Makefile.in | 7 +- main.c | 12 +- mbox.c | 76 +- mbyte.c | 6 +- md5.c | 2 +- menu.c | 1 - mh.c | 13 +- mime.h | 3 +- mutt.h | 23 +- mutt_sasl.c | 2 +- mutt_ssl.c | 113 +- mutt_ssl_gnutls.c | 4 +- muttlib.c | 229 +- mx.c | 27 +- mx.h | 11 +- pager.c | 55 +- pattern.c | 28 +- pgp.c | 144 +- pgpewrap.c | 3 + pgpkey.c | 4 +- pgpmicalg.c | 2 +- po/bg.gmo | Bin 71271 -> 71145 bytes po/bg.po | 1347 +- po/ca.gmo | Bin 103870 -> 104568 bytes po/ca.po | 1464 +- po/cs.gmo | Bin 100815 -> 102270 bytes po/cs.po | 1438 +- po/da.gmo | Bin 69383 -> 69095 bytes po/da.po | 1348 +- po/de.gmo | Bin 95475 -> 99612 bytes po/de.po | 1730 +-- po/el.gmo | Bin 75781 -> 75492 bytes po/el.po | 1364 +- po/eo.gmo | Bin 91716 -> 90528 bytes po/eo.po | 1361 +- po/es.gmo | Bin 60123 -> 60092 bytes po/es.po | 1346 +- po/et.gmo | Bin 64019 -> 63991 bytes po/et.po | 1347 +- po/eu.gmo | Bin 91835 -> 90627 bytes po/eu.po | 1360 +- po/fr.gmo | Bin 102602 -> 104056 bytes po/fr.po | 1418 +- po/ga.gmo | Bin 92192 -> 91299 bytes po/ga.po | 1349 +- po/gl.gmo | Bin 58749 -> 58720 bytes po/gl.po | 1347 +- po/hu.gmo | Bin 68510 -> 68394 bytes po/hu.po | 1348 +- po/id.gmo | Bin 90755 -> 89557 bytes po/id.po | 1362 +- po/it.gmo | Bin 71020 -> 70990 bytes po/it.po | 1349 +- po/ja.gmo | Bin 91270 -> 89246 bytes po/ja.po | 1359 +- po/ko.gmo | Bin 62841 -> 62814 bytes po/ko.po | 1346 +- po/lt.gmo | Bin 55663 -> 55576 bytes po/lt.po | 1347 +- po/mutt.pot | 1328 +- po/nl.gmo | Bin 99225 -> 97169 bytes po/nl.po | 1361 +- po/pl.gmo | Bin 93296 -> 92101 bytes po/pl.po | 1362 +- po/pt_BR.gmo | Bin 52752 -> 52725 bytes po/pt_BR.po | 1347 +- po/ru.gmo | Bin 98258 -> 99122 bytes po/ru.po | 1429 +- po/sk.gmo | Bin 41241 -> 41210 bytes po/sk.po | 1347 +- po/sv.gmo | Bin 93215 -> 92055 bytes po/sv.po | 1385 +- po/tr.gmo | Bin 90654 -> 89948 bytes po/tr.po | 1347 +- po/uk.gmo | Bin 60700 -> 60661 bytes po/uk.po | 1344 +- po/zh_CN.gmo | Bin 40226 -> 92507 bytes po/zh_CN.po | 4439 +++--- po/zh_TW.gmo | Bin 58053 -> 57976 bytes po/zh_TW.po | 1350 +- pop.c | 4 +- pop_auth.c | 2 +- pop_lib.c | 14 +- postpone.c | 1 + protos.h | 21 +- recvattach.c | 17 +- recvcmd.c | 9 +- rfc1524.c | 9 +- rfc2047.c | 36 +- rfc3676.c | 40 +- rfc822.c | 68 +- rfc822.h | 6 +- safe_asprintf.c | 95 + send.c | 183 +- sendlib.c | 204 +- smime.c | 90 +- smime_keys.pl | 2 +- smtp.c | 10 +- snprintf.c | 1 + status.c | 12 +- thread.c | 3 + url.c | 165 +- 184 files changed, 46538 insertions(+), 51338 deletions(-) create mode 100644 doc/smime_keys.man create mode 100644 group.h create mode 100644 safe_asprintf.c diff --git a/ChangeLog b/ChangeLog index 3d0ed82..c328e37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,1154 @@ -2009-06-14 10:43 -0700 Brendan Cully (a18e286f4365) +2010-09-15 10:05 -0700 Michael Elkins (54e3139a0362) + + * safe_asprintf.c: suppress check_sec errors + +2010-09-13 17:25 -0700 Michael Elkins (20b2d496349f) + + * init.h: make $mail_check_recent set by default + +2010-09-13 19:00 +0100 Emanuele Giaquinta (fea3860ff672) + + * imap/command.c: Restore the previous behaviour of checking for new + messages in imap folders when mail_check_recent is set. + +2010-09-12 19:54 -0700 Michael Elkins (a51df78218e8) + + * buffy.c, buffy.h, imap/command.c, init.h, mbox.c, mutt.h: add + $mail_check_recent boolean to control whether Mutt will notify about + all new mail, or just new mail received since the last visit to a + mailbox + + closes #3271 + + partly addresses #3310 + + * smime.c: fix crash when index contains 0 keys + +2010-09-11 07:34 -0700 Michael Elkins (0f962f1a6bbb) + + * send.c: Allow setting message security in send2-hook + + This patch delays checking the message security options until after + the user has an initial chance to edit the message. This allows the + security options to be set in a send2-hook when using $edit_headers. + Without this patch, the user has no way of automatically setting + security based on recipients since the to/cc prompts are bypassed. + + The other change in behavior is if the user happened to use a + send2-hook to see if the message had security applied *prior* to + editing the message, that no longer works. + + * keymap.c, keymap.h, main.c: support for ncurses extension allowing + binding to function keys with modifiers + + * keymap.c: allow octal codes with more than three digits + + * crypt-gpgme.c, mime.h, pgp.c, recvattach.c, sendlib.c: add DISPNONE + to mean no preferred Content-Disposition; make pgp-signature parts + DISPNONE for multipart/signed + + * recvcmd.c: fix problem with reply-hook not working when a + message/rfc822 attachment is selected + + * rfc2047.c: more lenient RFC2047 decoding: accept illegal spaces and + bare question marks in encoded words + + * curs_main.c, mx.c: fix crash when new mail is received during IMAP + IDLE + + closes #3335 + +2010-08-25 00:30 +0100 Emanuele Giaquinta (5302767aa6aa) + + * rfc2047.c: Use mutt_substrdup in rfc2047_decode_word + +2010-08-24 16:40 -0700 Michael Elkins (92b02f77e780) + + * rfc2047.c: detect failure to decode word and copy raw string + instead; avoids calling strlen() on uninitialized memory + + closes #2923 + +2010-08-24 18:39 +0100 Emanuele Giaquinta (ebd4beafe5eb) + + * mutt_ssl.c: Fix typo. + + * browser.c, hook.c, init.c, menu.c, mutt_ssl_gnutls.c, pager.c: Do + not call regfree if regcomp fails. The content of the regex_t + structure is undefined in this case. + + * curs_lib.c, mutt_ssl_gnutls.c: use REGCOMP() macro + +2010-08-24 10:03 -0700 Michael Elkins (5d59c8b737ba) + + * init.c: add REG_ICASE accidentally removed in changeset 1a35f096c8cb + + * muttlib.c: do not print debug message on ENOENT + +2010-08-14 09:18 -0700 Michael Elkins (04fd8ddea579) + + * url.c: avoid c99 syntax for backwards compat + +2010-08-06 21:52 +0200 Matthias Andree (24a7b1aa2e55) + + * buffy.c: Fix comparison signedness warnings. + +2010-08-12 16:04 -0700 Michael Elkins (ced5d3dca974) + + * imap/util.c: Fix bug in imap_keepalive() which erroneously free + Context when the IMAP connection is shut down by the server. + + Closes #3410 + + * url.c: url_parse_mailto should return 0 on success + + fix memory leak errors when unable to parse mailto: URL + + closes #3441 + + * mh.c: always update message body size when parsing a maildir message + + * safe_asprintf.c: call va_end() even when vasprintf returns <0 + +2010-08-09 20:48 -0700 Michael Elkins (6572e8bcd723) + + * Makefile.am, imap/message.c, lib.c, lib.h, safe_asprintf.c: rename + mutt_sprintf() to safe_asprintf() to match the GNU extension that + performs a similar task + +2010-08-09 10:27 -0700 Vincent Lefevre (e86ee9991dc3) + + * postpone.c: In postpone.c, function mutt_num_postponed, the old + {{{OldPostponed}}} is never freed. + + closes #3442 + +2010-08-09 09:38 -0700 Michael Elkins (8051fc8b631c) + + * send.c: clear the real name when $reverse_realname is unset and a + match is hit so that $realname can be set in a reply- or send-hook + + closes #3427 + + * doc/manual.xml.head: fix example of mailto: use on the command line + + * pager.c: fix buffer underrun when processing ANSI escape sequences + + closes #3371 + +2010-08-08 12:29 -0700 Michael Elkins (4dcf19c58139) + + * doc/manual.xml.head, doc/mutt.man: document support for mailto: URLs + on the command line + + closes #3400 + + * imap/message.c: avoid error when the user has requested many extra + headers via IMAP + + closes #3435 + + * lib.c, lib.h: add a malloc+sprintf combo function + +2010-08-08 10:21 -0700 Fabian Groffen (d4d703e21cdd) + + * pattern.c: fix crash in limit when user enters invalid regexp + + closes #3417 + +2010-08-07 06:44 -0700 Michael Elkins (cc881d855f05) + + * mutt_ssl.c: Fix comparison signedness warnings + + * pop_lib.c: add comment about safety of cast + +2010-08-06 21:58 +0200 Matthias Andree (55f50b2db1f8) + + * pop_lib.c: Fix comparison signedness warning. + + * status.c: Fix signedness warning. + + * .hgignore: Ignore backup files ending in a tilde character. + + * url.c: Fix comparison signedness warnings. + + * gnupgparse.c, pop_auth.c: Fix comparison signedness warnings. + + * lib.h: Resolve if/else empty body ambiguity/warnings when compiling + without DEBUG. + +2010-08-06 17:08 -0700 Michael Elkins (5b15d4d96277) + + * configure.ac, init.c, protos.h: detect availablity of 'long long' + + cast time_t to 'long long' prior to bitshifting since it can be a + float value according to POSIX.1-2008 + + closes #3439 + +2010-08-06 21:22 +0200 Matthias Andree (bf13863e682e) + + * md5.c: Drop declaration for unused argv/argc parameters. + + Fixes GCC warning with -Wextra. + +2010-08-06 13:11 -0700 Michael Elkins (998ca956b41b) + + * init.c, muttlib.c: use a 64-bit random value in temporary filenames. + + closes #3158 + + * browser.c: avoid using C99 bool + + * browser.c, init.h: add %D format string to $folder_format to expand + the time based on $date_format. + + properly set the locale for LC_TIME prior to calling strftime() + closes #1734 closes #3406 + + * mutt_ssl.c: fix compiler warning about wrong type for + SslSessionCerts + +2010-08-06 09:58 +0200 Matthias Andree (473fbe29f626) + + * mutt_ssl.c: Unbreak X.509 SubjAltName checks, + + regression in 6016:dc09812e63a3 that calls strlen on an SSL sk + rather than its string payload. + + closes #3426 + +2010-08-06 07:12 -0700 Michael Elkins (4ae33a8a1391) + + * configure.ac: properly set _XOPEN_SOURCE to 600 (POSIX.1-2004) when + detecting th wc*() functions + + closes #3341 + +2010-08-05 21:57 -0700 Michael Elkins (bc5fb152e2ba) + + * mbox.c: when parsing From_ lines in mmdf/mbox, the TZ should be + computed based on the time in the string rather than the current + time, otherwise DST issues cause the computed time to be wrong. + + closes #2177 + + * thread.c: explanatory comments + +2010-08-05 17:03 -0700 andreas (0666d9588eac) + + * curs_main.c, functions.h: do not leave pager when changing sort + order. + + closes #2143 + +2010-08-05 16:47 -0700 Michael Elkins (57d4b3839172) + + * curs_main.c: do not leave pager when using read-thread and read- + subthread + + closes #2137 + +2010-08-04 17:04 -0700 Petr Písař (59ca5d7b1656) + + * ChangeLog, po/cs.po: Updated Czech translation + +2010-08-04 06:37 -0700 Vincent Lefevre (a7f05f29d9bc) + + * po/fr.po: updated French translation + +2010-08-03 10:10 -0700 Michael Elkins (2c42f4760c8f) + + * browser.c: add locale.h for compililng with -std=c99 + + * main.c: adjust help for -a to make it clearer that -- is required + terminator + +2010-07-31 08:21 -0700 Michael Elkins (7cd85c18bfaf) + + * muttlib.c: Fix buffer underflow in expansion of format pipes. Add + better error detection. + + Closes #3432. + +2010-07-18 14:24 -0700 Michael Elkins (1a35f096c8cb) + + * init.c: use REGCOMP() macro + +2010-07-18 22:09 +0100 Emanuele Giaquinta (d0e0d174d620) + + * init.c: Skip 'attachments' directive if minor type is not a valid + regexp + +2010-07-09 11:07 -0700 Joel Dahl (6b13e8319c1f) + + * po/sv.po: fix misspelling in Swedish translation + +2010-05-18 08:39 -0700 Michael Elkins (29e37994a536) + + * send.c: Consider any negative return value from send_message() to be + an error and allow the user to resend. + + Closes #3411. + +2010-04-24 16:10 -0700 Brendan Cully (4cd2daafd03b) + + * mutt_ssl.c: openssl: only call SSL_shutdown during clean + shutdown (closes #3407) + +2010-04-22 09:14 -0700 Vincent Lefevre (6ebdfd09abc1) + + * po/fr.po: updated French translation + +2010-04-14 15:47 -0700 Michael Elkins (15b9d6f3284f) + + * pgp.c: remove toggle and replace with format in pgp-menu + +2010-04-12 15:13 -0500 David Champion (41a46373ddd9) + + * compose.c: Improve clarity/uniformity in compose menu's crypto + display + + Incorporates feedback on "Security: None" key hints. + +2010-04-13 06:49 -0700 Michael Elkins (4d798ee2898e) + + * muttlib.c: fix bug handling wide pad char in soft-fill mode + +2010-04-11 20:00 -0700 Michael Elkins (2cd62f40d840) + + * compose.c: increase size of buffer used for displaying addresses in + the compose menu to avoid truncating on widescreen displays + + * curs_lib.c: clear prompt when user cancels with ^G from a yes/no + prompt + + * muttlib.c: Fix bug in soft-fill (%*) in $index_format not accounting + for 'set arrow_cursor' + + * pgp.c: Remove the (i) option from the PGP-menu when encryption or + signing is not yet selected. The toggle between PGP/MIME and + Traditional doesn't make sense unless some type of security has been + requested. + + Closes #3402. + +2010-04-06 09:47 -0700 Michael Elkins (889aa698cc49) + + * configure.ac, muttlib.c: fix for compiling Mutt with clang: check + for wchar_h prior to wctype_h in check for wc funcs + +2010-04-05 11:12 -0700 Michael Elkins (844174efa648) + + * doc/manual.xml.head: [doc] Remove bogus -group parameter from + unlists and unsubscribe commands; add links to address group section + for context. + +2010-04-03 20:34 -0700 Michael Elkins (cf97505addf8) + + * init.c: prevent user from setting $charset to an empty string since + other code requires it to be set to a valid string + + closes #3326 + + * pager.c: allow regexps to match on continuation header lines in + 'color header' commands. + + closes #3373 + + * pattern.c: Fix crash on invalid regexp in search string due to + uninitialized BUFFER variable. + + Closes #3401 + +2010-04-01 10:10 -0700 Simon Ruderich (b9baa0234846) + + * attach.c, commands.c, filter.c, muttlib.c, send.c: fix comment typos + +2010-04-01 09:59 -0700 Michael Elkins (96ed7cdacdc6) + + * init.h: Improve documentation for $query_command to note that Mutt + automatically adds quotes according to shell quoting rules (thx: + Simon Ruderich). + + * doc/manual.xml.head: Clarify the documentation on what the line- + editor is (thx: Simon Ruderich) + +2010-03-31 08:50 -0700 Michael Elkins (7e9e31b1bd7b) + + * muttlib.c: avoid buffer overflow when expanding the format string + associated with a 'spam' command. + + closes #3397 + +2010-03-23 16:03 -0700 Michael Elkins (fe29d691deff) + + * doc/muttrc.man.head: remove errant commands in secton on setting + alternates + +2010-03-22 22:16 -0700 Brendan Cully (69e9a1a0ba2f) + + * sendlib.c: Fix a format string warning + +2010-03-22 20:02 -0700 Marcel Telka (f544730656c1) + + * compose.c: redraw entire screen when exiting editor after re-editing + the message body in the send menu. + + closes #3393. + +2010-03-21 09:52 -0700 Michael Elkins (0a29e3f4f4b9) + + * sendlib.c: Do not assume whitespace follows the colon in a header + field. + + Closes #3385. + +2010-03-08 15:13 -0800 Brendan Cully (ad6d799951cb) + + * configure.ac: Comment about search libsasl for sasl2 functions + +2010-03-08 14:04 -0600 Will Fiveash (b92b9c6a1c85) + + * configure.ac: OpenSolaris sasl fix for configure.ac + +2010-03-08 15:00 -0800 Brendan Cully (05cec973f0d9) + + * pattern.c: When regexp compilation fails, report actual pattern + along with error. + + * muttlib.c: mutt_buffer_printf: NULL dptr means use data + + * pattern.c: If regcomp fails, assume rx has not been allocated. Fixes + a core dump for save-hook '~f foo\.bar@(something|other)\.com' =foo. + +2010-03-02 11:31 -0800 TAKAHASHI Tamotsu (fec2720ff6ef) + + * rfc822.c: Fix #2014. Thanks to Vincent Lefevre for help + with this one. + +2010-03-02 11:16 -0800 Brendan Cully (41cf44ddbb4c) + + * copy.c: Fix thinko in [cc02f079b1b9] + +2010-03-01 22:40 -0800 Brendan Cully (cc02f079b1b9) + + * copy.c: Guard dequote with NULL check on personal field + + * copy.c, rfc822.c, rfc822.h: Another attempt to dequote + RFC2047-encoded address comments (see #2014) + + * rfc822.c: Backed out changeset 2a4ca6917fd0. It is incompatible with + $assumed_charset (see #2014). + +2010-02-28 23:03 -0800 Brendan Cully (2a4ca6917fd0) + + * rfc822.c: RFC-2047 decode address text before dequoting it (see + #2014) + + * doc/manual.xml.head: Fix next-unread-mailbox name in + documentation. Closes #3319. + +2010-02-28 17:23 -0800 Antonio Radici (25459cbb132a) + + * po/de.po: Fix German translation of "No undeleted messages." (closes + #3372) + + * pop_lib.c: pop: allow user-specified port to override + default in URL. Closes #3322. + +2010-02-28 17:00 -0800 ludwig (2c78b28027cc) + + * crypt-gpgme.c: GPGME: Sender verification should be canse- + insensitive for domain names. Closes #2180 + +2010-02-26 18:18 -0800 Brendan Cully (40eca68c394a) + + * UPDATING, init.h: Make $thorough_search default to yes + (closes #3386) + +2010-02-23 12:42 -0800 Brendan Cully (57124ea5592e) + + * commands.c: Don't use freed ctx.path when updating utime of target + mailbox in save-message. Thanks to Sean Boudreau for the bug report. + +2010-02-22 23:01 -0800 Vincent Lefevre (f17302c10229) + + * po/fr.po: Updated French translation. + +2010-02-21 13:16 -0800 Brendan Cully (a6fddecdc5f5) + + * curs_lib.c: Make mutt_yesorno use mutt_message to print query. + Closes #3352. + +2010-02-20 21:56 -0800 Gregory Shapiro (f723e07c8e6d) + + * OPS, UPDATING, curs_main.c, functions.h: Add imap-logout- + all to log out of all IMAP connections. Closes #2880. + +2010-02-17 00:47 -0800 Simon Ruderich (260d39279161) + + * doc/manual.xml.head: Document 'n' and 'o' flags in index + + * doc/devel-notes.txt, doc/muttrc.man.head, init.h, + rfc1524.c: Spelling fixes + +2010-02-10 23:29 -0800 Brendan Cully (b7ec848af36b) + + * doc/manual.xml.head: Fix a typo (closes #3379) + +2010-02-01 23:40 -0800 Antonio Radici (e9965b78e92d) + + * po/sv.po: The Swedish translation has a suboptimal + translation of the word "Bad" in several places. The proposed patch + substitutes DÃ¥lig (which implies bad "as in quality", and not bad + "as in error") for Felaktig (erroneous). + + Closes #3370. + + * init.h: Small fix to the muttrc manpage. Closes #3374 + +2010-01-13 19:12 +0100 Matthias Andree (e2c60de29015) + + * configure.ac: Fix hcache build on systems with $(EXEEXT), include it + in mutt_md5. + +2009-12-29 00:33 -0500 Brendan Cully (31881f38ca1e) + + * curs_lib.c: Hack mutt_wstr_trunc to treat M_TREE characters as 1 + cell. Closes #3364. + +2009-12-28 22:13 -0500 Brendan Cully (359de549b2d1) + + * doc/manual.xml.head: Remove spurious quotes from query_command + example. Closes #3365. + +2009-12-14 10:24 -0800 Brendan Cully (736b6af3c5f1) + + * rfc1524.c: Fix off-by-one errors in mailcap parser. + Closes #3362 + +2009-12-10 22:52 -0800 Daniel Jacobowitz (b7d2cb7c7ce1) + + * hcache.c: Do not store header color in hcache. If the color + directive is removed from muttrc, the cached value from the last + directive would otherwise still be in effect. + +2009-12-07 23:08 -0800 Patrick Welche (1cf34ea1f128) + + * mutt_ssl.c: STACK* is not defined with newer SSL, use + STACK_OF instead. Closes #3356. + +2009-12-07 22:46 -0800 Peter Rosin (fc9563de3dcb) + + * snprintf.c: Output %p as unsigned in the bundled snprintf + +2009-11-14 14:31 -0800 Brendan Cully (6928f522ac48) + + * curs_main.c: Back out e67f4c347bb4. + + I could not reproduce the problem, and the change makes it + impossible to change to a real folder when no folder is currently + open. + +2009-10-28 23:03 -0700 Brendan Cully (89fb586edda2) + + * sendlib.c: Unfold headers to wrap length in pager, when weed is set. + + From Rocco's patch queue. + +2009-09-22 23:29 -0700 Antonio Radici (5037c59a589e) + + * po/it.po: Correct Italian translation of y/n/a prompt. + Closes #3336 + +2009-08-27 22:10 -0700 Petr Písař (605559e4f88f) + + * po/cs.po: Updated Czech translation. + +2009-08-20 11:34 +0200 René Clerc (6b48ff4e69a3) + + * doc/manual.xml.head: No-brain documentation typo fix + +2009-08-20 11:33 +0200 Rocco Rutte (e196cfc00105) + + * doc/manual.xml.head: Backed out changeset c9dd93b09ce7 + +2009-08-20 11:25 +0200 René Clerc (c9dd93b09ce7) + + * doc/manual.xml.head: No-brain documentation typo fix Hi Rocco, + + Attached a patch for the documentation that fixes a small typo I + stumbled upon. If you'd rather have me opening a trac ticket, + please say so; since this is such a no-brainer I figured I'd e-mail + you directly. + +2009-08-17 17:07 +0200 Rocco Rutte (d0fce0eec0b3) + + * doc/manual.xml.head, doc/muttrc.man.head, init.h: Doc: fix more + typos + + * doc/Makefile.am, doc/mutt.pwl: Doc: fix aspell calls, add + custom mutt-only wordlist + + * curs_main.c: Require already opened folder when using templates for + change-folder. + + For example, start with -y and type a wrong IMAP password so that no + mailbox is open. Trying to change folders resulted in a crash. + +2009-08-14 21:29 +0200 Rocco Rutte (6a08a5244d60) + + * pattern.c: Clear last search pattern if it's invalid. + Closes #3315. + + We keep both, the string version and compiled version around for + search-next; however, in case of parsing errors we dropped only the + compiled version and not the string one making the code attempting + to perform a search using a NULL pattern. + + * pattern.c: Bail on missing pattern modifiers at end of pattern. + Closes #3314. + +2009-08-13 23:49 +0200 Rocco Rutte (f8d50e968853) + + * doc/Muttrc.head, doc/manual.xml.head, init.h: Docs: fix + typos/style + +2009-08-11 12:22 -0700 Tomas Hoger (dc09812e63a3) + + * mutt_ssl.c: Catch SSL null prefix attach (openssl) + +2009-08-09 14:45 -0700 Brendan Cully (002b4676d502) + + * buffy.c: Add buffy_new and buffy_free abstractions. + +2009-08-09 14:53 +0200 Christian Ebert (0153dbc12dc4) + + * doc/manual.xml.head: manual: fix wrong spell checker assumptions + +2009-08-09 14:35 +0200 Rocco Rutte (59b4c73e7254) + + * doc/manual.xml.head: Manual: Fix typos, consequently use + en_US spelling + +2009-08-08 22:50 -0700 Brendan Cully (d4ea7f571f10) + + * buffy.c: Split out mailbox-specific code in mutt_buffy_check + + * buffy.c, muttlib.c, mx.c, mx.h, status.c: Unconditionally define + M_IMAP, M_POP. These aren't bloat, and not having them creates a lot + of #ifdef clutter. + + * curs_lib.c: Abort prompt on ^C, as was the case prior to + 12a6de725483 + +2009-08-04 10:47 -0700 Vincent Lefevre (15a695678b7b) + + * po/fr.po: Updated French translation. + +2009-08-04 12:34 +0200 Rocco Rutte (25c2d70f2f00) + + * doc/manual.xml.head: Manual: Add some words of warning to really + remove IRT header when intended + + * doc/manual.xml.head: Manual: Put mailbox shortcuts into + table for readability + + * doc/manual.xml.head: Manual: Fix docs for push/exec + +2009-08-04 12:08 +0200 Johan D (14bb498c6a1c) + + * mh.c: Fix MH parsing, fixes [0698e8195545]. Closes #3312 + +2009-08-01 15:16 +0200 Rocco Rutte (29727d19634a) + + * doc/manual.xml.head: Manual: use full names for é and + è entities. Closes #3286. + + This is necessary because we want to install a us-ascii manual.txt + that would contain only "e" instead of accented characters. + +2009-07-30 17:56 +0200 Rocco Rutte (4a572310c3b5) + + * main.c: Fix mutt -h output for -a/-- options + +2009-07-29 13:26 -0700 Brendan Cully (a2a4286491b4) + + * hcache.c, hcache.h, imap/util.c: Harmonize hcache uidvalidity size + to unsigned int (per IMAP RFC). Closes #3296. + +2009-07-28 23:16 +0200 Rocco Rutte (153eac9e03e7) + + * Makefile.am: Add group.h to distribution + + * group.c, group.h, init.c, rfc822.c: Fix some issues with + ungroup [...] * + +2009-07-27 21:14 -0700 Kees Cook (2fc9348684fe) + + * mh.c: Properly propagate mh_read_sequences result. Closes #3308. + +2009-07-27 20:49 -0700 Brendan Cully (5c076ed18883) + + * configure.ac: Do not overwrite docdir unless --with- + docdir was explicitly given. This allows --docdir from autoconf + 2.60+ to work, though if given --with-docdir will silently override + --docdir. Closes #3282. + +2009-07-24 14:30 +0200 Rocco Rutte (86e066a206ac) + + * po/de.po: Update German translation + + * init.c: Fix check_sec.sh warning + +2009-07-23 23:36 -0400 Aron Griffis (0ee27568ad09) + + * init.c: fix :reset to work with empty strings + + Signed-off-by: Aron Griffis + +2009-07-23 23:32 -0700 Vincent Lefevre (223020f50cb7) + + * po/fr.po: Updated French translation. + +2009-07-23 23:51 +0200 Matthias Andree (1e77b368ef55) + + * charset.h, rfc2047.c: Use proper prototype for + mutt_get_default_charset(), fix fallout. + + * bcache.c, charset.c: Fix two warnings "the address of 'foo' will + always evaluate as 'true'". + +2009-07-23 17:28 +0200 Rocco Rutte (1597c2074a52) + + * doc/manual.xml.head: Manual: better document what address + groups are (for) + + * group.c, group.h, init.c, init.h, pattern.c, protos.h, rfc822.c, + rfc822.h: Implement ungroup command. Closes #3304. + + * init.c, mutt.h, muttlib.c: Move remove_from_rx_list() to muttlib.c, + name it mutt_remove_from_rx_list() + +2009-07-22 15:25 +0200 Fabian Groffen (d41e043fa775) + + * keymap.c: Use CRYPT_BACKEND_GPGME instead of non-existent + HAVE_GPGME + +2009-07-22 14:43 +0200 kees (848f08512bf3) + + * hcache.c, rfc822.h: Properly restore addresses from hcache using + rfc822_new_address(). Closes #3302. + + * mh.c: Don't leak mhs flags in mh_buffy(). Closes #3303. + +2009-07-17 17:57 -0400 Aron Griffis (a3c4b605cfad) + + * UPDATING: add batch mode send-hooks note to UPDATING + +2009-07-14 20:25 -0700 Aron Griffis (084fb086a0e7) + + * send.c: Make send-hooks work for batch mode. Closes + #3219. + + Handle SENDBATCH inline with the normal sending code, instead of + handling it separately. This allows send-hooks to run, along with + removing a number of unnecessarily lines of code. + +2009-07-11 14:52 +0200 Rocco Rutte (6f942afe60b5) + + * charset.c, mbyte.c: Recognize charset extensions, see #3150. + + With utf-8//TRANSLIT, we internally didn't recognize it as utf-8. + This leads to badly broken behaviour if --without-wc-funcs is used + for some reason. In that case, if we have utf-8 as charset, we + implement our own wide char functions; for all other charsets, we + use the system single-byte locale functions. And using these with + utf-8 is broken. + + * curs_lib.c: Render blanks to spaces in index, fixes + [298194c414f0] + + wcwidth() returns -1 so 'foobar' was rendered to 'foobar', + and now to 'foo bar'. Closes #3270 again. + +2009-07-08 13:37 +0200 Rocco Rutte (f22b71d8005a) + + * mbyte.c: Fix compiler warning + +2009-07-07 15:03 +0200 Rocco Rutte (d5e03a46518c) + + * TODO: Update TODO + +2009-07-07 10:49 +0200 Matthias Andree (cc4d6044b31e) + + * INSTALL: GNU-make based VPATH builds work. + +2009-07-07 13:16 +0200 Rocco Rutte (f161c2f00d84) + + * UPDATING, bcache.c, doc/manual.xml.head, hcache.c, + muttlib.c, protos.h: Make hcache+bcache paths always UTF-8. Closes + #3284. + + * UPDATING, globals.h, init.h, sendlib.c: Add $wrap_headers. Closes + #3135 + + * doc/manual.xml.head: Manual: mention terminal setup for + charsets, more unicode pros. + + Closes #3292. + +2009-07-06 15:28 +0200 Rocco Rutte (ccab6c56b557) + + * doc/manual.xml.head: Manual: Add a note about when/why to use utf-8 + +2009-07-05 18:36 -0700 Brendan Cully (118b8fef8aae) + + * buffy.c, buffy.h, mx.c: Suppress new mail notification + from mailbox just left. Closes #3290. + +2009-07-02 20:42 +0200 Rocco Rutte (042f2ce0b870) + + * doc/manual.xml.head: Manual: minor fixes + + * doc/manual.xml.head, doc/mutt.css: Manual: Render + comments in examples a lighter for readability + + * doc/manual.xml.head, doc/manual.xml.tail: Manual: Reformat + paragraphs, fix ˜ -> ~ breakage + + * doc/manual.xml.head: Manual: rework MIME chapter a bit + + * doc/gen-map-doc, doc/manual.xml.tail, functions.h: Manual: Generate + more pretty titles/ids for key binding tables + + * doc/manual.xml.head: Manual: fix supported version + numbers for mixmaster + +2009-07-02 00:06 -0700 Brendan Cully (029ba140fb48) + + * curs_main.c: Handle keepalive failure when changing folders. There + are probably many other places where this kind of thing could happen + though. See #3028. + +2009-07-01 18:13 -0700 Rocco Rutte (f6c6066a5925) + + * account.c, mutt_sasl.c, smtp.c: Make getuser/pass abort + if input is required in batch mode. Replaces [0a3de4d9a009]. See + #3289. + + * doc/manual.xml.head: Manual: Add detailed section on charset + handling + + * smtp.c: SMTP: use $smtp_pass in batch mode. Closes #3289. + + mutt_account_getpass() copying the password from $smtp_pass into the + account structure is only called from the SASL callback we only use + if we're sure we don't need curses (i.e. have the pass already). + +2009-06-30 17:32 +0200 Rocco Rutte (f4baa2f1251a) + + * pgpewrap.c: Add missing config.h include to pgpewrap.c + + It technically doesn't need it, but pgpewrap should be rebuilt after + configure ran, too. + + * doc/Makefile.am: Manual: Run lynx with --display_charset + =us-ascii, see #3286. + +2009-06-29 18:20 +0000 Rocco Rutte (03c65df651e0) + + * UPDATING, doc/manual.xml.head: Manual: Move new mail detection into + its own section + + This also updates some parts of docs and adds missing ones. It also + adds a note about the recent changes, also to UPDATING. + +2009-06-29 18:03 +0200 Rocco Rutte (d3a7e0334e5d) + + * url.c, url.h: Revert URL path encoding for now + + It breaks gmail url display and makes bcache use different paths. + Still we need to think about whether we want to allow any character + in bcache paths (possibly multibyte, possibly depending on + $charset). + +2009-06-28 20:49 -0700 Brendan Cully (298194c414f0) + + * configure.ac, curs_lib.c: Allow tabs in index subject. Closes #3270. + + * imap/util.c: Allow ImapDelimChars to be unset + + * mutt.h: Rename struct thread to struct mutt_thread. Closes #3279. + + * imap/command.c: Not being able to start an IMAP command + is a fatal error. Closes #3155. + + * imap/auth_login.c: IMAP LOGIN does not support separate user and + login accounts. Use the user account for both. Closes #3240. + +2009-06-28 22:40 +0200 Rocco Rutte (71a84cf22c42) + + * url.c, url.h: Fix URL parser to encode paths + +2009-06-28 15:42 +0200 Deng Xiyue (fe688db8099a) + + * po/zh_CN.po: Update Simplified Chinese translation. Closes #3281. + +2009-06-27 17:07 +0200 Rocco Rutte (7ca8d09f7d2c) + + * hg-commit: hg-commit: drop changelog entries from hg log + + * doc/makedoc.c, doc/manual.xml.head: Manual: stop using DocBook + entities mapping to ascii chars + + There's no real benefit, it only makes reading/writing the manual + harder. All entities that potentially map to non-ascii characters + (&mdash, ä, etc.) are left so that manual.xml remains pure + ascii. + +2009-06-26 21:47 -0700 Brendan Cully (b2b97c7a2ae6) + + * imap/imap_private.h, imap/message.c, imap/util.c: Set + internaldate of messages appended to IMAP mailboxes + +2009-06-26 20:27 +0200 Rocco Rutte (156e6d6e34fc) + + * doc/manual.xml.head: Manual: try to explain that and why + copiousoutput should come last + + * po/de.po: Update German translation + +2009-06-25 21:46 +0200 Rocco Rutte (c5d0252e8f72) + + * rfc3676.c: Fix f=f corner case with DelSp=yes abuse + + * sendlib.c: header folding: treat From_ specially, never wrap on + sending side + + * sendlib.c: Add Date: header to postponed messages + + * sendlib.c: Only add Status: header (fcc/postpone) when + saving to mbox/mmdf + + * compose.c: Treat messages written with as fcc, not + postponed. + +2009-06-23 10:13 -0700 Vincent Lefevre (bc2463863c15) + + * po/fr.po: Updated French translation. + +2009-06-23 16:56 +0200 Rocco Rutte (d152033cf967) + + * doc/manual.xml.head: Manual: Simply type conversion section wording. + + * Makefile.am, configure.ac: Don't build hcversion.h and mutt_md5 + without hcache + + * handler.c, mutt.h, muttlib.c: Implement state_putws() and + state_putwc(), see #3148. + + This is needed to unbreak text/enriched rendering on Linux. + + * commands.c: Only use keypad() when curses is running + +2009-06-23 00:28 -0700 Vincent Lefevre (642987450d83) + + * curs_lib.c: Only beep when displaying error messages (unbreaks + [54bc1ef602e7]) + +2009-06-23 00:20 -0700 Brendan Cully (f5849c72a274) + + * crypt-gpgme.c: Update crypt-gpgme for mutt_mktemp change + in [ed7eb5de7536] + +2009-06-22 17:36 +0200 Rocco Rutte (54bc1ef602e7) + + * curs_lib.c: Make mutt_curses_(error|message) format message to COLS + chars. Closes #3278. + + While I'm at it, fold both functions into one. + +2009-06-22 17:21 +0200 Alexey Tourbin (e378bbdc3f0f) + + * smime_keys.pl: smime_keys: use Time::Local module. Closes #3277. + +2009-06-22 17:17 +0200 Rocco Rutte (4899f140ec25) + + * mbyte.c: Fix included iswupper(). Closes #3276. + + * lib.c: Catch range errors when converting to long. + +2009-06-21 21:57 +0200 Rocco Rutte (ed7eb5de7536) + + * attach.c, commands.c, crypt.c, editmsg.c, handler.c, headers.c, + help.c, history.c, imap/message.c, main.c, mbox.c, muttlib.c, mx.c, + pattern.c, pgp.c, pgpkey.c, pgpmicalg.c, pop.c, protos.h, + recvattach.c, recvcmd.c, rfc3676.c, send.c, sendlib.c, smime.c: Pass + buffer size to mutt_mktemp() + + * handler.c, rfc3676.c: Port f=f and text/plain handlers to + mutt_read_line() + + * lib.c: mutt_read_line(): make line counting ptr optional + + * sendlib.c: Silently drop headers not in "key: value" + format. Fixes out-of-memory exits. + +2009-06-20 23:09 +0200 Rocco Rutte (6447ebe80797) + + * handler.c: f=f: Don't kill signature separator when stripping + trailing spaces. Closes #3275. + + * curs_main.c: Disallow breaking threads for messages not part of + a thread + +2009-06-20 15:22 +0200 Rocco Rutte (580ab0256c49) + + * doc/manual.xml.head: Manual: Clarify and extend variable type + conversion section + +2009-06-19 19:56 -0400 Aron Griffis (ee3d174297bb) + + * rfc822.c: remove bogus FREE + + It's impossible for cur->personal to be non-NULL at this point, + since cur was calloc'd just a couple lines prior. + + Signed-off-by: Aron Griffis + +2009-06-19 22:49 +0200 Rocco Rutte (9ae13dedb5ed) + + * mbox.c, mx.c, mx.h: Fixup atime for mbox/mmdf also when mailbox is + unchanged but has new mail. See #1362. + + * mbox.c: Don't mangle atime/mtime for mbox folders without new + mail upon sync. Closes #1362, #3271. + + * doc/manual.xml.head: Manual: Add note and example for type + conversions with my_vars + + * sendlib.c: Enforce 998 char length limit on header lines when + sending. + +2009-06-18 15:06 +0200 Antonio Radici (c6fe0bb8cf11) + + * doc/Makefile.am, doc/smime_keys.man: Provide + smime_keys(1). Closes #3272. + +2009-06-18 14:56 +0200 Rocco Rutte (508bfe4a2e23) + + * mbox.c: Backout experimental patch + + * UPDATING, mbox.c: UPDATING: add note about -a and -- + +2009-06-17 16:19 -0700 Antonio Radici (25e46aad362b) + + * buffy.c: Do not free statically-allocated buffy buffer. Unbreaks + unmailboxes, closes #3273. + +2009-06-17 15:23 -0700 Petr Písař (fe94f01b369a) + + * ChangeLog, po/cs.po: Updated Czech translation. + +2009-06-17 13:58 -0700 Ivan Vilata i Balaguer (ef9b67c7ebc4) + + * po/ca.po: Updated Catalan translation. + +2009-06-17 13:57 -0700 Vincent Lefevre (62471a5d3186) + + * po/fr.po: Updated French translation. + +2009-06-17 20:42 +0200 Rocco Rutte (33376ae23d8f) + + * doc/devel-notes.txt: Mention check_sec.sh in doc/devel-notes.txt + +2009-06-17 11:09 -0700 Brendan Cully (7f37d0a57d83) + + * crypt-gpgme.c, pgp.c: Display unsigned part of traditional PGP + messages. Unbreaks [e2780a423d96], closes #3269 + +2009-06-17 19:29 +0200 Antonio Radici (a2a868fc40ea) + + * mx.c: Leave error handling of mx_get_magic() up to the + caller. Closes #3268. + +2009-06-17 18:02 +0200 Rocco Rutte (4b5326d8d2ee) + + * UPDATING, muttlib.c: Always display text/* parts inline, + overrideable by auto_view. Closes #3246. + +2009-06-15 22:05 +0200 Rocco Rutte (f40de578e8ed) + + * handler.c: Unbreak header weeding for message/rfc822 + parts. Closes #3265. + + * init.c, lib.c, lib.h: Print timestamps in debug files. Closes #3263. + + * doc/manual.xml.head, doc/muttrc.man.head: bind: Clarify function + argument usage + + * doc/manual.xml.head, init.h, url.c: Fixup URL parser + + The fixes are: 1) allow / in usernames for IMAP (by %-encoding /, : + and % when pretty-printing urls), 2) for POP/SMTP the trailing / is + no longer mandatory, 3) more strict %-decoding to avoid unexpected + results + +2009-06-15 17:49 +0200 Bertrand Janin (abc8fa0abeee) + + * UPDATING: Fix UPDATING + +2009-06-15 17:06 +0200 Rocco Rutte (d6f88fbf8387) + + * url.c: Don't parse URL port as signed short, but to int and cast to + unsigned short. Closes #3264. + + * doc/manual.xml.head: Manual: Add a short note about new header + folding + + ...so we don't get bug reports for tab folding. + + * init.h: Clarify what $wrap=0 does + + * doc/mutt.css: CSS update for newer docbook xslt versions + + * pager.c: pager: intermediate fix for wrapping long header lines with + $smart_wrap set + + The header folding algorithm outputs a word without spaces and + longer than $wrap as-is. The pager however tries to break it. With + $smart_wrap unset, it simply breaks at $wrap regardless if there's a + space or not. With $smart_wrap set it tried to find a space and + break if the next word is too long. This logic doesn't work for + folded header lines which always start with space. Thus, the output + would always contain the folding whitespace on a line by itself + detaching the header value from the header name. + + As an intermediate fix we don't try to be smart if the line begins + with space or tab. + + * pager.c, sendlib.c: pager: Ignore $wrap for attachment markers + +2009-06-14 20:57 -0700 Brendan Cully (d2e0b495b148) + + * build-release: Remove duplicate update-changelog call. + +2009-06-14 20:51 -0700 Antonio Radici (fef17099376d) + + * doc/mutt.man: Escape hyphens in man page. Closes #1937 again. + +2009-06-14 12:29 -0700 Brendan Cully (7f8a2ba64516) + + * UPDATING: Update UPDATING + + * VERSION, po/bg.po, po/ca.po, po/cs.po, po/da.po, po/de.po, + po/el.po, po/eo.po, po/es.po, po/et.po, po/eu.po, po/fr.po, + po/ga.po, po/gl.po, po/hu.po, po/id.po, po/it.po, po/ja.po, + po/ko.po, po/lt.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, + po/sk.po, po/sv.po, po/tr.po, po/uk.po, po/zh_CN.po, po/zh_TW.po: + automatic post-release commit for mutt-1.5.20 * imap/imap.c: Save a dereference, and close #3226 with voodoo. diff --git a/INSTALL b/INSTALL index 2139e21..4d923c4 100644 --- a/INSTALL +++ b/INSTALL @@ -202,7 +202,7 @@ A_NORMAL or KEY_MIN, then you probably don't have a SysV compliant curses library. You should install either ncurses or S-Lang (see above), and then run the ``configure'' script again. -Please note that "VPATH" builds currently do _not_ work. +Please note that "VPATH" builds currently only work with GNU make (gmake). diff --git a/Makefile.am b/Makefile.am index 3d75779..0905a68 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,7 +13,11 @@ SUBDIRS = m4 po intl doc contrib $(IMAP_SUBDIR) bin_SCRIPTS = muttbug flea @SMIMEAUX_TARGET@ -BUILT_SOURCES = keymap_defs.h patchlist.c reldate.h hcversion.h +if BUILD_HCACHE +HCVERSION = hcversion.h +endif + +BUILT_SOURCES = keymap_defs.h patchlist.c reldate.h $(HCVERSION) bin_PROGRAMS = mutt @DOTLOCK_TARGET@ @PGPAUX_TARGET@ mutt_SOURCES = \ @@ -29,7 +33,7 @@ mutt_SOURCES = \ score.c send.c sendlib.c signal.c sort.c \ status.c system.c thread.c charset.c history.c lib.c \ muttlib.c editmsg.c mbyte.c \ - url.c ascii.c crypt-mod.c crypt-mod.h + url.c ascii.c crypt-mod.c crypt-mod.h safe_asprintf.c nodist_mutt_SOURCES = $(BUILT_SOURCES) @@ -66,7 +70,7 @@ EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP OPS.CRYPT OPS.SMIME TODO UPDATING \ rfc2231.h rfc822.h rfc3676.h sha1.h sort.h mime.types VERSION prepare \ _regex.h OPS.MIX README.SECURITY remailer.c remailer.h browser.h \ mbyte.h lib.h extlib.c pgpewrap.c smime_keys.pl pgplib.h \ - README.SSL smime.h \ + README.SSL smime.h group.h \ muttbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh \ ChangeLog mkchangelog.sh mutt_idna.h \ snprintf.c regex.c crypt-gpgme.h hcachever.sh.in diff --git a/Makefile.in b/Makefile.in index 8b95ef6..e766c66 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, @@ -85,9 +85,10 @@ am_mutt_OBJECTS = addrbook.$(OBJEXT) alias.$(OBJEXT) attach.$(OBJEXT) \ system.$(OBJEXT) thread.$(OBJEXT) charset.$(OBJEXT) \ history.$(OBJEXT) lib.$(OBJEXT) muttlib.$(OBJEXT) \ editmsg.$(OBJEXT) mbyte.$(OBJEXT) url.$(OBJEXT) \ - ascii.$(OBJEXT) crypt-mod.$(OBJEXT) -am__objects_1 = patchlist.$(OBJEXT) -nodist_mutt_OBJECTS = $(am__objects_1) + ascii.$(OBJEXT) crypt-mod.$(OBJEXT) safe_asprintf.$(OBJEXT) +am__objects_1 = +am__objects_2 = patchlist.$(OBJEXT) $(am__objects_1) +nodist_mutt_OBJECTS = $(am__objects_2) mutt_OBJECTS = $(am_mutt_OBJECTS) $(nodist_mutt_OBJECTS) am__DEPENDENCIES_1 = am_mutt_dotlock_OBJECTS = mutt_dotlock.$(OBJEXT) @@ -270,6 +271,7 @@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PGPAUX_TARGET = @PGPAUX_TARGET@ @@ -342,7 +344,8 @@ AUTOMAKE_OPTIONS = 1.6 foreign @BUILD_IMAP_TRUE@IMAP_INCLUDES = -I$(top_srcdir)/imap SUBDIRS = m4 po intl doc contrib $(IMAP_SUBDIR) bin_SCRIPTS = muttbug flea @SMIMEAUX_TARGET@ -BUILT_SOURCES = keymap_defs.h patchlist.c reldate.h hcversion.h +@BUILD_HCACHE_TRUE@HCVERSION = hcversion.h +BUILT_SOURCES = keymap_defs.h patchlist.c reldate.h $(HCVERSION) mutt_SOURCES = \ addrbook.c alias.c attach.c base64.c browser.c buffy.c color.c \ crypt.c cryptglue.c \ @@ -356,7 +359,7 @@ mutt_SOURCES = \ score.c send.c sendlib.c signal.c sort.c \ status.c system.c thread.c charset.c history.c lib.c \ muttlib.c editmsg.c mbyte.c \ - url.c ascii.c crypt-mod.c crypt-mod.h + url.c ascii.c crypt-mod.c crypt-mod.h safe_asprintf.c nodist_mutt_SOURCES = $(BUILT_SOURCES) mutt_LDADD = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAP) $(MUTTLIBS) \ @@ -385,7 +388,7 @@ EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP OPS.CRYPT OPS.SMIME TODO UPDATING \ rfc2231.h rfc822.h rfc3676.h sha1.h sort.h mime.types VERSION prepare \ _regex.h OPS.MIX README.SECURITY remailer.c remailer.h browser.h \ mbyte.h lib.h extlib.c pgpewrap.c smime_keys.pl pgplib.h \ - README.SSL smime.h \ + README.SSL smime.h group.h \ muttbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh \ ChangeLog mkchangelog.sh mutt_idna.h \ snprintf.c regex.c crypt-gpgme.h hcachever.sh.in @@ -663,6 +666,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rfc2231.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rfc3676.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rfc822.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/safe_asprintf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/score.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/send.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sendlib.Po@am__quote@ @@ -713,7 +717,7 @@ mutt_md5-md5.obj: md5.c # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -738,7 +742,7 @@ $(RECURSIVE_TARGETS): fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -902,7 +906,8 @@ distdir: $(DISTFILES) fi; \ done -test -n "$(am__skip_mode_fix)" \ - || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ @@ -946,17 +951,17 @@ dist dist-all: distdir distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac diff --git a/OPS b/OPS index 7da7410..8414a8b 100644 --- a/OPS +++ b/OPS @@ -102,6 +102,7 @@ OP_MAIN_CHANGE_FOLDER_READONLY "open a different folder in read only mode" OP_MAIN_CLEAR_FLAG "clear a status flag from a message" OP_MAIN_DELETE_PATTERN "delete messages matching a pattern" OP_MAIN_IMAP_FETCH "force retrieval of mail from IMAP server" +OP_MAIN_IMAP_LOGOUT_ALL "logout from all IMAP servers" OP_MAIN_FETCH_MAIL "retrieve mail from POP server" OP_MAIN_FIRST_MESSAGE "move to the first message" OP_MAIN_LAST_MESSAGE "move to the last message" diff --git a/TODO b/TODO index e8a440f..92c6931 100644 --- a/TODO +++ b/TODO @@ -1,16 +1,11 @@ Problems are listed in approximate order of priority. -- character set support: We should have a global cache of - character to file name mappings. - - When displaying MIME headers, rfc 2047 decoding is applied (which should not happen), and rfc 2231 decoding is not applied (which should happen). - Help formatting could be revamped a bit. -- re-add support for .mh_sequences files - - In the "attachment" menu, assume this: 1 [text/plain, 7bit, 1.1K] @@ -62,5 +57,3 @@ Problems are listed in approximate order of priority. menu will require re-allocating and possibly updating the v2r array. How do we handle "in-the-middle additions" properly? Do they happen at all? - -$Id$ diff --git a/UPDATING b/UPDATING index 903d464..da66a62 100644 --- a/UPDATING +++ b/UPDATING @@ -5,11 +5,22 @@ The keys used are: !: modified feature, -: deleted feature, +: new feature hg tip: + + ! $thorough_search defaults to yes + + imap-logout-all closes all open IMAP connections + ! header/body cache paths are always UTF-8 + + $wrap_headers to control outgoing message's header length + + all text/* parts can be displayed inline without mailcap + + send-hooks now run in batch mode; previously only send2-hooks ran. + +1.5.20 (2009-06-14): + + ! mbox/mmdf new mail flag is kept when leaving folders with new mail ! $fcc_attach is a quadoption now + $honor_disposition to honor Content-Disposition headers + $search_context specifies number of context lines for search results in pager/page-based menus - + ssl_use_sslv2 defaults to no + ! ssl_use_sslv2 defaults to no + uncolor works for header + body objects, too + the "flagged" and "replied" flags are enabled/supported for POP when built with header caching @@ -20,11 +31,12 @@ hg tip: search as regex patterns do (except IMAP) + $ssl_verify_dates controls whether mutt checks the validity period of SSL certificates - + $ssl_verify_hostname controls whether mutt will accept certificates whose + + $ssl_verify_host controls whether mutt will accept certificates whose host names do not match the host name in the folder URL. 1.5.19 (2009-01-05): + ! command-line arguments: -a now mandates -- at end of file list + support for SSL certificate chains + function works in pager, too + support for tokyocabinet (qdbm successor) diff --git a/VERSION b/VERSION index a7ccabd..07a45d7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.20 +1.5.21 diff --git a/account.c b/account.c index b305f78..f738991 100644 --- a/account.c +++ b/account.c @@ -155,6 +155,8 @@ int mutt_account_getuser (ACCOUNT* account) else if ((account->type == M_ACCT_TYPE_POP) && PopUser) strfcpy (account->user, PopUser, sizeof (account->user)); #endif + else if (option (OPTNOCURSES)) + return -1; /* prompt (defaults to unix username), copy into account->user */ else { @@ -215,6 +217,8 @@ int mutt_account_getpass (ACCOUNT* account) else if ((account->type == M_ACCT_TYPE_SMTP) && SmtpPass) strfcpy (account->pass, SmtpPass, sizeof (account->pass)); #endif + else if (option (OPTNOCURSES)) + return -1; else { snprintf (prompt, sizeof (prompt), _("Password for %s@%s: "), diff --git a/aclocal.m4 b/aclocal.m4 index 5c4aa9c..7433b6c 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,4 +1,4 @@ -# generated automatically by aclocal 1.11 -*- Autoconf -*- +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. @@ -13,36 +13,121 @@ m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, -[m4_warning([this file was generated for autoconf 2.63. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, +[m4_warning([this file was generated for autoconf 2.65. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) -# isc-posix.m4 serial 2 (gettext-0.11.2) -dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. +# longlong.m4 serial 13 +dnl Copyright (C) 1999-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -# This file is not needed with autoconf-2.53 and newer. Remove it in 2005. - -# This test replaces the one in autoconf. -# Currently this macro should have the same name as the autoconf macro -# because gettext's gettext.m4 (distributed in the automake package) -# still uses it. Otherwise, the use in gettext.m4 makes autoheader -# give these diagnostics: -# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX -# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX +dnl From Paul Eggert. + +# Define HAVE_LONG_LONG_INT if 'long long int' works. +# This fixes a bug in Autoconf 2.61, but can be removed once we +# assume 2.62 everywhere. + +# Note: If the type 'long long int' exists but is only 32 bits large +# (as on some very old compilers), HAVE_LONG_LONG_INT will not be +# defined. In this case you can treat 'long long int' like 'long int'. + +AC_DEFUN([AC_TYPE_LONG_LONG_INT], +[ + AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int], + [AC_LINK_IFELSE( + [_AC_TYPE_LONG_LONG_SNIPPET], + [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. + dnl If cross compiling, assume the bug isn't important, since + dnl nobody cross compiles for this platform as far as we know. + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[@%:@include + @%:@ifndef LLONG_MAX + @%:@ define HALF \ + (1LL << (sizeof (long long int) * CHAR_BIT - 2)) + @%:@ define LLONG_MAX (HALF - 1 + HALF) + @%:@endif]], + [[long long int n = 1; + int i; + for (i = 0; ; i++) + { + long long int m = n << i; + if (m >> i != n) + return 1; + if (LLONG_MAX / 2 < m) + break; + } + return 0;]])], + [ac_cv_type_long_long_int=yes], + [ac_cv_type_long_long_int=no], + [ac_cv_type_long_long_int=yes])], + [ac_cv_type_long_long_int=no])]) + if test $ac_cv_type_long_long_int = yes; then + AC_DEFINE([HAVE_LONG_LONG_INT], 1, + [Define to 1 if the system has the type `long long int'.]) + fi +]) -undefine([AC_ISC_POSIX]) +# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. +# This fixes a bug in Autoconf 2.61, but can be removed once we +# assume 2.62 everywhere. + +# Note: If the type 'unsigned long long int' exists but is only 32 bits +# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT +# will not be defined. In this case you can treat 'unsigned long long int' +# like 'unsigned long int'. + +AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], +[ + AC_CACHE_CHECK([for unsigned long long int], + [ac_cv_type_unsigned_long_long_int], + [AC_LINK_IFELSE( + [_AC_TYPE_LONG_LONG_SNIPPET], + [ac_cv_type_unsigned_long_long_int=yes], + [ac_cv_type_unsigned_long_long_int=no])]) + if test $ac_cv_type_unsigned_long_long_int = yes; then + AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1, + [Define to 1 if the system has the type `unsigned long long int'.]) + fi +]) -AC_DEFUN([AC_ISC_POSIX], - [ - dnl This test replaces the obsolescent AC_ISC_POSIX kludge. - AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) - ] -) +# Expands to a C program that can be used to test for simultaneous support +# of 'long long' and 'unsigned long long'. We don't want to say that +# 'long long' is available if 'unsigned long long' is not, or vice versa, +# because too many programs rely on the symmetry between signed and unsigned +# integer types (excluding 'bool'). +AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET], +[ + AC_LANG_PROGRAM( + [[/* Test preprocessor. */ + #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) + error in preprocessor; + #endif + #if ! (18446744073709551615ULL <= -1ull) + error in preprocessor; + #endif + /* Test literals. */ + long long int ll = 9223372036854775807ll; + long long int nll = -9223372036854775807LL; + unsigned long long int ull = 18446744073709551615ULL; + /* Test constant expressions. */ + typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) + ? 1 : -1)]; + typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 + ? 1 : -1)]; + int i = 63;]], + [[/* Test availability of runtime routines for shift and division. */ + long long int llmax = 9223372036854775807ll; + unsigned long long int ullmax = 18446744073709551615ull; + return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) + | (llmax / ll) | (llmax % ll) + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) + | (ullmax / ull) | (ullmax % ull));]]) +]) # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # @@ -59,7 +144,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.11], [], +m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -75,7 +160,7 @@ m4_define([_AM_AUTOCONF_VERSION], []) # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.11])dnl +[AM_AUTOMAKE_VERSION([1.11.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) diff --git a/attach.c b/attach.c index 106d68f..9e45cfd 100644 --- a/attach.c +++ b/attach.c @@ -169,7 +169,7 @@ int mutt_compose_attachment (BODY *a) /* Remove headers by copying out data to another file, then * copying the file back */ fseeko (fp, b->offset, 0); - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if ((tfp = safe_fopen (tempfile, "w")) == NULL) { mutt_perror _("Failure to open file to strip headers."); @@ -508,7 +508,7 @@ int mutt_view_attachment (FILE *fp, BODY *a, int flag, HEADER *hdr, mutt_adv_mktemp (pagerfile, sizeof(pagerfile)); } else - mutt_mktemp (pagerfile); + mutt_mktemp (pagerfile, sizeof (pagerfile)); } if (use_mailcap) @@ -938,7 +938,7 @@ int mutt_decode_save_attachment (FILE *fp, BODY *m, char *path, /* Ok, the difference between send and receive: * recv: BODY->filename is a suggested name, and Context|HEADER points - * to the attachment in mailbox which is encooded + * to the attachment in mailbox which is encoded * send: BODY->filename points to the un-encoded file which contains the * attachment */ @@ -1043,7 +1043,7 @@ int mutt_print_attachment (FILE *fp, BODY *a) ifp = NULL; fpout = NULL; - mutt_mktemp (newfile); + mutt_mktemp (newfile, sizeof (newfile)); if (mutt_decode_save_attachment (fp, a, newfile, M_PRINTING, 0) == 0) { diff --git a/bcache.c b/bcache.c index 81538d2..b61a207 100644 --- a/bcache.c +++ b/bcache.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2006-7 Brendan Cully - * Copyright (C) 2006 Rocco Rutte + * Copyright (C) 2006, 2009 Rocco Rutte * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -42,6 +42,7 @@ static int bcache_path(ACCOUNT *account, const char *mailbox, char *dst, size_t dstlen) { char host[STRING]; + char path[_POSIX_PATH_MAX]; ciss_url_t url; int len; @@ -62,12 +63,14 @@ static int bcache_path(ACCOUNT *account, const char *mailbox, return -1; } - dprint (3, (debugfile, "bcache_path: URL: '%s'\n", host)); + mutt_encode_path (path, sizeof (path), NONULL (mailbox)); len = snprintf (dst, dstlen-1, "%s/%s%s%s", MessageCachedir, - host, NONULL(mailbox), - (mailbox && *mailbox && - mailbox[mutt_strlen(mailbox) - 1] == '/') ? "" : "/"); + host, path, + (*path && path[mutt_strlen (path) - 1] == '/') ? "" : "/"); + + dprint (3, (debugfile, "bcache_path: rc: %d, path: '%s'\n", len, dst)); + if (len < 0 || len >= dstlen-1) return -1; diff --git a/browser.c b/browser.c index c05af05..3bb396e 100644 --- a/browser.c +++ b/browser.c @@ -40,6 +40,7 @@ #include #include #include +#include static struct mapping_t FolderHelp[] = { { N_("Exit"), OP_EXIT }, @@ -161,11 +162,27 @@ folder_format_str (char *dest, size_t destlen, size_t col, char op, const char * break; case 'd': + case 'D': if (folder->ff->st != NULL) { - tnow = time (NULL); - t_fmt = tnow - folder->ff->st->st_mtime < 31536000 ? "%b %d %H:%M" : "%b %d %Y"; + int do_locales = TRUE; + + if (op == 'D') { + t_fmt = NONULL(DateFmt); + if (*t_fmt == '!') { + ++t_fmt; + do_locales = FALSE; + } + } else { + tnow = time (NULL); + t_fmt = tnow - folder->ff->st->st_mtime < 31536000 ? "%b %d %H:%M" : "%b %d %Y"; + } + if (do_locales) + setlocale(LC_TIME, NONULL (Locale)); /* use environment if $locale is not set */ + else + setlocale(LC_TIME, "C"); strftime (date, sizeof (date), t_fmt, localtime (&folder->ff->st->st_mtime)); + mutt_format_s (dest, destlen, fmt, date); } else @@ -1068,7 +1085,6 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num if ((err = REGCOMP (rx, s, REG_NOSUB)) != 0) { regerror (err, rx, buf, sizeof (buf)); - regfree (rx); FREE (&rx); mutt_error ("%s", buf); } diff --git a/buffy.c b/buffy.c index 40c229e..fd54dd2 100644 --- a/buffy.c +++ b/buffy.c @@ -45,6 +45,8 @@ time_t BuffyDoneTime = 0; /* last time we knew for sure how much mail there was. static short BuffyCount = 0; /* how many boxes with new mail */ static short BuffyNotify = 0; /* # of unnotified new boxes */ +static BUFFY* buffy_get (const char *path); + /* Find the last message in the file. * upon success return 0. If no message found - return -1 */ @@ -191,6 +193,23 @@ void mutt_update_mailbox (BUFFY * b) return; } +static BUFFY *buffy_new (const char *path) +{ + BUFFY* buffy; + + buffy = (BUFFY *) safe_calloc (1, sizeof (BUFFY)); + strfcpy (buffy->path, path, sizeof (buffy->path)); + buffy->next = NULL; + buffy->magic = 0; + + return buffy; +} + +static void buffy_free (BUFFY **mailbox) +{ + FREE (mailbox); /* __FREE_CHECKED__ */ +} + int mutt_parse_mailboxes (BUFFER *path, BUFFER *s, unsigned long data, BUFFER *err) { BUFFY **tmp,*tmp1; @@ -209,7 +228,7 @@ int mutt_parse_mailboxes (BUFFER *path, BUFFER *s, unsigned long data, BUFFER *e for (tmp = &Incoming; *tmp;) { tmp1=(*tmp)->next; - FREE (tmp); /* __FREE_CHECKED__ */ + buffy_free (tmp); *tmp=tmp1; } return 0; @@ -236,23 +255,15 @@ int mutt_parse_mailboxes (BUFFER *path, BUFFER *s, unsigned long data, BUFFER *e { if(*tmp) { - FREE (&((*tmp)->path)); tmp1=(*tmp)->next; - FREE (tmp); /* __FREE_CHECKED__ */ + buffy_free (tmp); *tmp=tmp1; } continue; } if (!*tmp) - { - *tmp = (BUFFY *) safe_calloc (1, sizeof (BUFFY)); - strfcpy ((*tmp)->path, buf, sizeof ((*tmp)->path)); - (*tmp)->next = NULL; - /* it is tempting to set magic right here */ - (*tmp)->magic = 0; - - } + *tmp = buffy_new (buf); (*tmp)->new = 0; (*tmp)->notified = 1; @@ -274,20 +285,96 @@ int mutt_parse_mailboxes (BUFFER *path, BUFFER *s, unsigned long data, BUFFER *e return 0; } -/* people use check_mbox_size on systems where modified time attributes are - * BADLY broken. Ignore them. - */ -#define STAT_CHECK_SIZE (sb.st_size > tmp->size) -#define STAT_CHECK_TIME (sb.st_mtime > sb.st_atime || (tmp->newly_created && sb.st_ctime == sb.st_mtime && sb.st_ctime == sb.st_atime)) -#define STAT_CHECK (option(OPTCHECKMBOXSIZE) ? STAT_CHECK_SIZE : STAT_CHECK_TIME) +/* returns 1 if maildir has new mail */ +static int buffy_maildir_hasnew (BUFFY* mailbox) +{ + char path[_POSIX_PATH_MAX]; + DIR *dirp; + struct dirent *de; + char *p; + int rc = 0; + struct stat sb; + + snprintf (path, sizeof (path), "%s/new", mailbox->path); + + /* when $mail_check_recent is set, if the new/ directory hasn't been modified since + * the user last exited the mailbox, then we know there is no recent mail. + */ + if (option(OPTMAILCHECKRECENT)) + { + if (stat(path, &sb) == 0 && sb.st_mtime < mailbox->last_visited) + return 0; + } + + if ((dirp = opendir (path)) == NULL) + { + mailbox->magic = 0; + return 0; + } + + while ((de = readdir (dirp)) != NULL) + { + if (*de->d_name == '.') + continue; + + if (!(p = strstr (de->d_name, ":2,")) || !strchr (p + 3, 'T')) + { + if (option(OPTMAILCHECKRECENT)) + { + char msgpath[_POSIX_PATH_MAX]; + + snprintf(msgpath, sizeof(msgpath), "%s/%s", path, de->d_name); + /* ensure this message was received since leaving this mailbox */ + if (stat(msgpath, &sb) == 0 && (sb.st_ctime <= mailbox->last_visited)) + continue; + } + /* one new and undeleted message is enough */ + mailbox->new = 1; + rc = 1; + break; + } + } + + closedir (dirp); + + return rc; +} + +/* returns 1 if mailbox has new mail */ +static int buffy_mbox_hasnew (BUFFY* mailbox, struct stat *sb) +{ + int rc = 0; + int statcheck; + + if (option (OPTCHECKMBOXSIZE)) + statcheck = sb->st_size > mailbox->size; + else + statcheck = sb->st_mtime > sb->st_atime + || (mailbox->newly_created && sb->st_ctime == sb->st_mtime && sb->st_ctime == sb->st_atime); + if (statcheck) + { + if (!option(OPTMAILCHECKRECENT) || sb->st_mtime > mailbox->last_visited) + { + rc = 1; + mailbox->new = 1; + } + } + else if (option(OPTCHECKMBOXSIZE)) + { + /* some other program has deleted mail from the folder */ + mailbox->size = (off_t) sb->st_size; + } + if (mailbox->newly_created && + (sb->st_ctime != sb->st_mtime || sb->st_ctime != sb->st_atime)) + mailbox->newly_created = 0; + + return rc; +} int mutt_buffy_check (int force) { BUFFY *tmp; struct stat sb; - struct dirent *de; - DIR *dirp; - char path[_POSIX_PATH_MAX]; struct stat contex_sb; time_t t; @@ -314,14 +401,11 @@ int mutt_buffy_check (int force) #ifdef USE_IMAP BuffyCount += imap_buffy_check (force); - - if (!Context || Context->magic != M_IMAP) -#endif -#ifdef USE_POP - if (!Context || Context->magic != M_POP) #endif + /* check device ID and serial number instead of comparing paths */ - if (!Context || !Context->path || stat (Context->path, &contex_sb) != 0) + if (!Context || Context->magic == M_IMAP || Context->magic == M_POP + || stat (Context->path, &contex_sb) != 0) { contex_sb.st_dev=0; contex_sb.st_ino=0; @@ -329,99 +413,44 @@ int mutt_buffy_check (int force) for (tmp = Incoming; tmp; tmp = tmp->next) { -#ifdef USE_IMAP - if (tmp->magic != M_IMAP) -#endif - tmp->new = 0; - -#ifdef USE_IMAP if (tmp->magic != M_IMAP) { -#endif + tmp->new = 0; #ifdef USE_POP - if (mx_is_pop (tmp->path)) - tmp->magic = M_POP; - else + if (mx_is_pop (tmp->path)) + tmp->magic = M_POP; + else #endif - if (stat (tmp->path, &sb) != 0 || (S_ISREG(sb.st_mode) && sb.st_size == 0) || - (!tmp->magic && (tmp->magic = mx_get_magic (tmp->path)) <= 0)) - { - /* if the mailbox still doesn't exist, set the newly created flag to - * be ready for when it does. */ - tmp->newly_created = 1; - tmp->magic = 0; - tmp->size = 0; - continue; - } -#ifdef USE_IMAP + if (stat (tmp->path, &sb) != 0 || (S_ISREG(sb.st_mode) && sb.st_size == 0) || + (!tmp->magic && (tmp->magic = mx_get_magic (tmp->path)) <= 0)) + { + /* if the mailbox still doesn't exist, set the newly created flag to + * be ready for when it does. */ + tmp->newly_created = 1; + tmp->magic = 0; + tmp->size = 0; + continue; + } } -#endif /* check to see if the folder is the currently selected folder * before polling */ if (!Context || !Context->path || -#if defined USE_IMAP || defined USE_POP - (( -#ifdef USE_IMAP - tmp->magic == M_IMAP -#endif -#ifdef USE_POP -#ifdef USE_IMAP - || -#endif - tmp->magic == M_POP -#endif - ) ? mutt_strcmp (tmp->path, Context->path) : -#endif - (sb.st_dev != contex_sb.st_dev || sb.st_ino != contex_sb.st_ino) -#if defined USE_IMAP || defined USE_POP - ) -#endif - ) - + (( tmp->magic == M_IMAP || tmp->magic == M_POP ) + ? mutt_strcmp (tmp->path, Context->path) : + (sb.st_dev != contex_sb.st_dev || sb.st_ino != contex_sb.st_ino))) { switch (tmp->magic) { case M_MBOX: case M_MMDF: - - if (STAT_CHECK) - { + if (buffy_mbox_hasnew (tmp, &sb) > 0) BuffyCount++; - tmp->new = 1; - } - else if (option(OPTCHECKMBOXSIZE)) - { - /* some other program has deleted mail from the folder */ - tmp->size = (off_t) sb.st_size; - } - if (tmp->newly_created && - (sb.st_ctime != sb.st_mtime || sb.st_ctime != sb.st_atime)) - tmp->newly_created = 0; - break; case M_MAILDIR: - - snprintf (path, sizeof (path), "%s/new", tmp->path); - if ((dirp = opendir (path)) == NULL) - { - tmp->magic = 0; - break; - } - while ((de = readdir (dirp)) != NULL) - { - char *p; - if (*de->d_name != '.' && - (!(p = strstr (de->d_name, ":2,")) || !strchr (p + 3, 'T'))) - { - /* one new and undeleted message is enough */ - BuffyCount++; - tmp->new = 1; - break; - } - } - closedir (dirp); + if (buffy_maildir_hasnew (tmp) > 0) + BuffyCount++; break; case M_MH: @@ -448,13 +477,11 @@ int mutt_buffy_list (void) BUFFY *tmp; char path[_POSIX_PATH_MAX]; char buffylist[2*STRING]; - int pos; - int first; + size_t pos = 0; + int first = 1; int have_unnotified = BuffyNotify; - pos = 0; - first = 1; buffylist[0] = 0; pos += strlen (strncat (buffylist, _("New mail in "), sizeof (buffylist) - 1 - pos)); /* __STRNCAT_CHECKED__ */ for (tmp = Incoming; tmp; tmp = tmp->next) @@ -466,7 +493,7 @@ int mutt_buffy_list (void) strfcpy (path, tmp->path, sizeof (path)); mutt_pretty_mailbox (path, sizeof (path)); - if (!first && pos + strlen (path) >= COLS - 7) + if (!first && (COLS - 7 >= 0) && (pos + strlen (path) >= (size_t)COLS - 7)) break; if (!first) @@ -498,6 +525,18 @@ int mutt_buffy_list (void) return (0); } +void mutt_buffy_setnotified (const char *path) +{ + BUFFY *buffy; + + buffy = buffy_get(path); + if (!buffy) + return; + + buffy->notified = 1; + time(&buffy->last_visited); +} + int mutt_buffy_notify (void) { if (mutt_buffy_check (0) && BuffyNotify) @@ -542,3 +581,30 @@ void mutt_buffy (char *s, size_t slen) /* no folders with new mail */ *s = '\0'; } + +/* fetch buffy object for given path, if present */ +static BUFFY* buffy_get (const char *path) +{ + BUFFY *cur; + char *epath; + + if (!path) + return NULL; + + epath = safe_strdup(path); + mutt_expand_path(epath, mutt_strlen(epath)); + + for (cur = Incoming; cur; cur = cur->next) + { + /* must be done late because e.g. IMAP delimiter may change */ + mutt_expand_path (cur->path, sizeof (cur->path)); + if (!mutt_strcmp(cur->path, path)) + { + FREE (&epath); + return cur; + } + } + + FREE (&epath); + return NULL; +} diff --git a/buffy.h b/buffy.h index d7ff3b4..2e5e048 100644 --- a/buffy.h +++ b/buffy.h @@ -29,6 +29,7 @@ typedef struct buffy_t short notified; /* user has been notified */ short magic; /* mailbox type */ short newly_created; /* mbox or mmdf just popped into existence */ + time_t last_visited; /* time of last exit from this mailbox */ } BUFFY; @@ -43,3 +44,6 @@ void mutt_update_mailbox (BUFFY * b); /* fixes up atime + mtime after mbox/mmdf mailbox was modified according to stat() info taken before a modification */ void mutt_buffy_cleanup (const char *buf, struct stat *st); + +/* mark mailbox just left as already notified */ +void mutt_buffy_setnotified (const char *path); diff --git a/charset.c b/charset.c index b07f494..fd011a4 100644 --- a/charset.c +++ b/charset.c @@ -239,36 +239,42 @@ void mutt_set_langinfo_charset (void) #endif +/* this first ties off any charset extension such as //TRANSLIT, + canonicalizes the charset and re-adds the extension */ void mutt_canonical_charset (char *dest, size_t dlen, const char *name) { size_t i; - char *p; - char scratch[LONG_STRING]; + char *p, *ext; + char in[LONG_STRING], scratch[LONG_STRING]; + + strfcpy (in, name, sizeof (in)); + if ((ext = strchr (in, '/'))) + *ext++ = 0; - if (!ascii_strcasecmp (name, "utf-8") || !ascii_strcasecmp (name, "utf8")) + if (!ascii_strcasecmp (in, "utf-8") || !ascii_strcasecmp (in, "utf8")) { strfcpy (dest, "utf-8", dlen); - return; + goto out; } /* catch some common iso-8859-something misspellings */ - if (!ascii_strncasecmp (name, "8859", 4) && name[4] != '-') - snprintf (scratch, sizeof (scratch), "iso-8859-%s", name +4); - else if (!ascii_strncasecmp (name, "8859-", 5)) - snprintf (scratch, sizeof (scratch), "iso-8859-%s", name + 5); - else if (!ascii_strncasecmp (name, "iso8859", 7) && name[7] != '-') - snprintf (scratch, sizeof (scratch), "iso_8859-%s", name + 7); - else if (!ascii_strncasecmp (name, "iso8859-", 8)) - snprintf (scratch, sizeof (scratch), "iso_8859-%s", name + 8); + if (!ascii_strncasecmp (in, "8859", 4) && in[4] != '-') + snprintf (scratch, sizeof (scratch), "iso-8859-%s", in +4); + else if (!ascii_strncasecmp (in, "8859-", 5)) + snprintf (scratch, sizeof (scratch), "iso-8859-%s", in + 5); + else if (!ascii_strncasecmp (in, "iso8859", 7) && in[7] != '-') + snprintf (scratch, sizeof (scratch), "iso_8859-%s", in + 7); + else if (!ascii_strncasecmp (in, "iso8859-", 8)) + snprintf (scratch, sizeof (scratch), "iso_8859-%s", in + 8); else - strfcpy (scratch, NONULL(name), sizeof (scratch)); + strfcpy (scratch, in, sizeof (scratch)); for (i = 0; PreferredMIMENames[i].key; i++) if (!ascii_strcasecmp (scratch, PreferredMIMENames[i].key) || !mutt_strcasecmp (scratch, PreferredMIMENames[i].key)) { strfcpy (dest, PreferredMIMENames[i].pref, dlen); - return; + goto out; } strfcpy (dest, scratch, dlen); @@ -276,16 +282,33 @@ void mutt_canonical_charset (char *dest, size_t dlen, const char *name) /* for cosmetics' sake, transform to lowercase. */ for (p = dest; *p; p++) *p = ascii_tolower (*p); + +out: + if (ext && *ext) + { + safe_strcat (dest, dlen, "/"); + safe_strcat (dest, dlen, ext); + } } int mutt_chscmp (const char *s, const char *chs) { char buffer[STRING]; + int a, b; if (!s) return 0; + /* charsets may have extensions mutt_canonical_charset() + leaves intact; we expect `chs' to originate from mutt + code, not user input (i.e. `chs' does _not_ have any + extension) + we simply check if the shorter string is a prefix for + the longer */ mutt_canonical_charset (buffer, sizeof (buffer), s); - return !ascii_strcasecmp (buffer, chs); + a = mutt_strlen (buffer); + b = mutt_strlen (chs); + return !ascii_strncasecmp (a > b ? buffer : chs, + a > b ? chs : buffer, MIN(a,b)); } char *mutt_get_default_charset () diff --git a/charset.h b/charset.h index 703d30d..e52ce38 100644 --- a/charset.h +++ b/charset.h @@ -47,7 +47,7 @@ char * fgetconvs (char *, size_t, FGETCONV *); void fgetconv_close (FGETCONV **); void mutt_set_langinfo_charset (void); -char *mutt_get_default_charset (); +char *mutt_get_default_charset (void); /* flags for charset.c:mutt_convert_string(), fgetconv_open(), and * mutt_iconv_open(). Note that applying charset-hooks to tocode is diff --git a/commands.c b/commands.c index 7d9c90d..f9c2025 100644 --- a/commands.c +++ b/commands.c @@ -72,7 +72,7 @@ int mutt_display_message (HEADER *cur) mutt_parse_mime_message (Context, cur); mutt_message_hook (Context, cur, M_MESSAGEHOOK); - /* see if crytpo is needed for this message. if so, we should exit curses */ + /* see if crypto is needed for this message. if so, we should exit curses */ if (WithCrypto && cur->security) { if (cur->security & ENCRYPT) @@ -109,7 +109,7 @@ int mutt_display_message (HEADER *cur) } - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if ((fpout = safe_fopen (tempfile, "w")) == NULL) { mutt_error _("Could not create temporary file!"); @@ -222,7 +222,8 @@ int mutt_display_message (HEADER *cur) if ((r = mutt_system (buf)) == -1) mutt_error (_("Error running \"%s\"!"), buf); unlink (tempfile); - keypad (stdscr, TRUE); + if (!option (OPTNOCURSES)) + keypad (stdscr, TRUE); if (r != -1) mutt_set_flag (Context, cur, M_READ, 1); if (r != -1 && option (OPTPROMPTAFTER)) @@ -862,7 +863,7 @@ int mutt_save_message (HEADER *h, int delete, mx_close_mailbox (&ctx, NULL); if (need_buffy_cleanup) - mutt_buffy_cleanup (ctx.path, &st); + mutt_buffy_cleanup (buf, &st); mutt_clear_error (); return (0); diff --git a/compose.c b/compose.c index 5db4c92..c251d41 100644 --- a/compose.c +++ b/compose.c @@ -112,21 +112,13 @@ static void redraw_crypt_lines (HEADER *msg) { int off = 0; - if ((WithCrypto & APPLICATION_PGP) && (WithCrypto & APPLICATION_SMIME)) - { - if (!msg->security) - mvaddstr (HDR_CRYPT, 0, "Security: "); - else if (msg->security & APPLICATION_SMIME) - mvaddstr (HDR_CRYPT, 0, " S/MIME: "); - else if (msg->security & APPLICATION_PGP) - mvaddstr (HDR_CRYPT, 0, " PGP: "); - } - else if ((WithCrypto & APPLICATION_SMIME)) - mvaddstr (HDR_CRYPT, 0, " S/MIME: "); - else if ((WithCrypto & APPLICATION_PGP)) - mvaddstr (HDR_CRYPT, 0, " PGP: "); - else + mvaddstr (HDR_CRYPT, 0, "Security: "); + + if ((WithCrypto & (APPLICATION_PGP | APPLICATION_SMIME)) == 0) + { + addstr(_("Not supported")); return; + } if ((msg->security & (ENCRYPT | SIGN)) == (ENCRYPT | SIGN)) addstr (_("Sign, Encrypt")); @@ -135,21 +127,26 @@ static void redraw_crypt_lines (HEADER *msg) else if (msg->security & SIGN) addstr (_("Sign")); else - addstr (_("Clear")); + addstr (_("None")); - if ((WithCrypto & APPLICATION_PGP)) - if ((msg->security & APPLICATION_PGP) - && (msg->security & (ENCRYPT | SIGN))) + if ((msg->security & (ENCRYPT | SIGN))) + { + if ((WithCrypto & APPLICATION_PGP) && (msg->security & APPLICATION_PGP)) { if ((msg->security & INLINE)) - addstr (_(" (inline)")); + addstr (_(" (inline PGP)")); else - addstr (_(" (PGP/MIME)")); + addstr (_(" (PGP/MIME)")); } - clrtoeol (); + else if ((WithCrypto & APPLICATION_SMIME) && + (msg->security & APPLICATION_SMIME)) + addstr (_(" (S/MIME)")); + } + clrtoeol (); move (HDR_CRYPTINFO, 0); clrtoeol (); + if ((WithCrypto & APPLICATION_PGP) && msg->security & APPLICATION_PGP && msg->security & SIGN) printw ("%s%s", _(" sign as: "), PgpSignAs ? PgpSignAs : _("")); @@ -241,7 +238,7 @@ check_attachments(ATTACHPTR **idx, short idxlen) static void draw_envelope_addr (int line, ADDRESS *addr) { - char buf[STRING]; + char buf[LONG_STRING]; buf[0] = 0; rfc822_write_address (buf, sizeof (buf), addr, 1); @@ -581,7 +578,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */ { mutt_edit_file (Editor, msg->content->filename); mutt_update_encoding (msg->content); - menu->redraw = REDRAW_CURRENT | REDRAW_STATUS; + menu->redraw = REDRAW_FULL; mutt_message_hook (NULL, msg, M_SEND2HOOK); break; } @@ -1206,7 +1203,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */ if (msg->content->next) msg->content = mutt_make_multipart (msg->content); - if (mutt_write_fcc (fname, msg, NULL, 1, NULL) < 0) + if (mutt_write_fcc (fname, msg, NULL, 0, NULL) < 0) msg->content = mutt_remove_multipart (msg->content); else mutt_message _("Message written."); diff --git a/config.guess b/config.guess index 396482d..0f0fe71 100755 --- a/config.guess +++ b/config.guess @@ -4,7 +4,7 @@ # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. -timestamp='2006-07-02' +timestamp='2007-03-06' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -161,6 +161,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched @@ -780,7 +781,7 @@ EOF i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; - i*:MINGW*:*) + *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) @@ -790,12 +791,15 @@ EOF i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; - x86:Interix*:[3456]*) - echo i586-pc-interix${UNAME_RELEASE} - exit ;; - EM64T:Interix*:[3456]*) - echo x86_64-unknown-interix${UNAME_RELEASE} - exit ;; + *:Interix*:[3456]*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + EM64T | authenticamd) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; @@ -950,6 +954,9 @@ EOF x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; + xtensa:Linux:*:*) + echo xtensa-unknown-linux-gnu + exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent @@ -1208,6 +1215,15 @@ EOF SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; diff --git a/config.h.in b/config.h.in index 3e68286..a63dc8d 100644 --- a/config.h.in +++ b/config.h.in @@ -178,6 +178,9 @@ /* Define to 1 if you have the `iswalpha' function. */ #undef HAVE_ISWALPHA +/* Define to 1 if you have the `iswblank' function. */ +#undef HAVE_ISWBLANK + /* Define to 1 if you have the `iswcntrl' function. */ #undef HAVE_ISWCNTRL @@ -223,9 +226,6 @@ /* Define to 1 if you have the `nsl' library (-lnsl). */ #undef HAVE_LIBNSL -/* Define to 1 if you have the `sasl2' library (-lsasl2). */ -#undef HAVE_LIBSASL2 - /* Define to 1 if you have the `socket' library (-lsocket). */ #undef HAVE_LIBSOCKET @@ -244,6 +244,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H +/* Define to 1 if the system has the type `long long int'. */ +#undef HAVE_LONG_LONG_INT + /* Define to 1 if you have the header file. */ #undef HAVE_MALLOC_H @@ -489,6 +492,9 @@ /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME +/* Define to the home page for this package. */ +#undef PACKAGE_URL + /* Define to the version of this package. */ #undef PACKAGE_VERSION @@ -559,8 +565,7 @@ /* Define if you want support for the POP3 protocol. */ #undef USE_POP -/* Define if want to use the Cyrus SASL library for POP/IMAP authentication. - */ +/* Define if want to use the SASL library for POP/IMAP authentication. */ #undef USE_SASL /* Define if mutt should run setgid "mail". */ diff --git a/config.sub b/config.sub index fab0aa3..5defff6 100755 --- a/config.sub +++ b/config.sub @@ -4,7 +4,7 @@ # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. -timestamp='2006-09-20' +timestamp='2007-01-18' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -245,12 +245,12 @@ case $basic_machine in | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ - | fr30 | frv \ + | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | mcore \ + | maxq | mb | microblaze | mcore | mep \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ @@ -324,7 +324,7 @@ case $basic_machine in | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ @@ -925,6 +925,9 @@ case $basic_machine in basic_machine=sh-hitachi os=-hms ;; + sh5el) + basic_machine=sh5le-unknown + ;; sh64) basic_machine=sh64-unknown ;; @@ -1219,7 +1222,7 @@ case $os in | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers*) + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1414,6 +1417,9 @@ case $basic_machine in m68*-cisco) os=-aout ;; + mep-*) + os=-elf + ;; mips*-cisco) os=-elf ;; diff --git a/configure b/configure index d17cd92..ff117a1 100755 --- a/configure +++ b/configure @@ -1,18 +1,22 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.63. +# Generated by GNU Autoconf 2.65. +# # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# +# # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which @@ -20,23 +24,15 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - as_nl=' ' export as_nl @@ -44,7 +40,13 @@ export as_nl as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else @@ -55,7 +57,7 @@ else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; - case $arg in + case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; @@ -78,13 +80,6 @@ if test "${PATH_SEPARATOR+set}" != set; then } fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - # IFS # We need space, tab and new line, in precisely that order. Quoting is @@ -94,15 +89,15 @@ fi IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -114,12 +109,16 @@ if test "x$as_myself" = x; then fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' @@ -131,7 +130,248 @@ export LC_ALL LANGUAGE=C export LANGUAGE -# Required to use basename. +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -145,8 +385,12 @@ else as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ @@ -166,412 +410,124 @@ $as_echo X/"$0" | } s/.*/./; q'` -# CDPATH. -$as_unset CDPATH +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit } -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null fi - -if as_func_ret_success; then - : +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi else - exitcode=1 - echo as_func_ret_success failed. + as_ln_s='cp -p' fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false fi -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' else - exitcode=1 - echo positional parameters were not saved. + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' fi +as_executable_p=$as_test_x -test \$exitcode = 0) || { (exit 1); exit 1; } +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell bug-autoconf@gnu.org about your system, - echo including any error possibly output before this message. - echo This can help us improve future autoconf versions. - echo Configuration will now proceed without shell functions. -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -p' - fi -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - -exec 7<&0 &1 +test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, @@ -589,7 +545,6 @@ cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= @@ -597,6 +552,7 @@ PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= +PACKAGE_URL= ac_unique_file="mutt.h" # Factoring default headers for most tests. @@ -635,6 +591,7 @@ ac_includes_default="\ # include #endif" +ac_header_list= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS @@ -667,6 +624,8 @@ LIBIMAP MUTT_LIB_OBJECTS MUTTLIBS MUTT_MD5 +BUILD_HCACHE_FALSE +BUILD_HCACHE_TRUE USE_SASL_FALSE USE_SASL_TRUE USE_SSL_FALSE @@ -777,6 +736,7 @@ bindir program_transform_name prefix exec_prefix +PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION @@ -948,8 +908,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + as_fn_error "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -975,8 +934,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + as_fn_error "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1180,8 +1138,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + as_fn_error "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1197,8 +1154,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + as_fn_error "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1228,17 +1184,17 @@ do | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } + -*) as_fn_error "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information." ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error "invalid variable name: \`$ac_envvar'" ;; + esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1255,15 +1211,13 @@ done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { $as_echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } + as_fn_error "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; - fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 - { (exit 1); exit 1; }; } ;; + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1286,8 +1240,7 @@ do [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' @@ -1317,11 +1270,9 @@ test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { $as_echo "$as_me: error: working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } + as_fn_error "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } + as_fn_error "pwd does not report name of working directory" # Find the source files, if location was not specified. @@ -1360,13 +1311,11 @@ else fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then @@ -1507,7 +1456,7 @@ Optional Packages: --with-gss[=PFX] Compile in GSSAPI authentication for IMAP --with-ssl[=PFX] Enable TLS support using OpenSSL --with-gnutls[=PFX] enable TLS support using gnutls - --with-sasl[=PFX] Use Cyrus SASL 2 network security library + --with-sasl[=PFX] Use SASL network security library --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken) --without-tokyocabinet Don't use tokyocabinet even if it is available --without-qdbm Don't use qdbm even if it is available @@ -1525,13 +1474,14 @@ Some influential environment variables: LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. +Report bugs to the package provider. _ACEOF ac_status=$? fi @@ -1595,10177 +1545,2754 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure -generated by GNU Autoconf 2.63 +generated by GNU Autoconf 2.65 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright (C) 2009 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.63. Invocation command line was - $ $0 $@ +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## -_ACEOF -exec 5>>config.log +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () { -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` +} # ac_fn_c_try_compile -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval -## ----------- ## -## Core tests. ## -## ----------- ## +} # ac_fn_c_try_cpp +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> _ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi +} # ac_fn_c_check_header_mongrel - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval -# Predefined preprocessor variables. +} # ac_fn_c_try_run -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> _ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} +} # ac_fn_c_check_header_compile -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF +} # ac_fn_c_try_link +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES +# -------------------------------------------- +# Tries to find the compile-time value of EXPR in a program that includes +# INCLUDES, setting VAR accordingly. Returns whether the value could be +# computed +ac_fn_c_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= 0)]; +test_array [0] = 0 -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" + ; + return 0; +} _ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) < 0)]; +test_array [0] = 0 -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" + ; + return 0; +} _ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +test_array [0] = 0 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0 -# Let the site file select an alternate cache file if it wants to. -# Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE -if test -n "$CONFIG_SITE"; then - ac_site_file1=$CONFIG_SITE -elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" -do - test "x$ac_site_file" = xNONE && continue - if test -r "$ac_site_file"; then - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done +case $ac_lo in #(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +#include +#include +int +main () +{ -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + echo >>conftest.val; read $3 &5 -$as_echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file + ac_retval=1 fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f conftest.val -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac fi -done -if $ac_cache_corrupted; then - { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval +} # ac_fn_c_compute_int +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} +} # ac_fn_c_check_type +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ +#ifdef __STDC__ +# include +#else +# include +#endif +#undef $2 +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} +} # ac_fn_c_check_func +# ac_fn_c_check_decl LINENO SYMBOL VAR +# ------------------------------------ +# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. +ac_fn_c_check_decl () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 +$as_echo_n "checking whether $2 is declared... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $2 + (void) $2; +#endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} +} # ac_fn_c_check_decl +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +It was created by $as_me, which was +generated by GNU Autoconf 2.65. Invocation command line was + $ $0 $@ -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_config_headers="$ac_config_headers config.h" - +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## -mutt_cv_version=`cat $srcdir/VERSION` -am__api_version='1.11' +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 -$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} - { (exit 1); exit 1; }; } -fi +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` +_ASUNAME -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - -done + $as_echo "PATH: $as_dir" + done IFS=$as_save_IFS -rm -rf conftest.one conftest.two conftest.dir - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' +} >&5 -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +cat >&5 <<_ACEOF -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 -$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} - { (exit 1); exit 1; }; };; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 -$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} - { (exit 1); exit 1; }; };; -esac -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then +## ----------- ## +## Core tests. ## +## ----------- ## - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi +_ACEOF - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -$as_echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. -# By default was `s,x,x', remove it if useless. -ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo -if test x"${install_sh}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { $as_echo "$as_me:$LINENO: result: $AWK" >&5 -$as_echo "$AWK" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=mutt - VERSION=$mutt_cv_version - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/VERSION' - - -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -$as_echo_n "checking for style of include used by $am_make... " >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from `make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi - - -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 -$as_echo "$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } - -# Provide some information about the compiler. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` - -# The possible output files: -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" - -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } -if test -z "$ac_file"; then - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } - fi - fi -fi -{ $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } -fi - -rm -f conftest$ac_cv_exeext -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if test "${ac_cv_objext+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:$LINENO: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:$LINENO: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -depcc="$CC" am_compiler_list= - -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvisualcpp | msvcmsys) - # This compiler won't grok `-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done -done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done -done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - - -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - if test "${ac_cv_header_minix_config_h+set}" = set; then - { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 -$as_echo_n "checking for minix/config.h... " >&6; } -if test "${ac_cv_header_minix_config_h+set}" = set; then - $as_echo_n "(cached) " >&6 -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 -$as_echo "$ac_cv_header_minix_config_h" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 -$as_echo_n "checking minix/config.h usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 -$as_echo_n "checking minix/config.h presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 -$as_echo_n "checking for minix/config.h... " >&6; } -if test "${ac_cv_header_minix_config_h+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_header_minix_config_h=$ac_header_preproc -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 -$as_echo "$ac_cv_header_minix_config_h" >&6; } - -fi -if test "x$ac_cv_header_minix_config_h" = x""yes; then - MINIX=yes -else - MINIX= -fi - - - if test "$MINIX" = yes; then - -cat >>confdefs.h <<\_ACEOF -#define _POSIX_SOURCE 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define _POSIX_1_SOURCE 2 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define _MINIX 1 -_ACEOF - - fi - - - - { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 -$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if test "${ac_cv_safe_to_define___extensions__+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_safe_to_define___extensions__=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_safe_to_define___extensions__=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 -$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } - test $ac_cv_safe_to_define___extensions__ = yes && - cat >>confdefs.h <<\_ACEOF -#define __EXTENSIONS__ 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define _ALL_SOURCE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define _GNU_SOURCE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define _POSIX_PTHREAD_SEMANTICS 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define _TANDEM_SOURCE 1 -_ACEOF - - - -ALL_LINGUAS="de eu ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg ga" - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ $as_echo "$as_me:$LINENO: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if test "${ac_cv_build+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -$as_echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ $as_echo "$as_me:$LINENO: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if test "${ac_cv_host+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -$as_echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - -{ $as_echo "$as_me:$LINENO: checking for prefix" >&5 -$as_echo_n "checking for prefix... " >&6; } -if test x$prefix = xNONE; then - mutt_cv_prefix=$ac_default_prefix -else - mutt_cv_prefix=$prefix -fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5 -$as_echo "$mutt_cv_prefix" >&6; } - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } - -# Provide some information about the compiler. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:$LINENO: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:$LINENO: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -depcc="$CC" am_compiler_list= - -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvisualcpp | msvcmsys) - # This compiler won't grok `-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - - { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 -$as_echo_n "checking for strerror in -lcposix... " >&6; } -if test "${ac_cv_lib_cposix_strerror+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcposix $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char strerror (); -int -main () -{ -return strerror (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_cposix_strerror=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_cposix_strerror=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 -$as_echo "$ac_cv_lib_cposix_strerror" >&6; } -if test "x$ac_cv_lib_cposix_strerror" = x""yes; then - LIBS="$LIBS -lcposix" -fi - - - -{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 -$as_echo_n "checking for function prototypes... " >&6; } -if test "$ac_cv_prog_cc_c89" != no; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define PROTOTYPES 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define __PROTOTYPES 1 -_ACEOF - -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test "$ac_cv_prog_cc_stdc" != no; then - U= ANSI2KNR= -else - U=_ ANSI2KNR=./ansi2knr -fi -# Ensure some checks needed by ansi2knr itself. - - -for ac_header in string.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -if test "x$U" != "x"; then - { { $as_echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5 -$as_echo "$as_me: error: Compiler not ANSI compliant" >&2;} - { (exit 1); exit 1; }; } -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - -done -IFS=$as_save_IFS - -rm -rf conftest.one conftest.two conftest.dir - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_AR+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { $as_echo "$as_me:$LINENO: result: $AR" >&5 -$as_echo "$AR" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_AR" = x; then - AR="ar" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -else - AR="$ac_cv_prog_AR" -fi - - -{ $as_echo "$as_me:$LINENO: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if test "${ac_cv_c_inline+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifndef __cplusplus -typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } -#endif - -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_inline=$ac_kw -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - test "$ac_cv_c_inline" != no && break -done - -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 -$as_echo "$ac_cv_c_inline" >&6; } - - -case $ac_cv_c_inline in - inline | yes) ;; - *) - case $ac_cv_c_inline in - no) ac_val=;; - *) ac_val=$ac_cv_c_inline;; - esac - cat >>confdefs.h <<_ACEOF -#ifndef __cplusplus -#define inline $ac_val -#endif -_ACEOF - ;; -esac - -{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 -$as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if test "${ac_cv_c_const+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -/* FIXME: Include the comments suggested by Paul. */ -#ifndef __cplusplus - /* Ultrix mips cc rejects this. */ - typedef int charset[2]; - const charset cs; - /* SunOS 4.1.1 cc rejects this. */ - char const *const *pcpcc; - char **ppc; - /* NEC SVR4.0.2 mips cc rejects this. */ - struct point {int x, y;}; - static struct point const zero = {0,0}; - /* AIX XL C 1.02.0.0 rejects this. - It does not let you subtract one const X* pointer from another in - an arm of an if-expression whose if-part is not a constant - expression */ - const char *g = "string"; - pcpcc = &g + (g ? g-g : 0); - /* HPUX 7.0 cc rejects these. */ - ++pcpcc; - ppc = (char**) pcpcc; - pcpcc = (char const *const *) ppc; - { /* SCO 3.2v4 cc rejects this. */ - char *t; - char const *s = 0 ? (char *) 0 : (char const *) 0; - - *t++ = 0; - if (s) return 0; - } - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ - int x[] = {25, 17}; - const int *foo = &x[0]; - ++foo; - } - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ - typedef const int *iptr; - iptr p = 0; - ++p; - } - { /* AIX XL C 1.02.0.0 rejects this saying - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; }; - struct s *b; b->j = 5; - } - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; - if (!foo) return 0; - } - return !cs[0] && !zero.x; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_const=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_const=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 -$as_echo "$ac_cv_c_const" >&6; } -if test $ac_cv_c_const = no; then - -cat >>confdefs.h <<\_ACEOF -#define const /**/ -_ACEOF - -fi - - - { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 -$as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if test "${ac_cv_c_bigendian+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_c_bigendian=unknown - # See if we're dealing with a universal compiler. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifndef __APPLE_CC__ - not a universal capable compiler - #endif - typedef int dummy; - -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - - # Check for potential -arch flags. It is not universal unless - # there are some -arch flags. Note that *ppc* also matches - # ppc64. This check is also rather less than ideal. - case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( - *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; - esac -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if test $ac_cv_c_bigendian = unknown; then - # See if sys/param.h defines the BYTE_ORDER macro. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - #include - -int -main () -{ -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ - && LITTLE_ENDIAN) - bogus endian macros - #endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - # It does; now see whether it defined to BIG_ENDIAN or not. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - #include - -int -main () -{ -#if BYTE_ORDER != BIG_ENDIAN - not big endian - #endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_bigendian=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_bigendian=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -int -main () -{ -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) - bogus endian macros - #endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - # It does; now see whether it defined to _BIG_ENDIAN or not. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -int -main () -{ -#ifndef _BIG_ENDIAN - not big endian - #endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_bigendian=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_bigendian=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # Compile a test program. - if test "$cross_compiling" = yes; then - # Try to guess by grepping values from an object file. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -short int ascii_mm[] = - { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - short int ascii_ii[] = - { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; - int use_ascii (int i) { - return ascii_mm[i] + ascii_ii[i]; - } - short int ebcdic_ii[] = - { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - short int ebcdic_mm[] = - { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; - int use_ebcdic (int i) { - return ebcdic_mm[i] + ebcdic_ii[i]; - } - extern int foo; - -int -main () -{ -return use_ascii (foo) == use_ebcdic (foo); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then - ac_cv_c_bigendian=yes - fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then - if test "$ac_cv_c_bigendian" = unknown; then - ac_cv_c_bigendian=no - else - # finding both strings is unlikely to happen, but who knows? - ac_cv_c_bigendian=unknown - fi - fi -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ - - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long int l; - char c[sizeof (long int)]; - } u; - u.l = 1; - return u.c[sizeof (long int) - 1] == 1; - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_c_bigendian=no -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_c_bigendian=yes -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - - fi -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 -$as_echo "$ac_cv_c_bigendian" >&6; } - case $ac_cv_c_bigendian in #( - yes) - cat >>confdefs.h <<\_ACEOF -#define WORDS_BIGENDIAN 1 -_ACEOF -;; #( - no) - ;; #( - universal) - -cat >>confdefs.h <<\_ACEOF -#define AC_APPLE_UNIVERSAL_BUILD 1 -_ACEOF - - ;; #( - *) - { { $as_echo "$as_me:$LINENO: error: unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" >&5 -$as_echo "$as_me: error: unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} - { (exit 1); exit 1; }; } ;; - esac - - -# Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then - enableval=$enable_largefile; -fi - -if test "$enable_largefile" != no; then - - { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 -$as_echo_n "checking for special C compiler options needed for large files... " >&6; } -if test "${ac_cv_sys_largefile_CC+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_sys_largefile_CC=no - if test "$GCC" != yes; then - ac_save_CC=$CC - while :; do - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - CC="$CC -n32" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_largefile_CC=' -n32'; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - break - done - CC=$ac_save_CC - rm -f conftest.$ac_ext - fi -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 -$as_echo "$ac_cv_sys_largefile_CC" >&6; } - if test "$ac_cv_sys_largefile_CC" != no; then - CC=$CC$ac_cv_sys_largefile_CC - fi - - { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } -if test "${ac_cv_sys_file_offset_bits+set}" = set; then - $as_echo_n "(cached) " >&6 -else - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_file_offset_bits=no; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _FILE_OFFSET_BITS 64 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_file_offset_bits=64; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_file_offset_bits=unknown - break -done -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 -$as_echo "$ac_cv_sys_file_offset_bits" >&6; } -case $ac_cv_sys_file_offset_bits in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits -_ACEOF -;; -esac -rm -rf conftest* - if test $ac_cv_sys_file_offset_bits = unknown; then - { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 -$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } -if test "${ac_cv_sys_large_files+set}" = set; then - $as_echo_n "(cached) " >&6 -else - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_large_files=no; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _LARGE_FILES 1 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_large_files=1; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_large_files=unknown - break -done -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 -$as_echo "$ac_cv_sys_large_files" >&6; } -case $ac_cv_sys_large_files in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGE_FILES $ac_cv_sys_large_files -_ACEOF -;; -esac -rm -rf conftest* - fi -fi - -{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 -$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } -if test "${ac_cv_sys_largefile_source+set}" = set; then - $as_echo_n "(cached) " >&6 -else - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include /* for off_t */ - #include -int -main () -{ -int (*fp) (FILE *, off_t, int) = fseeko; - return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_sys_largefile_source=no; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _LARGEFILE_SOURCE 1 -#include /* for off_t */ - #include -int -main () -{ -int (*fp) (FILE *, off_t, int) = fseeko; - return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_sys_largefile_source=1; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_cv_sys_largefile_source=unknown - break -done -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 -$as_echo "$ac_cv_sys_largefile_source" >&6; } -case $ac_cv_sys_largefile_source in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source -_ACEOF -;; -esac -rm -rf conftest* - -# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug -# in glibc 2.1.3, but that breaks too many other things. -# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. -if test $ac_cv_sys_largefile_source != unknown; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_FSEEKO 1 -_ACEOF - -fi - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5 -$as_echo_n "checking size of off_t... " >&6; } -if test "${ac_cv_sizeof_off_t+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo= ac_hi= -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr '(' $ac_mid ')' + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_off_t=$ac_lo;; -'') if test "$ac_cv_type_off_t" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute sizeof (off_t) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } - else - ac_cv_sizeof_off_t=0 - fi ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -static long int longval () { return (long int) (sizeof (off_t)); } -static unsigned long int ulongval () { return (long int) (sizeof (off_t)); } -#include -#include -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (((long int) (sizeof (off_t))) < 0) - { - long int i = longval (); - if (i != ((long int) (sizeof (off_t)))) - return 1; - fprintf (f, "%ld", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ((long int) (sizeof (off_t)))) - return 1; - fprintf (f, "%lu", i); - } - /* Do not output a trailing newline, as this causes \r\n confusion - on some platforms. */ - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_off_t=`cat conftest.val` -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -if test "$ac_cv_type_off_t" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute sizeof (off_t) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } - else - ac_cv_sizeof_off_t=0 - fi -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 -$as_echo "$ac_cv_sizeof_off_t" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_OFF_T $ac_cv_sizeof_off_t -_ACEOF - - - -# Extract the first word of "dbx", so it can be a program name with args. -set dummy dbx; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_DBX+set}" = set; then - $as_echo_n "(cached) " >&6 -else - case $DBX in - [\\/]* | ?:[\\/]*) - ac_cv_path_DBX="$DBX" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no" - ;; -esac -fi -DBX=$ac_cv_path_DBX -if test -n "$DBX"; then - { $as_echo "$as_me:$LINENO: result: $DBX" >&5 -$as_echo "$DBX" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "gdb", so it can be a program name with args. -set dummy gdb; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_GDB+set}" = set; then - $as_echo_n "(cached) " >&6 -else - case $GDB in - [\\/]* | ?:[\\/]*) - ac_cv_path_GDB="$GDB" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no" - ;; -esac -fi -GDB=$ac_cv_path_GDB -if test -n "$GDB"; then - { $as_echo "$as_me:$LINENO: result: $GDB" >&5 -$as_echo "$GDB" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "sdb", so it can be a program name with args. -set dummy sdb; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_SDB+set}" = set; then - $as_echo_n "(cached) " >&6 -else - case $SDB in - [\\/]* | ?:[\\/]*) - ac_cv_path_SDB="$SDB" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no" - ;; -esac -fi -SDB=$ac_cv_path_SDB -if test -n "$SDB"; then - { $as_echo "$as_me:$LINENO: result: $SDB" >&5 -$as_echo "$SDB" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - - -if test $GDB != no ; then - DEBUGGER=$GDB -elif test $DBX != no ; then - DEBUGGER=$DBX -elif test $SDB != no ; then - DEBUGGER=$SDB -else - DEBUGGER=no -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - -for ac_header in inttypes.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 -$as_echo_n "checking for uint32_t... " >&6; } -if test "${ac_cv_type_uint32_t+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_type_uint32_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof (uint32_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof ((uint32_t))) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_uint32_t=yes -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 -$as_echo "$ac_cv_type_uint32_t" >&6; } -if test "x$ac_cv_type_uint32_t" = x""yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_C99_INTTYPES 1 -_ACEOF - -fi - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:$LINENO: checking size of short" >&5 -$as_echo_n "checking size of short... " >&6; } -if test "${ac_cv_sizeof_short+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo= ac_hi= -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr '(' $ac_mid ')' + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_short=$ac_lo;; -'') if test "$ac_cv_type_short" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute sizeof (short) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } - else - ac_cv_sizeof_short=0 - fi ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -static long int longval () { return (long int) (sizeof (short)); } -static unsigned long int ulongval () { return (long int) (sizeof (short)); } -#include -#include -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (((long int) (sizeof (short))) < 0) - { - long int i = longval (); - if (i != ((long int) (sizeof (short)))) - return 1; - fprintf (f, "%ld", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ((long int) (sizeof (short)))) - return 1; - fprintf (f, "%lu", i); - } - /* Do not output a trailing newline, as this causes \r\n confusion - on some platforms. */ - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_short=`cat conftest.val` -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -if test "$ac_cv_type_short" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute sizeof (short) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } - else - ac_cv_sizeof_short=0 - fi -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 -$as_echo "$ac_cv_sizeof_short" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_SHORT $ac_cv_sizeof_short -_ACEOF - - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:$LINENO: checking size of int" >&5 -$as_echo_n "checking size of int... " >&6; } -if test "${ac_cv_sizeof_int+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo= ac_hi= -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr '(' $ac_mid ')' + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_int=$ac_lo;; -'') if test "$ac_cv_type_int" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute sizeof (int) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } - else - ac_cv_sizeof_int=0 - fi ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -static long int longval () { return (long int) (sizeof (int)); } -static unsigned long int ulongval () { return (long int) (sizeof (int)); } -#include -#include -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (((long int) (sizeof (int))) < 0) - { - long int i = longval (); - if (i != ((long int) (sizeof (int)))) - return 1; - fprintf (f, "%ld", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ((long int) (sizeof (int)))) - return 1; - fprintf (f, "%lu", i); - } - /* Do not output a trailing newline, as this causes \r\n confusion - on some platforms. */ - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_int=`cat conftest.val` -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -if test "$ac_cv_type_int" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute sizeof (int) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } - else - ac_cv_sizeof_int=0 - fi -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 -$as_echo "$ac_cv_sizeof_int" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT $ac_cv_sizeof_int -_ACEOF - - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:$LINENO: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if test "${ac_cv_sizeof_long+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo= ac_hi= -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr '(' $ac_mid ')' + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_long=$ac_lo;; -'') if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute sizeof (long) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } - else - ac_cv_sizeof_long=0 - fi ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -static long int longval () { return (long int) (sizeof (long)); } -static unsigned long int ulongval () { return (long int) (sizeof (long)); } -#include -#include -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (((long int) (sizeof (long))) < 0) - { - long int i = longval (); - if (i != ((long int) (sizeof (long)))) - return 1; - fprintf (f, "%ld", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ((long int) (sizeof (long)))) - return 1; - fprintf (f, "%lu", i); - } - /* Do not output a trailing newline, as this causes \r\n confusion - on some platforms. */ - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_long=`cat conftest.val` -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute sizeof (long) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } - else - ac_cv_sizeof_long=0 - fi -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF - - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:$LINENO: checking size of long long" >&5 -$as_echo_n "checking size of long long... " >&6; } -if test "${ac_cv_sizeof_long_long+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo= ac_hi= -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr '(' $ac_mid ')' + 1` -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_long_long=$ac_lo;; -'') if test "$ac_cv_type_long_long" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute sizeof (long long) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } - else - ac_cv_sizeof_long_long=0 - fi ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -static long int longval () { return (long int) (sizeof (long long)); } -static unsigned long int ulongval () { return (long int) (sizeof (long long)); } -#include -#include -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (((long int) (sizeof (long long))) < 0) - { - long int i = longval (); - if (i != ((long int) (sizeof (long long)))) - return 1; - fprintf (f, "%ld", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ((long int) (sizeof (long long)))) - return 1; - fprintf (f, "%lu", i); - } - /* Do not output a trailing newline, as this causes \r\n confusion - on some platforms. */ - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_long_long=`cat conftest.val` -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -if test "$ac_cv_type_long_long" = yes; then - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute sizeof (long long) -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } - else - ac_cv_sizeof_long_long=0 - fi -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 -$as_echo "$ac_cv_sizeof_long_long" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long -_ACEOF - - - -ac_aux_path_sendmail=/usr/sbin:/usr/lib -# Extract the first word of "sendmail", so it can be a program name with args. -set dummy sendmail; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_SENDMAIL+set}" = set; then - $as_echo_n "(cached) " >&6 -else - case $SENDMAIL in - [\\/]* | ?:[\\/]*) - ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_dummy="$PATH:$ac_aux_path_sendmail" -for as_dir in $as_dummy -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail" - ;; -esac -fi -SENDMAIL=$ac_cv_path_SENDMAIL -if test -n "$SENDMAIL"; then - { $as_echo "$as_me:$LINENO: result: $SENDMAIL" >&5 -$as_echo "$SENDMAIL" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - - -cat >>confdefs.h <<_ACEOF -#define SENDMAIL "$ac_cv_path_SENDMAIL" -_ACEOF - - -OPS='$(srcdir)/OPS' - -{ $as_echo "$as_me:$LINENO: checking whether to build with GPGME support" >&5 -$as_echo_n "checking whether to build with GPGME support... " >&6; } -# Check whether --enable-gpgme was given. -if test "${enable_gpgme+set}" = set; then - enableval=$enable_gpgme; if test x$enableval = xyes; then - enable_gpgme=yes - fi - -fi - - -if test x"$enable_gpgme" = xyes; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo -# Check whether --with-gpgme-prefix was given. -if test "${with_gpgme_prefix+set}" = set; then - withval=$with_gpgme_prefix; gpgme_config_prefix="$withval" -else - gpgme_config_prefix="" -fi + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo - if test "x$gpgme_config_prefix" != x ; then - GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config" - fi - # Extract the first word of "gpgme-config", so it can be a program name with args. -set dummy gpgme-config; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then - $as_echo_n "(cached) " >&6 -else - case $GPGME_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------------- ## +## File substitutions. ## +## ------------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi - test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no" - ;; -esac -fi -GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG -if test -n "$GPGME_CONFIG"; then - { $as_echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5 -$as_echo "$GPGME_CONFIG" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h +$as_echo "/* confdefs.h */" > confdefs.h - if test "$GPGME_CONFIG" != "no" ; then - gpgme_version=`$GPGME_CONFIG --version` - fi - gpgme_version_major=`echo $gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` - gpgme_version_minor=`echo $gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` - gpgme_version_micro=`echo $gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` +# Predefined preprocessor variables. - tmp=1.0.0 - if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then - req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` - min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` - else - req_gpgme_api=0 - min_gpgme_version="$tmp" - fi +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF - { $as_echo "$as_me:$LINENO: checking for GPGME - version >= $min_gpgme_version" >&5 -$as_echo_n "checking for GPGME - version >= $min_gpgme_version... " >&6; } - ok=no - if test "$GPGME_CONFIG" != "no" ; then - req_major=`echo $min_gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` - req_minor=`echo $min_gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` - req_micro=`echo $min_gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` - if test "$gpgme_version_major" -gt "$req_major"; then - ok=yes - else - if test "$gpgme_version_major" -eq "$req_major"; then - if test "$gpgme_version_minor" -gt "$req_minor"; then - ok=yes - else - if test "$gpgme_version_minor" -eq "$req_minor"; then - if test "$gpgme_version_micro" -ge "$req_micro"; then - ok=yes - fi - fi - fi - fi - fi - fi - if test $ok = yes; then - # If we have a recent GPGME, we should also check that the - # API is compatible. - if test "$req_gpgme_api" -gt 0 ; then - tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` - if test "$tmp" -gt 0 ; then - if test "$req_gpgme_api" -ne "$tmp" ; then - ok=no - fi - fi - fi - fi - if test $ok = yes; then - GPGME_CFLAGS=`$GPGME_CONFIG --cflags` - GPGME_LIBS=`$GPGME_CONFIG --libs` - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF -cat >>confdefs.h <<\_ACEOF -#define CRYPT_BACKEND_GPGME 1 +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF - else - GPGME_CFLAGS="" - GPGME_LIBS="" - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } - gpgme_found=no - fi +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF - if test x"$gpgme_found" = xno; then - { { $as_echo "$as_me:$LINENO: error: *** GPGME not found ***" >&5 -$as_echo "$as_me: error: *** GPGME not found ***" >&2;} - { (exit 1); exit 1; }; } - else - tmp=1.1.1 - if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then - req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` - min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` - else - req_gpgme_api=0 - min_gpgme_version="$tmp" - fi - { $as_echo "$as_me:$LINENO: checking for GPGME - version >= $min_gpgme_version" >&5 -$as_echo_n "checking for GPGME - version >= $min_gpgme_version... " >&6; } - ok=no - if test "$GPGME_CONFIG" != "no" ; then - req_major=`echo $min_gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` - req_minor=`echo $min_gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` - req_micro=`echo $min_gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` - if test "$gpgme_version_major" -gt "$req_major"; then - ok=yes - else - if test "$gpgme_version_major" -eq "$req_major"; then - if test "$gpgme_version_minor" -gt "$req_minor"; then - ok=yes - else - if test "$gpgme_version_minor" -eq "$req_minor"; then - if test "$gpgme_version_micro" -ge "$req_micro"; then - ok=yes - fi - fi - fi - fi - fi - fi - if test $ok = yes; then - # If we have a recent GPGME, we should also check that the - # API is compatible. - if test "$req_gpgme_api" -gt 0 ; then - tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` - if test "$tmp" -gt 0 ; then - if test "$req_gpgme_api" -ne "$tmp" ; then - ok=no - fi - fi - fi +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + ac_site_file1=$CONFIG_SITE +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" fi - if test $ok = yes; then - GPGME_CFLAGS=`$GPGME_CONFIG --cflags` - GPGME_LIBS=`$GPGME_CONFIG --libs` - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define HAVE_GPGME_PKA_TRUST 1 -_ACEOF +done - else - GPGME_CFLAGS="" - GPGME_LIBS="" - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } - : +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi - - - #needed to get GPGME_LIBS and al correctly - tmp=1.0.0 - if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then - req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` - min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` - else - req_gpgme_api=0 - min_gpgme_version="$tmp" +as_fn_append ac_header_list " stdlib.h" +as_fn_append ac_header_list " unistd.h" +as_fn_append ac_header_list " sys/param.h" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## - { $as_echo "$as_me:$LINENO: checking for GPGME - version >= $min_gpgme_version" >&5 -$as_echo_n "checking for GPGME - version >= $min_gpgme_version... " >&6; } - ok=no - if test "$GPGME_CONFIG" != "no" ; then - req_major=`echo $min_gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` - req_minor=`echo $min_gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` - req_micro=`echo $min_gpgme_version | \ - sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` - if test "$gpgme_version_major" -gt "$req_major"; then - ok=yes - else - if test "$gpgme_version_major" -eq "$req_major"; then - if test "$gpgme_version_minor" -gt "$req_minor"; then - ok=yes - else - if test "$gpgme_version_minor" -eq "$req_minor"; then - if test "$gpgme_version_micro" -ge "$req_micro"; then - ok=yes - fi - fi - fi - fi - fi - fi - if test $ok = yes; then - # If we have a recent GPGME, we should also check that the - # API is compatible. - if test "$req_gpgme_api" -gt 0 ; then - tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` - if test "$tmp" -gt 0 ; then - if test "$req_gpgme_api" -ne "$tmp" ; then - ok=no - fi - fi - fi - fi - if test $ok = yes; then - GPGME_CFLAGS=`$GPGME_CONFIG --cflags` - GPGME_LIBS=`$GPGME_CONFIG --libs` - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -cat >>confdefs.h <<\_ACEOF -#define CRYPT_BACKEND_GPGME 1 -_ACEOF - else - GPGME_CFLAGS="" - GPGME_LIBS="" - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } - : - fi +ac_config_headers="$ac_config_headers config.h" +mutt_cv_version=`cat $srcdir/VERSION` +am__api_version='1.11' - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o" - fi -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 + fi + done +done +if test -z "$ac_aux_dir"; then + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi -# Check whether --enable-pgp was given. -if test "${enable_pgp+set}" = set; then - enableval=$enable_pgp; if test x$enableval = xno ; then - have_pgp=no - fi +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. -fi +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac -if test x$have_pgp != xno ; then + done +IFS=$as_save_IFS -cat >>confdefs.h <<\_ACEOF -#define CRYPT_BACKEND_CLASSIC_PGP 1 -_ACEOF +rm -rf conftest.one conftest.two conftest.dir - PGPAUX_TARGET="pgpring\$(EXEEXT) pgpewrap\$(EXEEXT)" - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o" fi - -# Check whether --enable-smime was given. -if test "${enable_smime+set}" = set; then - enableval=$enable_smime; if test x$enableval = xno ; then - have_smime=no - fi - + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -if test x$have_smime != xno ; then +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -cat >>confdefs.h <<\_ACEOF -#define CRYPT_BACKEND_CLASSIC_SMIME 1 -_ACEOF +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o" - SMIMEAUX_TARGET="smime_keys" -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi -# Check whether --with-mixmaster was given. -if test "${with_mixmaster+set}" = set; then - withval=$with_mixmaster; if test "$withval" != no - then - if test -x "$withval" - then - MIXMASTER="$withval" - else - MIXMASTER="mixmaster" - fi - OPS="$OPS \$(srcdir)/OPS.MIX" - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o" + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` -cat >>confdefs.h <<_ACEOF -#define MIXMASTER "$MIXMASTER" -_ACEOF +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` - fi +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi -# We now require all OPS -OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT " - - - - - -# Extract the first word of "ispell", so it can be a program name with args. -set dummy ispell; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_ISPELL+set}" = set; then +if test "${ac_cv_prog_STRIP+set}" = set; then : $as_echo_n "(cached) " >&6 else - case $ISPELL in - [\\/]* | ?:[\\/]*) - ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS - test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no" - ;; -esac -fi -ISPELL=$ac_cv_path_ISPELL -if test -n "$ISPELL"; then - { $as_echo "$as_me:$LINENO: result: $ISPELL" >&5 -$as_echo "$ISPELL" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test $ISPELL != no; then - -cat >>confdefs.h <<_ACEOF -#define ISPELL "$ISPELL" -_ACEOF - -fi - - -# Check whether --with-slang was given. -if test "${with_slang+set}" = set; then - withval=$with_slang; { $as_echo "$as_me:$LINENO: checking if this is a BSD system" >&5 -$as_echo_n "checking if this is a BSD system... " >&6; } -if test "${mutt_cv_bsdish+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then - mutt_cv_bsdish=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include - -main () -{ -#ifdef BSD - exit (0); -#else - exit (1); -#endif -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - mutt_cv_bsdish=yes -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -mutt_cv_bsdish=no -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi - - fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5 -$as_echo "$mutt_cv_bsdish" >&6; } - - { $as_echo "$as_me:$LINENO: checking for S-Lang" >&5 -$as_echo_n "checking for S-Lang... " >&6; } - if test $withval = yes; then - if test -d $srcdir/../slang; then - mutt_cv_slang=$srcdir/../slang/src - CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}" - LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs" - else - if test -d $mutt_cv_prefix/include/slang; then - CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang" - elif test -d /usr/include/slang; then - CPPFLAGS="$CPPFLAGS -I/usr/include/slang" - fi - mutt_cv_slang=yes - fi - else - if test -f $withval/src/slang.h; then - mutt_cv_slang=$withval/src - CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}" - LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs" - else - mutt_cv_slang=$withval - if test -d $withval/include/slang; then - CPPFLAGS="$CPPFLAGS -I${withval}/include/slang" - elif test -d $withval/include; then - CPPFLAGS="$CPPFLAGS -I${withval}/include" - fi - LDFLAGS="$LDFLAGS -L${withval}/lib" - fi - fi - { $as_echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5 -$as_echo "$mutt_cv_slang" >&6; } - if test $mutt_cv_bsdish = yes; then - -{ $as_echo "$as_me:$LINENO: checking for main in -ltermlib" >&5 -$as_echo_n "checking for main in -ltermlib... " >&6; } -if test "${ac_cv_lib_termlib_main+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltermlib $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_termlib_main=yes +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_termlib_main=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5 -$as_echo "$ac_cv_lib_termlib_main" >&6; } -if test "x$ac_cv_lib_termlib_main" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBTERMLIB 1 -_ACEOF - LIBS="-ltermlib $LIBS" fi - - fi - -cat >>confdefs.h <<\_ACEOF -#define USE_SLANG_CURSES 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_COLOR 1 -_ACEOF - - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o" - - - { $as_echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5 -$as_echo_n "checking for SLtt_get_terminfo in -lslang... " >&6; } -if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lslang -lm $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char SLtt_get_terminfo (); -int -main () -{ -return SLtt_get_terminfo (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_slang_SLtt_get_terminfo=yes + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_cv_lib_slang_SLtt_get_terminfo=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5 -$as_echo "$ac_cv_lib_slang_SLtt_get_terminfo" >&6; } -if test "x$ac_cv_lib_slang_SLtt_get_terminfo" = x""yes; then - MUTTLIBS="$MUTTLIBS -lslang -lm" +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } else - { { $as_echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5 -$as_echo "$as_me: error: unable to compile. check config.log" >&2;} - { (exit 1); exit 1; }; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - - + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi else - mutt_cv_curses=/usr - -# Check whether --with-curses was given. -if test "${with_curses+set}" = set; then - withval=$with_curses; if test $withval != yes; then - mutt_cv_curses=$withval - fi - if test x$mutt_cv_curses != x/usr; then - LDFLAGS="$LDFLAGS -L${mutt_cv_curses}/lib" - CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include" - fi + STRIP="$ac_cv_prog_STRIP" fi +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - { $as_echo "$as_me:$LINENO: checking for initscr" >&5 -$as_echo_n "checking for initscr... " >&6; } -if test "${ac_cv_func_initscr+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if test "${ac_cv_path_mkdir+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define initscr to an innocuous variant, in case declares initscr. - For example, HP-UX 11i declares gettimeofday. */ -#define initscr innocuous_initscr - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char initscr (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS -#undef initscr +fi -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char initscr (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_initscr || defined __stub___initscr -choke me -#endif + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } -int -main () -{ -return initscr (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_initscr=yes + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then : + $as_echo_n "(cached) " >&6 else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_cv_func_initscr=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5 -$as_echo "$ac_cv_func_initscr" >&6; } -if test "x$ac_cv_func_initscr" = x""yes; then - : +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - cf_ncurses="ncurses" - for lib in ncurses ncursesw - do - as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5 -$as_echo_n "checking for waddnwstr in -l$lib... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-l$lib $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char waddnwstr (); -int -main () -{ -return waddnwstr (); - ; - return 0; -} + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_Lib=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Lib=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +rm -f conftest.make fi -ac_res=`eval 'as_val=${'$as_ac_Lib'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Lib'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cf_ncurses="$lib"; break +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" fi - done - as_ac_Lib=`$as_echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5 -$as_echo_n "checking for initscr in -l$cf_ncurses... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. else - ac_check_lib_save_LIBS=$LIBS -LIBS="-l$cf_ncurses $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char initscr (); -int -main () -{ -return initscr (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_Lib=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi - eval "$as_ac_Lib=no" +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -ac_res=`eval 'as_val=${'$as_ac_Lib'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Lib'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - MUTTLIBS="$MUTTLIBS -l$cf_ncurses" - if test "$cf_ncurses" = ncursesw; then +# Define the identity of the package. + PACKAGE=mutt + VERSION=$mutt_cv_version -for ac_header in ncursesw/ncurses.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi +# Some tools Automake needs. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - ;; + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + +CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/VERSION' + + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - cf_cv_ncurses_header="ncursesw/ncurses.h" -fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf - else +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi -for ac_header in ncurses/ncurses.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no + AMDEP_TRUE='#' + AMDEP_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_header_preproc=no +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - cf_cv_ncurses_header="ncurses/ncurses.h" + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi else + CC="$ac_cv_prog_CC" +fi -for ac_header in ncurses.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_header_compiler=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - cf_cv_ncurses_header="ncurses.h" +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -done fi - +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi done + done +IFS=$as_save_IFS - fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -{ $as_echo "$as_me:$LINENO: checking for initscr" >&5 -$as_echo_n "checking for initscr... " >&6; } -if test "${ac_cv_func_initscr+set}" = set; then + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define initscr to an innocuous variant, in case declares initscr. - For example, HP-UX 11i declares gettimeofday. */ -#define initscr innocuous_initscr - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char initscr (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef initscr - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char initscr (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_initscr || defined __stub___initscr -choke me -#endif - -int -main () -{ -return initscr (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_initscr=yes + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_cv_func_initscr=no +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5 -$as_echo "$ac_cv_func_initscr" >&6; } -if test "x$ac_cv_func_initscr" = x""yes; then - : -else -case $host_os in #(vi -freebsd*) #(vi - { $as_echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5 -$as_echo_n "checking for tgoto in -lmytinfo... " >&6; } -if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lmytinfo $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + test -n "$ac_ct_CC" && break +done -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char tgoto (); -int -main () -{ -return tgoto (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_mytinfo_tgoto=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_mytinfo_tgoto=no + CC=$ac_ct_CC + fi fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5 -$as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; } -if test "x$ac_cv_lib_mytinfo_tgoto" = x""yes; then - LIBS="-lmytinfo $LIBS" fi - ;; -hpux10.*|hpux11.*) - { $as_echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5 -$as_echo_n "checking for initscr in -lcur_colr... " >&6; } -if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcur_colr $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char initscr (); -int -main () -{ -return initscr (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "no acceptable C compiler found in \$PATH +See \`config.log' for more details." "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_cur_colr_initscr=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_cur_colr_initscr=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5 -$as_echo "$ac_cv_lib_cur_colr_initscr" >&6; } -if test "x$ac_cv_lib_cur_colr_initscr" = x""yes; then - - LIBS="-lcur_colr $LIBS" - CFLAGS="-I/usr/include/curses_colr $CFLAGS" - ac_cv_func_initscr=yes - -else + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done - { $as_echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5 -$as_echo_n "checking for initscr in -lHcurses... " >&6; } -if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lHcurses $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char initscr (); int main () { -return initscr (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_Hcurses_initscr=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_Hcurses_initscr=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5 -$as_echo "$ac_cv_lib_Hcurses_initscr" >&6; } -if test "x$ac_cv_lib_Hcurses_initscr" = x""yes; then - - # HP's header uses __HP_CURSES, but user claims _HP_CURSES. - LIBS="-lHcurses $LIBS" - CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS" - ac_cv_func_initscr=yes - -fi - -fi - - ;; -linux*) # Suse Linux does not follow /usr/lib convention - LIBS="$LIBS -L/lib" + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; -esac + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= -if test ".$With5lib" != ".no" ; then -if test -d /usr/5lib ; then - # SunOS 3.x or 4.x - CPPFLAGS="$CPPFLAGS -I/usr/5include" - LIBS="$LIBS -L/usr/5lib" -fi +else + ac_file='' fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -if test ".$ac_cv_func_initscr" != .yes ; then - cf_save_LIBS="$LIBS" - cf_term_lib="" - cf_curs_lib="" - - # Check for library containing tgoto. Do this before curses library - # because it may be needed to link the test-case for initscr. - { $as_echo "$as_me:$LINENO: checking for tgoto" >&5 -$as_echo_n "checking for tgoto... " >&6; } -if test "${ac_cv_func_tgoto+set}" = set; then - $as_echo_n "(cached) " >&6 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "C compiler cannot create executables +See \`config.log' for more details." "$LINENO" 5; }; } else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define tgoto to an innocuous variant, in case declares tgoto. - For example, HP-UX 11i declares gettimeofday. */ -#define tgoto innocuous_tgoto - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char tgoto (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef tgoto + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char tgoto (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_tgoto || defined __stub___tgoto -choke me -#endif +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return tgoto (); +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_tgoto=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_tgoto=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." "$LINENO" 5; } + fi + fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5 -$as_echo "$ac_cv_func_tgoto" >&6; } -if test "x$ac_cv_func_tgoto" = x""yes; then - cf_term_lib=predefined -else +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } - for cf_term_lib in termcap termlib unknown - do - as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5 -$as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if test "${ac_cv_objext+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-l$cf_term_lib $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char tgoto (); int main () { -return tgoto (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_Lib=yes" + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_Lib=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of object files: cannot compile +See \`config.log' for more details." "$LINENO" 5; } fi -ac_res=`eval 'as_val=${'$as_ac_Lib'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Lib'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - break +rm -f conftest.$ac_cv_objext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - done +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu - - # Check for library containing initscr - test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS" - for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown - do - as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5 -$as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-l$cf_curs_lib $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char initscr (); int main () { -return initscr (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_Lib=yes" +if ac_fn_c_try_compile "$LINENO"; then : + else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - eval "$as_ac_Lib=no" -fi +int +main () +{ -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes fi -ac_res=`eval 'as_val=${'$as_ac_Lib'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Lib'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - break +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - done - test $cf_curs_lib = unknown && { { $as_echo "$as_me:$LINENO: error: no curses library found" >&5 -$as_echo "$as_me: error: no curses library found" >&2;} - { (exit 1); exit 1; }; } +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - LIBS="-l$cf_curs_lib $cf_save_LIBS" - if test "$cf_term_lib" = unknown ; then - { $as_echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5 -$as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <${cf_cv_ncurses_header-curses.h}> +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; int main () { -initscr() +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - cf_result=yes +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done - cf_result=no + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - { $as_echo "$as_me:$LINENO: result: $cf_result" >&5 -$as_echo "$cf_result" >&6; } - test $cf_result = no && { { $as_echo "$as_me:$LINENO: error: Cannot link curses library" >&5 -$as_echo "$as_me: error: Cannot link curses library" >&2;} - { (exit 1); exit 1; }; } - elif test "$cf_term_lib" != predefined ; then - { $as_echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 -$as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <${cf_cv_ncurses_header-curses.h}> -int -main () -{ -initscr(); tgoto((char *)0, 0, 0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - cf_result=no +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi - LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <${cf_cv_ncurses_header-curses.h}> -int -main () -{ -initscr() - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - cf_result=yes + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then : + $as_echo_n "(cached) " >&6 else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : - cf_result=error +else + # Broken: fails on valid input. +continue fi +rm -f conftest.err conftest.$ac_ext -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break fi +rm -f conftest.err conftest.$ac_ext -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - { $as_echo "$as_me:$LINENO: result: $cf_result" >&5 -$as_echo "$cf_result" >&6; } - fi +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break fi + done + ac_cv_prog_CPP=$CPP fi - -fi - - + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP fi - - - old_LIBS="$LIBS" - LIBS="$LIBS $MUTTLIBS" - for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes do - -{ $as_echo "$as_me:$LINENO: checking for $ac_func declaration" >&5 -$as_echo_n "checking for $ac_func declaration... " >&6; } -if { as_var=ac_cv_func_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <${cf_cv_ncurses_header-curses.h}> -int -main () -{ -#ifndef ${ac_func} -extern int ${ac_func}(); -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <${cf_cv_ncurses_header-curses.h}> -int -main () -{ -#ifndef ${ac_func} -int (*p)() = ${ac_func}; +#ifdef __STDC__ +# include +#else +# include #endif - ; - return 0; -} + Syntax error _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_cpp "$LINENO"; then : -eval "ac_cv_func_decl_$ac_func=yes" else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -eval "ac_cv_func_decl_$ac_func=no" + # Broken: fails on valid input. +continue fi +rm -f conftest.err conftest.$ac_ext -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -eval "ac_cv_func_decl_$ac_func=yes" + # Passes both tests. +ac_preproc_ok=: +break fi +rm -f conftest.err conftest.$ac_ext -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : -if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." "$LINENO" 5; } +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'` - cat >>confdefs.h <<_ACEOF -#define $ac_tr_func 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if test "${ac_cv_path_GREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + ac_cv_path_GREP=$GREP fi -done - if test "$ac_cv_func_decl_start_color" = yes; then +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" -cat >>confdefs.h <<\_ACEOF -#define HAVE_COLOR 1 -_ACEOF - fi - if test "$ac_cv_func_decl_resizeterm" = yes; then - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o" - fi - LIBS="$old_LIBS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if test "${ac_cv_path_EGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } -if test "${ac_cv_header_stdc+set}" = set; then +if test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -11780,48 +4307,23 @@ main () return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no + ac_cv_header_stdc=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : + $EGREP "memchr" >/dev/null 2>&1; then : + else ac_cv_header_stdc=no fi @@ -11831,18 +4333,14 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : + $EGREP "free" >/dev/null 2>&1; then : + else ac_cv_header_stdc=no fi @@ -11852,14 +4350,10 @@ fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : : else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -11883,492 +4377,37 @@ main () if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - - - - - - -for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -for ac_header in sys/time.h sys/resource.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -for ac_header in unix.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : - ac_header_preproc=no +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +$as_echo "#define STDC_HEADERS 1" >>confdefs.h - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -12379,1214 +4418,827 @@ done - -for ac_func in setrlimit getsid -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = x""yes; then : + MINIX=yes else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + MINIX= +fi -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif + if test "$MINIX" = yes; then -#undef $ac_func +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h - eval "$as_ac_var=no" -fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +$as_echo "#define _MINIX 1" >>confdefs.h -fi -done + fi -{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 -$as_echo_n "checking return type of signal handlers... " >&6; } -if test "${ac_cv_type_signal+set}" = set; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include +# define __EXTENSIONS__ 1 + $ac_includes_default int main () { -return *(signal (0, 0)) (0) == 1; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_signal=int +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_signal=void + ac_cv_safe_to_define___extensions__=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 -$as_echo "$ac_cv_type_signal" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define RETSIGTYPE $ac_cv_type_signal -_ACEOF + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h -{ $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5 -$as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "sig_atomic_t" >/dev/null 2>&1; then - ac_cv_type_sig_atomic_t=yes; - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then - is_sig_atomic_t_volatile=yes; - { $as_echo "$as_me:$LINENO: result: yes, volatile" >&5 -$as_echo "yes, volatile" >&6; } +ALL_LINGUAS="de eu ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg ga" -else +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - is_sig_atomic_t_volatile=no; - { $as_echo "$as_me:$LINENO: result: yes, non volatile" >&5 -$as_echo "yes, non volatile" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if test "${ac_cv_build+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi -rm -f conftest* - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } - { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 -$as_echo_n "checking for sig_atomic_t... " >&6; } -if test "${ac_cv_type_sig_atomic_t+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if test "${ac_cv_host+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_cv_type_sig_atomic_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof (sig_atomic_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof ((sig_atomic_t))) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi - ac_cv_type_sig_atomic_t=yes fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix" >&5 +$as_echo_n "checking for prefix... " >&6; } +if test x$prefix = xNONE; then + mutt_cv_prefix=$ac_default_prefix else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + mutt_cv_prefix=$prefix +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_prefix" >&5 +$as_echo "$mutt_cv_prefix" >&6; } +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 -$as_echo "$ac_cv_type_sig_atomic_t" >&6; } -if test "x$ac_cv_type_sig_atomic_t" = x""yes; then - : +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - -cat >>confdefs.h <<_ACEOF -#define sig_atomic_t int -_ACEOF - -fi - - is_sig_atomic_t_volatile=no - + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f conftest* - -if test $is_sig_atomic_t_volatile = 'yes' -then - cat >>confdefs.h <<\_ACEOF -#define SIG_ATOMIC_VOLATILE_T sig_atomic_t -_ACEOF -else - cat >>confdefs.h <<\_ACEOF -#define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t -_ACEOF fi - -{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 -$as_echo_n "checking whether sys_siglist is declared... " >&6; } -if test "${ac_cv_have_decl_sys_siglist+set}" = set; then +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -/* NetBSD declares sys_siglist in unistd.h. */ -#ifdef HAVE_UNISTD_H -# include -#endif - - -int -main () -{ -#ifndef sys_siglist - (void) sys_siglist; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_sys_siglist=yes + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_cv_have_decl_sys_siglist=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 -$as_echo "$ac_cv_have_decl_sys_siglist" >&6; } -if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SYS_SIGLIST 1 -_ACEOF - - +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SYS_SIGLIST 0 -_ACEOF - - + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - - - -{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5 -$as_echo_n "checking for pid_t... " >&6; } -if test "${ac_cv_type_pid_t+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_type_pid_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof (pid_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof ((pid_t))) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : + CC=$ac_ct_CC + fi else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_pid_t=yes + CC="$ac_cv_prog_CC" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 -$as_echo "$ac_cv_type_pid_t" >&6; } -if test "x$ac_cv_type_pid_t" = x""yes; then - : +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -cat >>confdefs.h <<_ACEOF -#define pid_t int -_ACEOF + fi fi - -{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 -$as_echo_n "checking for ssize_t... " >&6; } -if test "${ac_cv_type_ssize_t+set}" = set; then +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_cv_type_ssize_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof (ssize_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof ((ssize_t))) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_cv_type_ssize_t=yes +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 -$as_echo "$ac_cv_type_ssize_t" >&6; } -if test "x$ac_cv_type_ssize_t" = x""yes; then - : +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - -cat >>confdefs.h <<_ACEOF -#define ssize_t int -_ACEOF - + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - - - - - -for ac_func in fgetpos memmove setegid srand48 strerror + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - eval "$as_ac_var=no" fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -done + test -n "$ac_ct_CC" && break +done + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi +fi +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "no acceptable C compiler found in \$PATH +See \`config.log' for more details." "$LINENO" 5; } +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done -for ac_func in setenv strcasecmp strdup strsep strtok_r wcscasecmp -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif int main () { -return $ac_func (); +#ifndef __GNUC__ + choke me +#endif + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_compiler_gnu=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes else - case " $LIBOBJS " in - *" $ac_func.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" - ;; -esac - + GCC= fi -done - - - - -for ac_func in strcasestr mkdtemp -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ int main () { -return $ac_func (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - eval "$as_ac_var=no" -fi +int +main () +{ -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 + ; + return 0; +} _ACEOF +if ac_fn_c_try_compile "$LINENO"; then : else - case " $LIBOBJS " in - *" $ac_func.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" - ;; -esac - -fi -done - + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main () +{ -{ $as_echo "$as_me:$LINENO: checking for getopt" >&5 -$as_echo_n "checking for getopt... " >&6; } -if test "${ac_cv_func_getopt+set}" = set; then + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define getopt to an innocuous variant, in case declares getopt. - For example, HP-UX 11i declares gettimeofday. */ -#define getopt innocuous_getopt - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char getopt (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} -#undef getopt +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char getopt (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_getopt || defined __stub___getopt -choke me -#endif +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; int main () { -return getopt (); +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_getopt=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_getopt=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5 -$as_echo "$ac_cv_func_getopt" >&6; } - -if test $ac_cv_func_getopt = yes; then +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC -for ac_header in getopt.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if test "x$ac_cv_prog_cc_c89" != xno; then : - ac_header_compiler=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +depcc="$CC" am_compiler_list= - ac_header_preproc=no -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir else - eval "$as_ac_Header=\$ac_header_preproc" + am_cv_CC_dependencies_compiler_type=none fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= fi -done - -fi -SNPRINTFOBJS="" -{ $as_echo "$as_me:$LINENO: checking for snprintf" >&5 -$as_echo_n "checking for snprintf... " >&6; } -if test "${ac_cv_func_snprintf+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 +$as_echo_n "checking for library containing strerror... " >&6; } +if test "${ac_cv_search_strerror+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define snprintf to an innocuous variant, in case declares snprintf. - For example, HP-UX 11i declares gettimeofday. */ -#define snprintf innocuous_snprintf - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char snprintf (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef snprintf /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC @@ -13594,2148 +5246,2061 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char snprintf (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_snprintf || defined __stub___snprintf -choke me -#endif - +char strerror (); int main () { -return snprintf (); +return strerror (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_snprintf=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_snprintf=no +for ac_lib in '' cposix; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_strerror=$ac_res fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if test "${ac_cv_search_strerror+set}" = set; then : + break fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 -$as_echo "$ac_cv_func_snprintf" >&6; } -if test "x$ac_cv_func_snprintf" = x""yes; then - mutt_cv_func_snprintf=yes +done +if test "${ac_cv_search_strerror+set}" = set; then : + else - mutt_cv_func_snprintf=no + ac_cv_search_strerror=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 +$as_echo "$ac_cv_search_strerror" >&6; } +ac_res=$ac_cv_search_strerror +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" -{ $as_echo "$as_me:$LINENO: checking for vsnprintf" >&5 -$as_echo_n "checking for vsnprintf... " >&6; } -if test "${ac_cv_func_vsnprintf+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define vsnprintf to an innocuous variant, in case declares vsnprintf. - For example, HP-UX 11i declares gettimeofday. */ -#define vsnprintf innocuous_vsnprintf +fi -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char vsnprintf (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 +$as_echo_n "checking for function prototypes... " >&6; } +if test "$ac_cv_prog_cc_c89" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } -#ifdef __STDC__ -# include -#else -# include -#endif +$as_echo "#define PROTOTYPES 1" >>confdefs.h -#undef vsnprintf -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char vsnprintf (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_vsnprintf || defined __stub___vsnprintf -choke me -#endif +$as_echo "#define __PROTOTYPES 1" >>confdefs.h -int -main () -{ -return vsnprintf (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_vsnprintf=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_vsnprintf=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 -$as_echo "$ac_cv_func_vsnprintf" >&6; } -if test "x$ac_cv_func_vsnprintf" = x""yes; then - mutt_cv_func_vsnprintf=yes -else - mutt_cv_func_vsnprintf=no -fi -if test $mutt_cv_func_snprintf = yes; then -{ $as_echo "$as_me:$LINENO: checking whether your system's snprintf is C99 compliant" >&5 -$as_echo_n "checking whether your system's snprintf is C99 compliant... " >&6; } -if test "${mutt_cv_c99_snprintf+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then - mutt_cv_c99_snprintf=no +if test "$ac_cv_prog_cc_stdc" != no; then + U= ANSI2KNR= else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -#include -int main() -{ - char buf[8]; - int len = snprintf(buf, 4, "1234567"); - return (len != 7 || buf[3] != '\0'); -} + U=_ ANSI2KNR=./ansi2knr +fi +# Ensure some checks needed by ansi2knr itself. +for ac_header in string.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" +if test "x$ac_cv_header_string_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRING_H 1 _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - mutt_cv_c99_snprintf=yes -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -mutt_cv_c99_snprintf=no -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi +done + +if test "x$U" != "x"; then + as_fn_error "Compiler not ANSI compliant" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_c99_snprintf" >&5 -$as_echo "$mutt_cv_c99_snprintf" >&6; } -else - mutt_cv_c99_snprintf=no +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= fi -if test $mutt_cv_func_vsnprintf = yes; then -{ $as_echo "$as_me:$LINENO: checking whether your system's vsnprintf is C99 compliant" >&5 -$as_echo_n "checking whether your system's vsnprintf is C99 compliant... " >&6; } -if test "${mutt_cv_c99_vsnprintf+set}" = set; then +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - mutt_cv_c99_vsnprintf=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : -#include -#include -int foo(const char *fmt, ...) -{ - char buf[8]; - int len; - va_list ap; - va_start(ap, fmt); - len = vsnprintf(buf, 4, fmt, ap); - va_end(ap); - return (len != 7 || buf[3] != '\0'); -} - -int main() -{ - return foo("%s", "1234567"); -} +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - mutt_cv_c99_vsnprintf=yes +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -mutt_cv_c99_vsnprintf=no + # Passes both tests. +ac_preproc_ok=: +break fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break fi + done + ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_c99_vsnprintf" >&5 -$as_echo "$mutt_cv_c99_vsnprintf" >&6; } + CPP=$ac_cv_prog_CPP else - mutt_cv_c99_vsnprintf=no + ac_cv_prog_CPP=$CPP fi -if test $mutt_cv_c99_snprintf = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SNPRINTF 1 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error _ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : +else + # Broken: fails on valid input. +continue fi -if test $mutt_cv_c99_vsnprintf = yes; then +rm -f conftest.err conftest.$ac_ext -cat >>confdefs.h <<\_ACEOF -#define HAVE_VSNPRINTF 1 + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include _ACEOF - +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break fi -if test $mutt_cv_c99_snprintf = no -o $mutt_cv_c99_vsnprintf = no; then - case " $LIBOBJS " in - *" snprintf.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" - ;; -esac +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." "$LINENO" 5; } fi -{ $as_echo "$as_me:$LINENO: checking for va_copy" >&5 -$as_echo_n "checking for va_copy... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -va_list ap1, ap2; va_copy(ap1, ap2); - ; - return 0; -} +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - { $as_echo "$as_me:$LINENO: result: va_copy" >&5 -$as_echo "va_copy" >&6; } +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -va_list ap1, ap2; __va_copy(ap1, ap2); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - cat >>confdefs.h <<\_ACEOF -#define va_copy __va_copy -_ACEOF +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - { $as_echo "$as_me:$LINENO: result: __va_copy" >&5 -$as_echo "__va_copy" >&6; } +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - cat >>confdefs.h <<\_ACEOF -#define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list)) -_ACEOF + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi - { $as_echo "$as_me:$LINENO: result: memcpy" >&5 -$as_echo "memcpy" >&6; } +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AR+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + if test "x$ac_ct_AR" = x; then + AR="ar" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +else + AR="$ac_cv_prog_AR" +fi -for ac_func in ftruncate -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if test "${ac_cv_c_inline+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } #endif -int -main () -{ -return $ac_func (); - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } -else +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac -{ $as_echo "$as_me:$LINENO: checking for chsize in -lx" >&5 -$as_echo_n "checking for chsize in -lx... " >&6; } -if test "${ac_cv_lib_x_chsize+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if test "${ac_cv_c_const+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lx $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char chsize (); int main () { -return chsize (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_x_chsize=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +/* FIXME: Include the comments suggested by Paul. */ +#ifndef __cplusplus + /* Ultrix mips cc rejects this. */ + typedef int charset[2]; + const charset cs; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this. */ + char *t; + char const *s = 0 ? (char *) 0 : (char const *) 0; - ac_cv_lib_x_chsize=no -fi + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; }; + struct s *b; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5 -$as_echo "$ac_cv_lib_x_chsize" >&6; } -if test "x$ac_cv_lib_x_chsize" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBX 1 + ; + return 0; +} _ACEOF - - LIBS="-lx $LIBS" - +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no fi - +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then +$as_echo "#define const /**/" >>confdefs.h +fi -for ac_func in strftime -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if test "${ac_cv_c_bigendian+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : -#ifdef __STDC__ -# include -#else -# include -#endif + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include -#undef $ac_func +int +main () +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ + && LITTLE_ENDIAN) + bogus endian macros + #endif -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include int main () { -return $ac_func (); +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_cv_c_bigendian=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -else +int +main () +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif -{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 -$as_echo_n "checking for strftime in -lintl... " >&6; } -if test "${ac_cv_lib_intl_strftime+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lintl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char strftime (); int main () { -return strftime (); +#ifndef _BIG_ENDIAN + not big endian + #endif + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_intl_strftime=yes +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_intl_strftime=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + ac_cv_c_bigendian=no fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 -$as_echo "$ac_cv_lib_intl_strftime" >&6; } -if test "x$ac_cv_lib_intl_strftime" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBINTL 1 -_ACEOF - - LIBS="-lintl $LIBS" - +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes; then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + extern int foo; +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi fi -done - - - -for ac_func in fchdir -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - +$ac_includes_default int main () { -return $ac_func (); + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian=no else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_cv_c_bigendian=yes fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - mutt_cv_fchdir=no + fi fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + ;; #( + *) + as_fn_error "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac -# Check whether --with-regex was given. -if test "${with_regex+set}" = set; then - withval=$with_regex; mutt_cv_regex=yes -else -for ac_func in regcomp -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then +# Check whether --enable-largefile was given. +if test "${enable_largefile+set}" = set; then : + enableval=$enable_largefile; +fi + +if test "$enable_largefile" != no; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +$as_echo_n "checking for special C compiler options needed for large files... " >&6; } +if test "${ac_cv_sys_largefile_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_cv_sys_largefile_CC=no + if test "$GCC" != yes; then + ac_save_CC=$CC + while :; do + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; int main () { -return $ac_func (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + if ac_fn_c_try_compile "$LINENO"; then : + break fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - mutt_cv_regex=no -else - mutt_cv_regex=yes +rm -f core conftest.err conftest.$ac_objext + CC="$CC -n32" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_largefile_CC=' -n32'; break fi -done - +rm -f core conftest.err conftest.$ac_objext + break + done + CC=$ac_save_CC + rm -f conftest.$ac_ext + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +$as_echo "$ac_cv_sys_largefile_CC" >&6; } + if test "$ac_cv_sys_largefile_CC" != no; then + CC=$CC$ac_cv_sys_largefile_CC + fi - -if test $mutt_cv_regex = no ; then -{ $as_echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5 -$as_echo_n "checking whether your system's regexp library is completely broken... " >&6; } -if test "${mutt_cv_regex_broken+set}" = set; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if test "${ac_cv_sys_file_offset_bits+set}" = set; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - mutt_cv_regex_broken=yes -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ -#include -#include -main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); } -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - mutt_cv_regex_broken=no -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -mutt_cv_regex_broken=yes -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5 -$as_echo "$mutt_cv_regex_broken" >&6; } - if test $mutt_cv_regex_broken = yes ; then - echo "Using the included GNU regex instead." >&6 - mutt_cv_regex=yes - fi -fi - -if test $mutt_cv_regex = yes; then - -cat >>confdefs.h <<\_ACEOF -#define USE_GNU_REGEX 1 + ; + return 0; +} _ACEOF - - case " $LIBOBJS " in - *" regex.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS regex.$ac_objext" - ;; -esac - -fi - - - -# Check whether --with-homespool was given. -if test "${with_homespool+set}" = set; then - withval=$with_homespool; with_homespool=${withval} +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=no; break fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _FILE_OFFSET_BITS 64 +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ -if test x$with_homespool != x; then - if test $with_homespool = yes; then - with_homespool=mailbox - fi - -cat >>confdefs.h <<_ACEOF -#define MAILPATH "$with_homespool" -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HOMESPOOL 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define USE_DOTLOCK 1 + ; + return 0; +} _ACEOF - - mutt_cv_setgid=no -else - -# Check whether --with-mailpath was given. -if test "${with_mailpath+set}" = set; then - withval=$with_mailpath; mutt_cv_mailpath=$withval -else - { $as_echo "$as_me:$LINENO: checking where new mail is stored" >&5 -$as_echo_n "checking where new mail is stored... " >&6; } -if test "${mutt_cv_mailpath+set}" = set; then - $as_echo_n "(cached) " >&6 -else - mutt_cv_mailpath=no - if test -d /var/mail; then - mutt_cv_mailpath=/var/mail - elif test -d /var/spool/mail; then - mutt_cv_mailpath=/var/spool/mail - elif test -d /usr/spool/mail; then - mutt_cv_mailpath=/usr/spool/mail - elif test -d /usr/mail; then - mutt_cv_mailpath=/usr/mail - fi +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=64; break fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5 -$as_echo "$mutt_cv_mailpath" >&6; } - +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_file_offset_bits=unknown + break +done fi - - if test "$mutt_cv_mailpath" = no; then - { { $as_echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5 -$as_echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;} - { (exit 1); exit 1; }; } - fi - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +case $ac_cv_sys_file_offset_bits in #( + no | unknown) ;; + *) cat >>confdefs.h <<_ACEOF -#define MAILPATH "$mutt_cv_mailpath" +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits _ACEOF - - - { $as_echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5 -$as_echo_n "checking if $mutt_cv_mailpath is world writable... " >&6; } -if test "${mutt_cv_worldwrite+set}" = set; then +;; +esac +rm -rf conftest* + if test $ac_cv_sys_file_offset_bits = unknown; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } +if test "${ac_cv_sys_large_files+set}" = set; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - mutt_cv_worldwrite=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include -#include -#include - -int main (int argc, char **argv) + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () { - struct stat s; - stat ("$mutt_cv_mailpath", &s); - if (s.st_mode & S_IWOTH) exit (0); - exit (1); + ; + return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - mutt_cv_worldwrite=yes -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -mutt_cv_worldwrite=no -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=no; break fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _LARGE_FILES 1 +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ - + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=1; break fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5 -$as_echo "$mutt_cv_worldwrite" >&6; } - - mutt_cv_setgid=no - if test $mutt_cv_worldwrite = yes; then - -cat >>confdefs.h <<\_ACEOF -#define USE_DOTLOCK 1 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_large_files=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +$as_echo "$ac_cv_sys_large_files" >&6; } +case $ac_cv_sys_large_files in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +#define _LARGE_FILES $ac_cv_sys_large_files _ACEOF +;; +esac +rm -rf conftest* + fi +fi - else - - { $as_echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5 -$as_echo_n "checking if $mutt_cv_mailpath is group writable... " >&6; } -if test "${mutt_cv_groupwrite+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 +$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } +if test "${ac_cv_sys_largefile_source+set}" = set; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - mutt_cv_groupwrite=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include /* for off_t */ + #include +int +main () +{ +int (*fp) (FILE *, off_t, int) = fseeko; + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_sys_largefile_source=no; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#include - -int main (int argc, char **argv) +#define _LARGEFILE_SOURCE 1 +#include /* for off_t */ + #include +int +main () { - struct stat s; - - stat ("$mutt_cv_mailpath", &s); - if (s.st_mode & S_IWGRP) exit (0); - exit (1); +int (*fp) (FILE *, off_t, int) = fseeko; + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); + ; + return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_sys_largefile_source=1; break +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_cv_sys_largefile_source=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 +$as_echo "$ac_cv_sys_largefile_source" >&6; } +case $ac_cv_sys_largefile_source in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source +_ACEOF +;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - mutt_cv_groupwrite=yes -else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +rm -rf conftest* + +# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug +# in glibc 2.1.3, but that breaks too many other things. +# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. +if test $ac_cv_sys_largefile_source != unknown; then + +$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h -( exit $ac_status ) -mutt_cv_groupwrite=no -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 +$as_echo_n "checking size of off_t... " >&6; } +if test "${ac_cv_sizeof_off_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : + +else + if test "$ac_cv_type_off_t" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "cannot compute sizeof (off_t) +See \`config.log' for more details." "$LINENO" 5; }; } + else + ac_cv_sizeof_off_t=0 + fi +fi fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5 -$as_echo "$mutt_cv_groupwrite" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 +$as_echo "$ac_cv_sizeof_off_t" >&6; } - if test $mutt_cv_groupwrite = yes; then -cat >>confdefs.h <<\_ACEOF -#define USE_DOTLOCK 1 + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_OFF_T $ac_cv_sizeof_off_t _ACEOF -cat >>confdefs.h <<\_ACEOF -#define USE_SETGID 1 -_ACEOF - mutt_cv_setgid=yes - fi - fi +# Extract the first word of "dbx", so it can be a program name with args. +set dummy dbx; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_DBX+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $DBX in + [\\/]* | ?:[\\/]*) + ac_cv_path_DBX="$DBX" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no" + ;; +esac +fi +DBX=$ac_cv_path_DBX +if test -n "$DBX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBX" >&5 +$as_echo "$DBX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -# Check whether --enable-external_dotlock was given. -if test "${enable_external_dotlock+set}" = set; then - enableval=$enable_external_dotlock; mutt_cv_external_dotlock="$enableval" + +# Extract the first word of "gdb", so it can be a program name with args. +set dummy gdb; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_GDB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $GDB in + [\\/]* | ?:[\\/]*) + ac_cv_path_GDB="$GDB" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no" + ;; +esac fi - - -if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \ - || test "x$mutt_cv_external_dotlock" = "xyes" -then - -cat >>confdefs.h <<\_ACEOF -#define DL_STANDALONE 1 -_ACEOF - - DOTLOCK_TARGET="mutt_dotlock\$(EXEEXT)" +GDB=$ac_cv_path_GDB +if test -n "$GDB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5 +$as_echo "$GDB" >&6; } else - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi +# Extract the first word of "sdb", so it can be a program name with args. +set dummy sdb; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_SDB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $SDB in + [\\/]* | ?:[\\/]*) + ac_cv_path_SDB="$SDB" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -if test -z "$datarootdir"; then - datarootdir='${prefix}/share' + test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no" + ;; +esac +fi +SDB=$ac_cv_path_SDB +if test -n "$SDB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDB" >&5 +$as_echo "$SDB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ $as_echo "$as_me:$LINENO: checking where to put the documentation" >&5 -$as_echo_n "checking where to put the documentation... " >&6; } -# Check whether --with-docdir was given. -if test "${with_docdir+set}" = set; then - withval=$with_docdir; mutt_cv_docdir=$withval +if test $GDB != no ; then + DEBUGGER=$GDB +elif test $DBX != no ; then + DEBUGGER=$DBX +elif test $SDB != no ; then + DEBUGGER=$SDB else - mutt_cv_docdir='${datarootdir}/doc/mutt' + DEBUGGER=no fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5 -$as_echo "$mutt_cv_docdir" >&6; } -docdir=$mutt_cv_docdir -if test x$mutt_cv_setgid = xyes; then - DOTLOCK_GROUP='mail' - DOTLOCK_PERMISSION=2755 -else - DOTLOCK_GROUP='' - DOTLOCK_PERMISSION=755 -fi -# Check whether --with-domain was given. -if test "${with_domain+set}" = set; then - withval=$with_domain; if test $withval != yes; then - if test $withval != no; then -cat >>confdefs.h <<_ACEOF -#define DOMAIN "$withval" -_ACEOF - fi - fi -fi -need_socket="no" -# Check whether --enable-pop was given. -if test "${enable_pop+set}" = set; then - enableval=$enable_pop; if test x$enableval = xyes ; then -cat >>confdefs.h <<\_ACEOF -#define USE_POP 1 +for ac_header in inttypes.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" +if test "x$ac_cv_header_inttypes_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_INTTYPES_H 1 _ACEOF - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o" - need_pop="yes" - need_socket="yes" - need_md5="yes" - fi - fi +done -# Check whether --enable-imap was given. -if test "${enable_imap+set}" = set; then - enableval=$enable_imap; if test x$enableval = xyes ; then - -cat >>confdefs.h <<\_ACEOF -#define USE_IMAP 1 -_ACEOF +ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" +if test "x$ac_cv_type_uint32_t" = x""yes; then : - LIBIMAP="-Limap -limap" - LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a" - need_imap="yes" - need_socket="yes" - need_md5="yes" - fi +$as_echo "#define HAVE_C99_INTTYPES 1" >>confdefs.h fi - if test x$need_imap = xyes; then - BUILD_IMAP_TRUE= - BUILD_IMAP_FALSE='#' +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 +$as_echo_n "checking size of short... " >&6; } +if test "${ac_cv_sizeof_short+set}" = set; then : + $as_echo_n "(cached) " >&6 else - BUILD_IMAP_TRUE='#' - BUILD_IMAP_FALSE= -fi - - -# Check whether --enable-smtp was given. -if test "${enable_smtp+set}" = set; then - enableval=$enable_smtp; if test $enableval = yes; then + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : -cat >>confdefs.h <<\_ACEOF -#define USE_SMTP 1 -_ACEOF +else + if test "$ac_cv_type_short" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "cannot compute sizeof (short) +See \`config.log' for more details." "$LINENO" 5; }; } + else + ac_cv_sizeof_short=0 + fi +fi - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smtp.o" - need_socket="yes" - fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 +$as_echo "$ac_cv_sizeof_short" >&6; } -if test x"$need_imap" = xyes -o x"$need_pop" = xyes ; then - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS bcache.o" -fi +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SHORT $ac_cv_sizeof_short +_ACEOF -if test "$need_socket" = "yes" -then -for ac_header in sys/select.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if test "${ac_cv_sizeof_int+set}" = set; then : $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : - ac_header_compiler=no +else + if test "$ac_cv_type_int" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "cannot compute sizeof (int) +See \`config.log' for more details." "$LINENO" 5; }; } + else + ac_cv_sizeof_int=0 + fi fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if test "${ac_cv_sizeof_long+set}" = set; then : $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : +else + if test "$ac_cv_type_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "cannot compute sizeof (long) +See \`config.log' for more details." "$LINENO" 5; }; } + else + ac_cv_sizeof_long=0 + fi fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } -done - { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 -$as_echo_n "checking for socklen_t... " >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "socklen_t" >/dev/null 2>&1; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } + + +# The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +$as_echo_n "checking size of long long... " >&6; } +if test "${ac_cv_sizeof_long_long+set}" = set; then : + $as_echo_n "(cached) " >&6 else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : -cat >>confdefs.h <<\_ACEOF -#define socklen_t int -_ACEOF +else + if test "$ac_cv_type_long_long" = yes; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "cannot compute sizeof (long long) +See \`config.log' for more details." "$LINENO" 5; }; } + else + ac_cv_sizeof_long_long=0 + fi +fi fi -rm -f conftest* +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +$as_echo "$ac_cv_sizeof_long_long" >&6; } - { $as_echo "$as_me:$LINENO: checking for gethostent" >&5 -$as_echo_n "checking for gethostent... " >&6; } -if test "${ac_cv_func_gethostent+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define gethostent to an innocuous variant, in case declares gethostent. - For example, HP-UX 11i declares gettimeofday. */ -#define gethostent innocuous_gethostent -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char gethostent (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +_ACEOF -#undef gethostent -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char gethostent (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_gethostent || defined __stub___gethostent -choke me -#endif + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 +$as_echo_n "checking for long long int... " >&6; } +if test "${ac_cv_type_long_long_int+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + /* Test preprocessor. */ + #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) + error in preprocessor; + #endif + #if ! (18446744073709551615ULL <= -1ull) + error in preprocessor; + #endif + /* Test literals. */ + long long int ll = 9223372036854775807ll; + long long int nll = -9223372036854775807LL; + unsigned long long int ull = 18446744073709551615ULL; + /* Test constant expressions. */ + typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) + ? 1 : -1)]; + typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 + ? 1 : -1)]; + int i = 63; int main () { -return gethostent (); +/* Test availability of runtime routines for shift and division. */ + long long int llmax = 9223372036854775807ll; + unsigned long long int ullmax = 18446744073709551615ull; + return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) + | (llmax / ll) | (llmax % ll) + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) + | (ullmax / ull) | (ullmax % ull)); ; return 0; } -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_gethostent=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_gethostent=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5 -$as_echo "$ac_cv_func_gethostent" >&6; } -if test "x$ac_cv_func_gethostent" = x""yes; then - : -else -{ $as_echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5 -$as_echo_n "checking for gethostent in -lnsl... " >&6; } -if test "${ac_cv_lib_nsl_gethostent+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lnsl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test "$cross_compiling" = yes; then : + ac_cv_type_long_long_int=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char gethostent (); +#include + #ifndef LLONG_MAX + # define HALF \ + (1LL << (sizeof (long long int) * CHAR_BIT - 2)) + # define LLONG_MAX (HALF - 1 + HALF) + #endif int main () { -return gethostent (); +long long int n = 1; + int i; + for (i = 0; ; i++) + { + long long int m = n << i; + if (m >> i != n) + return 1; + if (LLONG_MAX / 2 < m) + break; + } + return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_nsl_gethostent=yes +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_type_long_long_int=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_type_long_long_int=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - ac_cv_lib_nsl_gethostent=no +else + ac_cv_type_long_long_int=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 +$as_echo "$ac_cv_type_long_long_int" >&6; } + if test $ac_cv_type_long_long_int = yes; then -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h + + fi + + +ac_aux_path_sendmail=/usr/sbin:/usr/lib +# Extract the first word of "sendmail", so it can be a program name with args. +set dummy sendmail; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_SENDMAIL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $SENDMAIL in + [\\/]* | ?:[\\/]*) + ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:$ac_aux_path_sendmail" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail" + ;; +esac fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5 -$as_echo "$ac_cv_lib_nsl_gethostent" >&6; } -if test "x$ac_cv_lib_nsl_gethostent" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBNSL 1 +SENDMAIL=$ac_cv_path_SENDMAIL +if test -n "$SENDMAIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5 +$as_echo "$SENDMAIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +cat >>confdefs.h <<_ACEOF +#define SENDMAIL "$ac_cv_path_SENDMAIL" _ACEOF - LIBS="-lnsl $LIBS" + +OPS='$(srcdir)/OPS' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GPGME support" >&5 +$as_echo_n "checking whether to build with GPGME support... " >&6; } +# Check whether --enable-gpgme was given. +if test "${enable_gpgme+set}" = set; then : + enableval=$enable_gpgme; if test x$enableval = xyes; then + enable_gpgme=yes + fi fi + +if test x"$enable_gpgme" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +# Check whether --with-gpgme-prefix was given. +if test "${with_gpgme_prefix+set}" = set; then : + withval=$with_gpgme_prefix; gpgme_config_prefix="$withval" +else + gpgme_config_prefix="" fi - { $as_echo "$as_me:$LINENO: checking for setsockopt" >&5 -$as_echo_n "checking for setsockopt... " >&6; } -if test "${ac_cv_func_setsockopt+set}" = set; then + if test "x$gpgme_config_prefix" != x ; then + GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config" + fi + # Extract the first word of "gpgme-config", so it can be a program name with args. +set dummy gpgme-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define setsockopt to an innocuous variant, in case declares setsockopt. - For example, HP-UX 11i declares gettimeofday. */ -#define setsockopt innocuous_setsockopt + case $GPGME_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char setsockopt (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no" + ;; +esac +fi +GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG +if test -n "$GPGME_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGME_CONFIG" >&5 +$as_echo "$GPGME_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + if test "$GPGME_CONFIG" != "no" ; then + gpgme_version=`$GPGME_CONFIG --version` + fi + gpgme_version_major=`echo $gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` + gpgme_version_minor=`echo $gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` + gpgme_version_micro=`echo $gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` + + tmp=1.0.0 + if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then + req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` + min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` + else + req_gpgme_api=0 + min_gpgme_version="$tmp" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME - version >= $min_gpgme_version" >&5 +$as_echo_n "checking for GPGME - version >= $min_gpgme_version... " >&6; } + ok=no + if test "$GPGME_CONFIG" != "no" ; then + req_major=`echo $min_gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` + req_minor=`echo $min_gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` + req_micro=`echo $min_gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` + if test "$gpgme_version_major" -gt "$req_major"; then + ok=yes + else + if test "$gpgme_version_major" -eq "$req_major"; then + if test "$gpgme_version_minor" -gt "$req_minor"; then + ok=yes + else + if test "$gpgme_version_minor" -eq "$req_minor"; then + if test "$gpgme_version_micro" -ge "$req_micro"; then + ok=yes + fi + fi + fi + fi + fi + fi + if test $ok = yes; then + # If we have a recent GPGME, we should also check that the + # API is compatible. + if test "$req_gpgme_api" -gt 0 ; then + tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` + if test "$tmp" -gt 0 ; then + if test "$req_gpgme_api" -ne "$tmp" ; then + ok=no + fi + fi + fi + fi + if test $ok = yes; then + GPGME_CFLAGS=`$GPGME_CONFIG --cflags` + GPGME_LIBS=`$GPGME_CONFIG --libs` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define CRYPT_BACKEND_GPGME 1" >>confdefs.h + + else + GPGME_CFLAGS="" + GPGME_LIBS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + gpgme_found=no + fi -#ifdef __STDC__ -# include -#else -# include -#endif -#undef setsockopt -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char setsockopt (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_setsockopt || defined __stub___setsockopt -choke me -#endif + if test x"$gpgme_found" = xno; then + as_fn_error "*** GPGME not found ***" "$LINENO" 5 + else + tmp=1.1.1 + if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then + req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` + min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` + else + req_gpgme_api=0 + min_gpgme_version="$tmp" + fi -int -main () -{ -return setsockopt (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_setsockopt=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME - version >= $min_gpgme_version" >&5 +$as_echo_n "checking for GPGME - version >= $min_gpgme_version... " >&6; } + ok=no + if test "$GPGME_CONFIG" != "no" ; then + req_major=`echo $min_gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` + req_minor=`echo $min_gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` + req_micro=`echo $min_gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` + if test "$gpgme_version_major" -gt "$req_major"; then + ok=yes + else + if test "$gpgme_version_major" -eq "$req_major"; then + if test "$gpgme_version_minor" -gt "$req_minor"; then + ok=yes + else + if test "$gpgme_version_minor" -eq "$req_minor"; then + if test "$gpgme_version_micro" -ge "$req_micro"; then + ok=yes + fi + fi + fi + fi + fi + fi + if test $ok = yes; then + # If we have a recent GPGME, we should also check that the + # API is compatible. + if test "$req_gpgme_api" -gt 0 ; then + tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` + if test "$tmp" -gt 0 ; then + if test "$req_gpgme_api" -ne "$tmp" ; then + ok=no + fi + fi + fi + fi + if test $ok = yes; then + GPGME_CFLAGS=`$GPGME_CONFIG --cflags` + GPGME_LIBS=`$GPGME_CONFIG --libs` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } - ac_cv_func_setsockopt=no -fi +$as_echo "#define HAVE_GPGME_PKA_TRUST 1" >>confdefs.h -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 -$as_echo "$ac_cv_func_setsockopt" >&6; } -if test "x$ac_cv_func_setsockopt" = x""yes; then - : -else + else + GPGME_CFLAGS="" + GPGME_LIBS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + : + fi -{ $as_echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 -$as_echo_n "checking for setsockopt in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_setsockopt+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsocket $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char setsockopt (); -int -main () -{ -return setsockopt (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_socket_setsockopt=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_lib_socket_setsockopt=no -fi + #needed to get GPGME_LIBS and al correctly + tmp=1.0.0 + if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then + req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` + min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` + else + req_gpgme_api=0 + min_gpgme_version="$tmp" + fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 -$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } -if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSOCKET 1 -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME - version >= $min_gpgme_version" >&5 +$as_echo_n "checking for GPGME - version >= $min_gpgme_version... " >&6; } + ok=no + if test "$GPGME_CONFIG" != "no" ; then + req_major=`echo $min_gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` + req_minor=`echo $min_gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` + req_micro=`echo $min_gpgme_version | \ + sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` + if test "$gpgme_version_major" -gt "$req_major"; then + ok=yes + else + if test "$gpgme_version_major" -eq "$req_major"; then + if test "$gpgme_version_minor" -gt "$req_minor"; then + ok=yes + else + if test "$gpgme_version_minor" -eq "$req_minor"; then + if test "$gpgme_version_micro" -ge "$req_micro"; then + ok=yes + fi + fi + fi + fi + fi + fi + if test $ok = yes; then + # If we have a recent GPGME, we should also check that the + # API is compatible. + if test "$req_gpgme_api" -gt 0 ; then + tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` + if test "$tmp" -gt 0 ; then + if test "$req_gpgme_api" -ne "$tmp" ; then + ok=no + fi + fi + fi + fi + if test $ok = yes; then + GPGME_CFLAGS=`$GPGME_CONFIG --cflags` + GPGME_LIBS=`$GPGME_CONFIG --libs` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } - LIBS="-lsocket $LIBS" +$as_echo "#define CRYPT_BACKEND_GPGME 1" >>confdefs.h -fi + else + GPGME_CFLAGS="" + GPGME_LIBS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + : + fi -fi -for ac_func in getaddrinfo -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o" + fi else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +# Check whether --enable-pgp was given. +if test "${enable_pgp+set}" = set; then : + enableval=$enable_pgp; if test x$enableval = xno ; then + have_pgp=no + fi -#ifdef __STDC__ -# include -#else -# include -#endif +fi -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +if test x$have_pgp != xno ; then -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define CRYPT_BACKEND_CLASSIC_PGP 1" >>confdefs.h - eval "$as_ac_var=no" + PGPAUX_TARGET="pgpring\$(EXEEXT) pgpewrap\$(EXEEXT)" + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o" fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +# Check whether --enable-smime was given. +if test "${enable_smime+set}" = set; then : + enableval=$enable_smime; if test x$enableval = xno ; then + have_smime=no + fi + fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + +if test x$have_smime != xno ; then + +$as_echo "#define CRYPT_BACKEND_CLASSIC_SMIME 1" >>confdefs.h + + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o" + SMIMEAUX_TARGET="smime_keys" fi -done -cat >>confdefs.h <<\_ACEOF -#define USE_SOCKET 1 +# Check whether --with-mixmaster was given. +if test "${with_mixmaster+set}" = set; then : + withval=$with_mixmaster; if test "$withval" != no + then + if test -x "$withval" + then + MIXMASTER="$withval" + else + MIXMASTER="mixmaster" + fi + OPS="$OPS \$(srcdir)/OPS.MIX" + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o" + +cat >>confdefs.h <<_ACEOF +#define MIXMASTER "$MIXMASTER" _ACEOF - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o" + fi fi +# We now require all OPS +OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT " -# Check whether --with-gss was given. -if test "${with_gss+set}" = set; then - withval=$with_gss; gss_prefix="$withval" -else - gss_prefix="no" -fi -if test "$gss_prefix" != "no" -then - if test "$need_imap" = "yes" - then - GSSAPI_PREFIX=$gss_prefix - GSSAPI_IMPL="none" - saved_CPPFLAGS="$CPPFLAGS" - saved_LDFLAGS="$LDFLAGS" - saved_LIBS="$LIBS" - if test "$GSSAPI_PREFIX" != "yes" - then - krb5_path="$GSSAPI_PREFIX/bin" - else - krb5_path="$PATH" - fi - # Extract the first word of "krb5-config", so it can be a program name with args. -set dummy krb5-config; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 + + +# Extract the first word of "ispell", so it can be a program name with args. +set dummy ispell; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then +if test "${ac_cv_path_ISPELL+set}" = set; then : $as_echo_n "(cached) " >&6 else - case $KRB5CFGPATH in + case $ISPELL in [\\/]* | ?:[\\/]*) - ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path. + ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $krb5_path +for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS - test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none" + test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no" ;; esac fi -KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH -if test -n "$KRB5CFGPATH"; then - { $as_echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5 -$as_echo "$KRB5CFGPATH" >&6; } +ISPELL=$ac_cv_path_ISPELL +if test -n "$ISPELL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELL" >&5 +$as_echo "$ISPELL" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi - if test "$KRB5CFGPATH" != "none" - then - GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`" - GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`" - case "`$KRB5CFGPATH --version`" in - "Kerberos 5 "*) GSSAPI_IMPL="MIT";; - ?eimdal*) GSSAPI_IMPL="Heimdal";; - *) GSSAPI_IMPL="Unknown";; - esac - else - if test "$GSSAPI_PREFIX" != "yes" - then - GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include" - GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib" - CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS" - LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS" - fi +if test $ISPELL != no; then - { $as_echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 -$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } -if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then +cat >>confdefs.h <<_ACEOF +#define ISPELL "$ISPELL" +_ACEOF + +fi + + +# Check whether --with-slang was given. +if test "${with_slang+set}" = set; then : + withval=$with_slang; { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a BSD system" >&5 +$as_echo_n "checking if this is a BSD system... " >&6; } +if test "${mutt_cv_bsdish+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + mutt_cv_bsdish=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +main () +{ +#ifdef BSD + exit (0); +#else + exit (1); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + mutt_cv_bsdish=yes +else + mutt_cv_bsdish=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_bsdish" >&5 +$as_echo "$mutt_cv_bsdish" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S-Lang" >&5 +$as_echo_n "checking for S-Lang... " >&6; } + if test $withval = yes; then + if test -d $srcdir/../slang; then + mutt_cv_slang=$srcdir/../slang/src + CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}" + LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs" + else + if test -d $mutt_cv_prefix/include/slang; then + CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang" + elif test -d /usr/include/slang; then + CPPFLAGS="$CPPFLAGS -I/usr/include/slang" + fi + mutt_cv_slang=yes + fi + else + if test -f $withval/src/slang.h; then + mutt_cv_slang=$withval/src + CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}" + LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs" + else + mutt_cv_slang=$withval + if test -d $withval/include/slang; then + CPPFLAGS="$CPPFLAGS -I${withval}/include/slang" + elif test -d $withval/include; then + CPPFLAGS="$CPPFLAGS -I${withval}/include" + fi + LDFLAGS="$LDFLAGS -L${withval}/lib" + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_slang" >&5 +$as_echo "$mutt_cv_slang" >&6; } + if test $mutt_cv_bsdish = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermlib" >&5 +$as_echo_n "checking for main in -ltermlib... " >&6; } +if test "${ac_cv_lib_termlib_main+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +LIBS="-ltermlib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main () +{ +return main (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_termlib_main=yes +else + ac_cv_lib_termlib_main=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_main" >&5 +$as_echo "$ac_cv_lib_termlib_main" >&6; } +if test "x$ac_cv_lib_termlib_main" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBTERMLIB 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + LIBS="-ltermlib $LIBS" + +fi + + fi + +$as_echo "#define USE_SLANG_CURSES 1" >>confdefs.h + + +$as_echo "#define HAVE_COLOR 1" >>confdefs.h + + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o" + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLtt_get_terminfo in -lslang" >&5 +$as_echo_n "checking for SLtt_get_terminfo in -lslang... " >&6; } +if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lslang -lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -15744,73 +7309,66 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char gss_init_sec_context (); +char SLtt_get_terminfo (); int main () { -return gss_init_sec_context (); +return SLtt_get_terminfo (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_slang_SLtt_get_terminfo=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_gssapi_krb5_gss_init_sec_context=no + ac_cv_lib_slang_SLtt_get_terminfo=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 -$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } -if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = x""yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5 +$as_echo "$ac_cv_lib_slang_SLtt_get_terminfo" >&6; } +if test "x$ac_cv_lib_slang_SLtt_get_terminfo" = x""yes; then : + MUTTLIBS="$MUTTLIBS -lslang -lm" +else + as_fn_error "unable to compile. check config.log" "$LINENO" 5 +fi - GSSAPI_IMPL="MIT", - GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" + +else + mutt_cv_curses=/usr + +# Check whether --with-curses was given. +if test "${with_curses+set}" = set; then : + withval=$with_curses; if test $withval != yes; then + mutt_cv_curses=$withval + fi + if test x$mutt_cv_curses != x/usr; then + LDFLAGS="$LDFLAGS -L${mutt_cv_curses}/lib" + CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include" + fi fi - if test "$GSSAPI_IMPL" = "none" - then - { $as_echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 -$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } -if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then + ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr" +if test "x$ac_cv_func_initscr" = x""yes; then : + +else + + cf_ncurses="ncurses" + for lib in ncurses ncursesw + do + as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for waddnwstr in -l$lib" >&5 +$as_echo_n "checking for waddnwstr in -l$lib... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +LIBS="-l$lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -15819,75 +7377,42 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char gss_init_sec_context (); +char waddnwstr (); int main () { -return gss_init_sec_context (); +return waddnwstr (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_gssapi_gss_init_sec_context=yes +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_gssapi_gss_init_sec_context=no + eval "$as_ac_Lib=no" fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 -$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } -if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = x""yes; then - - GSSAPI_IMPL="Heimdal" - GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken" - GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err" - +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + cf_ncurses="$lib"; break fi - fi - - if test "$GSSAPI_IMPL" = "none" - then - { $as_echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5 -$as_echo_n "checking for g_order_init in -lgssapi_krb5... " >&6; } -if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then + done + as_ac_Lib=`$as_echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_ncurses" >&5 +$as_echo_n "checking for initscr in -l$cf_ncurses... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +LIBS="-l$cf_ncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -15896,208 +7421,88 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char g_order_init (); +char initscr (); int main () { -return g_order_init (); +return initscr (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_gssapi_krb5_g_order_init=yes +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_gssapi_krb5_g_order_init=no + eval "$as_ac_Lib=no" fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5 -$as_echo "$ac_cv_lib_gssapi_krb5_g_order_init" >&6; } -if test "x$ac_cv_lib_gssapi_krb5_g_order_init" = x""yes; then - - GSSAPI_IMPL="OldMIT", - GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err" +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + MUTTLIBS="$MUTTLIBS -l$cf_ncurses" + if test "$cf_ncurses" = ncursesw; then + for ac_header in ncursesw/ncurses.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default" +if test "x$ac_cv_header_ncursesw_ncurses_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_NCURSESW_NCURSES_H 1 +_ACEOF + cf_cv_ncurses_header="ncursesw/ncurses.h" fi - fi - fi - - CPPFLAGS="$saved_CPPFLAGS" - LDFLAGS="$saved_LDFLAGS" - LIBS="$saved_LIBS" - - { $as_echo "$as_me:$LINENO: checking GSSAPI implementation" >&5 -$as_echo_n "checking GSSAPI implementation... " >&6; } - { $as_echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5 -$as_echo "$GSSAPI_IMPL" >&6; } - if test "$GSSAPI_IMPL" = "none" - then - cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. +done + else + for ac_header in ncurses/ncurses.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default" +if test "x$ac_cv_header_ncurses_ncurses_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_NCURSES_NCURSES_H 1 _ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - { $as_echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5 -$as_echo "GSSAPI libraries not found" >&6; } - fi - if test "$GSSAPI_IMPL" = "Heimdal" - then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_HEIMDAL 1 + cf_cv_ncurses_header="ncurses/ncurses.h" +else + for ac_header in ncurses.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" +if test "x$ac_cv_header_ncurses_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_NCURSES_H 1 _ACEOF + cf_cv_ncurses_header="ncurses.h" +fi - fi - CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS" - MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS" - -cat >>confdefs.h <<\_ACEOF -#define USE_GSS 1 -_ACEOF +done - need_gss="yes" - else - { $as_echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5 -$as_echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;} - fi -fi - if test x$need_gss = xyes; then - USE_GSS_TRUE= - USE_GSS_FALSE='#' -else - USE_GSS_TRUE='#' - USE_GSS_FALSE= fi +done + fi +else +ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr" +if test "x$ac_cv_func_initscr" = x""yes; then : -# Check whether --with-ssl was given. -if test "${with_ssl+set}" = set; then - withval=$with_ssl; if test "$with_ssl" != "no" - then - if test "$need_socket" != "yes"; then - { $as_echo "$as_me:$LINENO: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&5 -$as_echo "$as_me: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&2;} - else - if test "$with_ssl" != "yes" - then - LDFLAGS="$LDFLAGS -L$withval/lib" - CPPFLAGS="$CPPFLAGS -I$withval/include" - fi - saved_LIBS="$LIBS" +else - crypto_libs="" - { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5 -$as_echo_n "checking for deflate in -lz... " >&6; } -if test "${ac_cv_lib_z_deflate+set}" = set; then +case $host_os in #(vi +freebsd*) #(vi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5 +$as_echo_n "checking for tgoto in -lmytinfo... " >&6; } +if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lz $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +LIBS="-lmytinfo $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -16106,67 +7511,40 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char deflate (); +char tgoto (); int main () { -return deflate (); +return tgoto (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_z_deflate=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_mytinfo_tgoto=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_z_deflate=no + ac_cv_lib_mytinfo_tgoto=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 -$as_echo "$ac_cv_lib_z_deflate" >&6; } -if test "x$ac_cv_lib_z_deflate" = x""yes; then - crypto_libs=-lz +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5 +$as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; } +if test "x$ac_cv_lib_mytinfo_tgoto" = x""yes; then : + LIBS="-lmytinfo $LIBS" fi - { $as_echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5 -$as_echo_n "checking for X509_new in -lcrypto... " >&6; } -if test "${ac_cv_lib_crypto_X509_new+set}" = set; then + ;; +hpux10.*|hpux11.*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5 +$as_echo_n "checking for initscr in -lcur_colr... " >&6; } +if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lcrypto $crypto_libs $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +LIBS="-lcur_colr $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -16175,68 +7553,42 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char X509_new (); +char initscr (); int main () { -return X509_new (); +return initscr (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_crypto_X509_new=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_cur_colr_initscr=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_crypto_X509_new=no -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + ac_cv_lib_cur_colr_initscr=no fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5 -$as_echo "$ac_cv_lib_crypto_X509_new" >&6; } -if test "x$ac_cv_lib_crypto_X509_new" = x""yes; then - crypto_libs="-lcrypto $crypto_libs" +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5 +$as_echo "$ac_cv_lib_cur_colr_initscr" >&6; } +if test "x$ac_cv_lib_cur_colr_initscr" = x""yes; then : + LIBS="-lcur_colr $LIBS" + CFLAGS="-I/usr/include/curses_colr $CFLAGS" + ac_cv_func_initscr=yes -{ $as_echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5 -$as_echo_n "checking for SSL_new in -lssl... " >&6; } -if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5 +$as_echo_n "checking for initscr in -lHcurses... " >&6; } +if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lssl $crypto_libs $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +LIBS="-lHcurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -16245,98 +7597,75 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char SSL_new (); +char initscr (); int main () { -return SSL_new (); +return initscr (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_ssl_SSL_new=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_Hcurses_initscr=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_ssl_SSL_new=no + ac_cv_lib_Hcurses_initscr=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5 -$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; } -if test "x$ac_cv_lib_ssl_SSL_new" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSSL 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5 +$as_echo "$ac_cv_lib_Hcurses_initscr" >&6; } +if test "x$ac_cv_lib_Hcurses_initscr" = x""yes; then : - LIBS="-lssl $LIBS" + # HP's header uses __HP_CURSES, but user claims _HP_CURSES. + LIBS="-lHcurses $LIBS" + CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS" + ac_cv_func_initscr=yes -else - { { $as_echo "$as_me:$LINENO: error: Unable to find SSL library" >&5 -$as_echo "$as_me: error: Unable to find SSL library" >&2;} - { (exit 1); exit 1; }; } fi +fi - LIBS="$LIBS $crypto_libs" + ;; +linux*) # Suse Linux does not follow /usr/lib convention + LIBS="$LIBS -L/lib" + ;; +esac +if test ".$With5lib" != ".no" ; then +if test -d /usr/5lib ; then + # SunOS 3.x or 4.x + CPPFLAGS="$CPPFLAGS -I/usr/5include" + LIBS="$LIBS -L/usr/5lib" +fi +fi -for ac_func in RAND_status RAND_egd -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then +if test ".$ac_cv_func_initscr" != .yes ; then + cf_save_LIBS="$LIBS" + cf_term_lib="" + cf_curs_lib="" + + # Check for library containing tgoto. Do this before curses library + # because it may be needed to link the test-case for initscr. + ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto" +if test "x$ac_cv_func_tgoto" = x""yes; then : + cf_term_lib=predefined +else + + for cf_term_lib in termcap termlib unknown + do + as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5 +$as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$cf_term_lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC @@ -16344,124 +7673,50 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - +char tgoto (); int main () { -return $ac_func (); +return tgoto (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_ac_Lib=no" fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - - -cat >>confdefs.h <<\_ACEOF -#define USE_SSL 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define USE_SSL_OPENSSL 1 -_ACEOF - - LIBS="$saved_LIBS" - MUTTLIBS="$MUTTLIBS -lssl $crypto_libs" - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o" - need_ssl=yes - fi - fi - +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + break fi + done - -# Check whether --with-gnutls was given. -if test "${with_gnutls+set}" = set; then - withval=$with_gnutls; gnutls_prefix="$withval" -else - gnutls_prefix="no" fi -if test "$gnutls_prefix" != "no" && test x"$need_ssl" != xyes -then - if test "$need_socket" != "yes" - then - { $as_echo "$as_me:$LINENO: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&5 -$as_echo "$as_me: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&2;} - else - if test "$gnutls_prefix" != "yes" - then - LDFLAGS="$LDFLAGS -L$gnutls_prefix/lib" - CPPFLAGS="$CPPFLAGS -I$gnutls_prefix/include" - fi - saved_LIBS="$LIBS" - { $as_echo "$as_me:$LINENO: checking for gnutls_check_version in -lgnutls" >&5 -$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; } -if test "${ac_cv_lib_gnutls_gnutls_check_version+set}" = set; then + # Check for library containing initscr + test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS" + for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown + do + as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5 +$as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; } +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lgnutls $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +LIBS="-l$cf_curs_lib $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -16470,700 +7725,821 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char gnutls_check_version (); +char initscr (); int main () { -return gnutls_check_version (); +return initscr (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_gnutls_gnutls_check_version=yes +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +eval as_val=\$$as_ac_Lib + if test "x$as_val" = x""yes; then : + break +fi + + done + test $cf_curs_lib = unknown && as_fn_error "no curses library found" "$LINENO" 5 + + LIBS="-l$cf_curs_lib $cf_save_LIBS" + if test "$cf_term_lib" = unknown ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5 +$as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <${cf_cv_ncurses_header-curses.h}> +int +main () +{ +initscr() + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + cf_result=yes +else + cf_result=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5 +$as_echo "$cf_result" >&6; } + test $cf_result = no && as_fn_error "Cannot link curses library" "$LINENO" 5 + elif test "$cf_term_lib" != predefined ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 +$as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <${cf_cv_ncurses_header-curses.h}> +int +main () +{ +initscr(); tgoto((char *)0, 0, 0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + cf_result=no +else + + LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <${cf_cv_ncurses_header-curses.h}> +int +main () +{ +initscr() + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + cf_result=yes +else + cf_result=error +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5 +$as_echo "$cf_result" >&6; } + fi +fi + - ac_cv_lib_gnutls_gnutls_check_version=no fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5 -$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; } -if test "x$ac_cv_lib_gnutls_gnutls_check_version" = x""yes; then - { $as_echo "$as_me:$LINENO: checking whether GNUTLS_VERIFY_DISABLE_TIME_CHECKS is declared" >&5 -$as_echo_n "checking whether GNUTLS_VERIFY_DISABLE_TIME_CHECKS is declared... " >&6; } -if test "${ac_cv_have_decl_GNUTLS_VERIFY_DISABLE_TIME_CHECKS+set}" = set; then + + +fi + + + old_LIBS="$LIBS" + LIBS="$LIBS $MUTTLIBS" + for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm +do + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_func declaration" >&5 +$as_echo_n "checking for $ac_func declaration... " >&6; } +if { as_var=ac_cv_func_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - +#include <${cf_cv_ncurses_header-curses.h}> int main () { -#ifndef GNUTLS_VERIFY_DISABLE_TIME_CHECKS - (void) GNUTLS_VERIFY_DISABLE_TIME_CHECKS; +#ifndef ${ac_func} +extern int ${ac_func}(); #endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <${cf_cv_ncurses_header-curses.h}> +int +main () +{ +#ifndef ${ac_func} +int (*p)() = ${ac_func}; +#endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_GNUTLS_VERIFY_DISABLE_TIME_CHECKS=yes +if ac_fn_c_try_compile "$LINENO"; then : + +eval "ac_cv_func_decl_$ac_func=yes" else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_GNUTLS_VERIFY_DISABLE_TIME_CHECKS=no +eval "ac_cv_func_decl_$ac_func=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GNUTLS_VERIFY_DISABLE_TIME_CHECKS" >&5 -$as_echo "$ac_cv_have_decl_GNUTLS_VERIFY_DISABLE_TIME_CHECKS" >&6; } -if test "x$ac_cv_have_decl_GNUTLS_VERIFY_DISABLE_TIME_CHECKS" = x""yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GNUTLS_VERIFY_DISABLE_TIME_CHECKS 1 -_ACEOF - - else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GNUTLS_VERIFY_DISABLE_TIME_CHECKS 0 -_ACEOF - +eval "ac_cv_func_decl_$ac_func=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi +if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } - LIBS="$saved_LIBS" - MUTTLIBS="$MUTTLIBS -lgnutls" - - -cat >>confdefs.h <<\_ACEOF -#define USE_SSL 1 -_ACEOF - +ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'` -cat >>confdefs.h <<\_ACEOF -#define USE_SSL_GNUTLS 1 + cat >>confdefs.h <<_ACEOF +#define $ac_tr_func 1 _ACEOF - - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o" - need_ssl=yes -else - { { $as_echo "$as_me:$LINENO: error: could not find libgnutls" >&5 -$as_echo "$as_me: error: could not find libgnutls" >&2;} - { (exit 1); exit 1; }; } -fi - - fi -fi - - if test x$need_ssl = xyes; then - USE_SSL_TRUE= - USE_SSL_FALSE='#' else - USE_SSL_TRUE='#' - USE_SSL_FALSE= + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi +done + if test "$ac_cv_func_decl_start_color" = yes; then +$as_echo "#define HAVE_COLOR 1" >>confdefs.h -# Check whether --with-sasl was given. -if test "${with_sasl+set}" = set; then - withval=$with_sasl; - if test "$with_sasl" != "no" - then - if test "$need_socket" != "yes" - then - { { $as_echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5 -$as_echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;} - { (exit 1); exit 1; }; } - fi - - if test "$with_sasl" != "yes" - then - CPPFLAGS="$CPPFLAGS -I$with_sasl/include" - LDFLAGS="$LDFLAGS -L$with_sasl/lib" - fi + fi + if test "$ac_cv_func_decl_resizeterm" = yes; then + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o" + fi + LIBS="$old_LIBS" - saved_LIBS="$LIBS" +fi -{ $as_echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5 -$as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; } -if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsasl2 $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include +#include +#include +#include -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sasl_client_init (); int main () { -return sasl_client_init (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_sasl2_sasl_client_init=yes +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_sasl2_sasl_client_init=no + ac_cv_header_stdc=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5 -$as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; } -if test "x$ac_cv_lib_sasl2_sasl_client_init" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSASL2 1 -_ACEOF +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include - LIBS="-lsasl2 $LIBS" +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : else - { { $as_echo "$as_me:$LINENO: error: could not find libsasl2" >&5 -$as_echo "$as_me: error: could not find libsasl2" >&2;} - { (exit 1); exit 1; }; } + ac_cv_header_stdc=no fi +rm -f conftest* +fi - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o" - MUTTLIBS="$MUTTLIBS -lsasl2" - LIBS="$saved_LIBS" +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -cat >>confdefs.h <<\_ACEOF -#define USE_SASL 1 _ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : - need_sasl=yes - fi +else + ac_cv_header_stdc=no +fi +rm -f conftest* fi - if test x$need_sasl = xyes; then - USE_SASL_TRUE= - USE_SASL_FALSE='#' +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : else - USE_SASL_TRUE='#' - USE_SASL_FALSE= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then +$as_echo "#define STDC_HEADERS 1" >>confdefs.h -# Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then - enableval=$enable_debug; if test x$enableval = xyes ; then +fi -cat >>confdefs.h <<\_ACEOF -#define DEBUG 1 -_ACEOF - fi +for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF fi +done -# Check whether --enable-flock was given. -if test "${enable_flock+set}" = set; then - enableval=$enable_flock; if test $enableval = yes; then - -cat >>confdefs.h <<\_ACEOF -#define USE_FLOCK 1 +for ac_header in sys/time.h sys/resource.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - fi fi +done + +for ac_header in unix.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "unix.h" "ac_cv_header_unix_h" "$ac_includes_default" +if test "x$ac_cv_header_unix_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_UNIX_H 1 +_ACEOF -mutt_cv_fcntl=yes -# Check whether --enable-fcntl was given. -if test "${enable_fcntl+set}" = set; then - enableval=$enable_fcntl; if test $enableval = no; then mutt_cv_fcntl=no; fi fi +done -if test $mutt_cv_fcntl = yes; then -cat >>confdefs.h <<\_ACEOF -#define USE_FCNTL 1 +for ac_func in setrlimit getsid +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi +done -{ $as_echo "$as_me:$LINENO: checking whether struct dirent defines d_ino" >&5 -$as_echo_n "checking whether struct dirent defines d_ino... " >&6; } -ac_cv_dirent_d_ino=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 +$as_echo_n "checking return type of signal handlers... " >&6; } +if test "${ac_cv_type_signal+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +#include + int main () { -struct dirent dp; (void)dp.d_ino +return *(signal (0, 0)) (0) == 1; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_dirent_d_ino=yes +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_signal=int +else + ac_cv_type_signal=void +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 +$as_echo "$ac_cv_type_signal" >&6; } + +cat >>confdefs.h <<_ACEOF +#define RETSIGTYPE $ac_cv_type_signal +_ACEOF + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5 +$as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "sig_atomic_t" >/dev/null 2>&1; then : + + ac_cv_type_sig_atomic_t=yes; + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then : + + is_sig_atomic_t_volatile=yes; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, volatile" >&5 +$as_echo "yes, volatile" >&6; } + else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + is_sig_atomic_t_volatile=no; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, non volatile" >&5 +$as_echo "yes, non volatile" >&6; } fi +rm -f conftest* -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test x$ac_cv_dirent_d_ino = xyes ; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_DIRENT_D_INO 1 +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default" +if test "x$ac_cv_type_sig_atomic_t" = x""yes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define sig_atomic_t int _ACEOF fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_dirent_d_ino" >&5 -$as_echo "$ac_cv_dirent_d_ino" >&6; } -mutt_cv_warnings=yes -# Check whether --enable-warnings was given. -if test "${enable_warnings+set}" = set; then - enableval=$enable_warnings; if test $enableval = no; then - mutt_cv_warnings=no -fi + is_sig_atomic_t_volatile=no + fi +rm -f conftest* +if test $is_sig_atomic_t_volatile = 'yes' +then + $as_echo "#define SIG_ATOMIC_VOLATILE_T sig_atomic_t" >>confdefs.h + +else + $as_echo "#define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t" >>confdefs.h -if test x$GCC = xyes && test $mutt_cv_warnings = yes; then - CFLAGS="-Wall -pedantic -Wno-long-long $CFLAGS" fi -# Check whether --enable-nfs-fix was given. -if test "${enable_nfs_fix+set}" = set; then - enableval=$enable_nfs_fix; if test x$enableval = xyes; then +ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include +/* NetBSD declares sys_siglist in unistd.h. */ +#ifdef HAVE_UNISTD_H +# include +#endif + +" +if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi -cat >>confdefs.h <<\_ACEOF -#define NFS_ATTRIBUTE_HACK 1 +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_SYS_SIGLIST $ac_have_decl _ACEOF - fi -fi -# Check whether --enable-mailtool was given. -if test "${enable_mailtool+set}" = set; then - enableval=$enable_mailtool; if test x$enableval = xyes; then +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" +if test "x$ac_cv_type_pid_t" = x""yes; then : + +else -cat >>confdefs.h <<\_ACEOF -#define SUN_ATTACHMENT 1 +cat >>confdefs.h <<_ACEOF +#define pid_t int _ACEOF - fi fi +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" +if test "x$ac_cv_type_ssize_t" = x""yes; then : -# Check whether --enable-locales-fix was given. -if test "${enable_locales_fix+set}" = set; then - enableval=$enable_locales_fix; if test x$enableval = xyes; then +else -cat >>confdefs.h <<\_ACEOF -#define LOCALES_HACK 1 +cat >>confdefs.h <<_ACEOF +#define ssize_t int _ACEOF - fi fi +for ac_func in fgetpos memmove setegid srand48 strerror +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF -# Check whether --with-exec-shell was given. -if test "${with_exec_shell+set}" = set; then - withval=$with_exec_shell; if test $withval != yes; then +fi +done -cat >>confdefs.h <<_ACEOF -#define EXECSHELL "$withval" -_ACEOF - else - cat >>confdefs.h <<_ACEOF -#define EXECSHELL "/bin/sh" +for ac_func in setenv strcasecmp strdup strsep strtok_r wcscasecmp +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - fi else - cat >>confdefs.h <<_ACEOF -#define EXECSHELL "/bin/sh" -_ACEOF + case " $LIBOBJS " in + *" $ac_func.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" + ;; +esac fi +done -# Check whether --enable-exact-address was given. -if test "${enable_exact_address+set}" = set; then - enableval=$enable_exact_address; if test $enableval = yes; then - -cat >>confdefs.h <<\_ACEOF -#define EXACT_ADDRESS 1 +for ac_func in strcasestr mkdtemp +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF +else + case " $LIBOBJS " in + *" $ac_func.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" + ;; +esac - fi fi +done -db_found=no -db_requested=auto -# Check whether --enable-hcache was given. -if test "${enable_hcache+set}" = set; then - enableval=$enable_hcache; -fi +ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" +if test "x$ac_cv_func_getopt" = x""yes; then : -# Check whether --with-tokyocabinet was given. -if test "${with_tokyocabinet+set}" = set; then - withval=$with_tokyocabinet; fi +if test $ac_cv_func_getopt = yes; then + for ac_header in getopt.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" +if test "x$ac_cv_header_getopt_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETOPT_H 1 +_ACEOF -# Check whether --with-qdbm was given. -if test "${with_qdbm+set}" = set; then - withval=$with_qdbm; fi +done -# Check whether --with-gdbm was given. -if test "${with_gdbm+set}" = set; then - withval=$with_gdbm; fi +SNPRINTFOBJS="" +ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" +if test "x$ac_cv_func_snprintf" = x""yes; then : + mutt_cv_func_snprintf=yes +else + mutt_cv_func_snprintf=no +fi -# Check whether --with-bdb was given. -if test "${with_bdb+set}" = set; then - withval=$with_bdb; +ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" +if test "x$ac_cv_func_vsnprintf" = x""yes; then : + mutt_cv_func_vsnprintf=yes +else + mutt_cv_func_vsnprintf=no fi +if test $mutt_cv_func_snprintf = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system's snprintf is C99 compliant" >&5 +$as_echo_n "checking whether your system's snprintf is C99 compliant... " >&6; } +if test "${mutt_cv_c99_snprintf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + mutt_cv_c99_snprintf=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -if test x$enable_hcache = xyes -then +#include +int main() +{ + char buf[8]; + int len = snprintf(buf, 4, "1234567"); + return (len != 7 || buf[3] != '\0'); +} -cat >>confdefs.h <<\_ACEOF -#define USE_HCACHE 1 _ACEOF +if ac_fn_c_try_run "$LINENO"; then : + mutt_cv_c99_snprintf=yes +else + mutt_cv_c99_snprintf=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS hcache.o" - - OLDCPPFLAGS="$CPPFLAGS" - OLDLDFLAGS="$LDFLAGS" - OLDLIBS="$LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_c99_snprintf" >&5 +$as_echo "$mutt_cv_c99_snprintf" >&6; } +else + mutt_cv_c99_snprintf=no +fi +if test $mutt_cv_func_vsnprintf = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system's vsnprintf is C99 compliant" >&5 +$as_echo_n "checking whether your system's vsnprintf is C99 compliant... " >&6; } +if test "${mutt_cv_c99_vsnprintf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + mutt_cv_c99_vsnprintf=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - need_md5="yes" +#include +#include +int foo(const char *fmt, ...) +{ + char buf[8]; + int len; + va_list ap; + va_start(ap, fmt); + len = vsnprintf(buf, 4, fmt, ap); + va_end(ap); + return (len != 7 || buf[3] != '\0'); +} - if test -n "$with_tokyocabinet" && test "$with_tokyocabinet" != "no" - then - db_requested=tc - fi - if test -n "$with_qdbm" && test "$with_qdbm" != "no" - then - if test "$db_requested" != "auto" - then - { { $as_echo "$as_me:$LINENO: error: more than one header cache engine requested." >&5 -$as_echo "$as_me: error: more than one header cache engine requested." >&2;} - { (exit 1); exit 1; }; } - else - db_requested=qdbm - fi - fi - if test -n "$with_gdbm" && test "$with_gdbm" != "no" - then - if test "$db_requested" != "auto" - then - { { $as_echo "$as_me:$LINENO: error: more than one header cache engine requested." >&5 -$as_echo "$as_me: error: more than one header cache engine requested." >&2;} - { (exit 1); exit 1; }; } - else - db_requested=gdbm - fi - fi - if test -n "$with_bdb" && test "$with_bdb" != "no" - then - if test "$db_requested" != "auto" - then - { { $as_echo "$as_me:$LINENO: error: more than one header cache engine requested." >&5 -$as_echo "$as_me: error: more than one header cache engine requested." >&2;} - { (exit 1); exit 1; }; } - else - db_requested=bdb - fi - fi +int main() +{ + return foo("%s", "1234567"); +} - if test "$with_tokyocabinet" != "no" \ - && test "$db_requested" = auto -o "$db_requested" = tc - then - if test -n "$with_tokyocabinet" && test "$with_tokyocabinet" != "yes" - then - CPPFLAGS="$CPPFLAGS -I$with_tokyocabinet/include" - LDFLAGS="$LDFLAGS -L$with_tokyocabinet/lib" - fi +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + mutt_cv_c99_vsnprintf=yes +else + mutt_cv_c99_vsnprintf=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - if test "${ac_cv_header_tcbdb_h+set}" = set; then - { $as_echo "$as_me:$LINENO: checking for tcbdb.h" >&5 -$as_echo_n "checking for tcbdb.h... " >&6; } -if test "${ac_cv_header_tcbdb_h+set}" = set; then - $as_echo_n "(cached) " >&6 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcbdb_h" >&5 -$as_echo "$ac_cv_header_tcbdb_h" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking tcbdb.h usability" >&5 -$as_echo_n "checking tcbdb.h usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_c99_vsnprintf" >&5 +$as_echo "$mutt_cv_c99_vsnprintf" >&6; } else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + mutt_cv_c99_vsnprintf=no +fi +if test $mutt_cv_c99_snprintf = yes; then + +$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h - ac_header_compiler=no fi +if test $mutt_cv_c99_vsnprintf = yes; then -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } +$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking tcbdb.h presence" >&5 -$as_echo_n "checking tcbdb.h presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +fi +if test $mutt_cv_c99_snprintf = no -o $mutt_cv_c99_vsnprintf = no; then + case " $LIBOBJS " in + *" snprintf.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" + ;; +esac + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 +$as_echo_n "checking for va_copy... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +va_list ap1, ap2; va_copy(ap1, ap2); + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5 +$as_echo "va_copy" >&6; } +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +int +main () +{ +va_list ap1, ap2; __va_copy(ap1, ap2); + ; + return 0; +} _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +if ac_fn_c_try_link "$LINENO"; then : + $as_echo "#define va_copy __va_copy" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5 +$as_echo "__va_copy" >&6; } else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + $as_echo "#define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5 +$as_echo "memcpy" >&6; } - ac_header_preproc=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: tcbdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: tcbdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: tcbdb.h: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: tcbdb.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: tcbdb.h: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: tcbdb.h: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: tcbdb.h: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: tcbdb.h: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: tcbdb.h: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: tcbdb.h: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: tcbdb.h: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: tcbdb.h: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: tcbdb.h: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: tcbdb.h: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: tcbdb.h: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: tcbdb.h: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for tcbdb.h" >&5 -$as_echo_n "checking for tcbdb.h... " >&6; } -if test "${ac_cv_header_tcbdb_h+set}" = set; then +for ac_func in ftruncate +do : + ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" +if test "x$ac_cv_func_ftruncate" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_FTRUNCATE 1 +_ACEOF + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chsize in -lx" >&5 +$as_echo_n "checking for chsize in -lx... " >&6; } +if test "${ac_cv_lib_x_chsize+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_cv_header_tcbdb_h=$ac_header_preproc + ac_check_lib_save_LIBS=$LIBS +LIBS="-lx $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char chsize (); +int +main () +{ +return chsize (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_x_chsize=yes +else + ac_cv_lib_x_chsize=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcbdb_h" >&5 -$as_echo "$ac_cv_header_tcbdb_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_x_chsize" >&5 +$as_echo "$ac_cv_lib_x_chsize" >&6; } +if test "x$ac_cv_lib_x_chsize" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBX 1 +_ACEOF + + LIBS="-lx $LIBS" fi -if test "x$ac_cv_header_tcbdb_h" = x""yes; then - { $as_echo "$as_me:$LINENO: checking for tcbdbopen in -ltokyocabinet" >&5 -$as_echo_n "checking for tcbdbopen in -ltokyocabinet... " >&6; } -if test "${ac_cv_lib_tokyocabinet_tcbdbopen+set}" = set; then + +fi +done + + +for ac_func in strftime +do : + ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" +if test "x$ac_cv_func_strftime" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRFTIME 1 +_ACEOF + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 +$as_echo_n "checking for strftime in -lintl... " >&6; } +if test "${ac_cv_lib_intl_strftime+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-ltokyocabinet $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +LIBS="-lintl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -17172,982 +8548,953 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char tcbdbopen (); +char strftime (); int main () { -return tcbdbopen (); +return strftime (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_tokyocabinet_tcbdbopen=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_intl_strftime=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_lib_intl_strftime=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 +$as_echo "$ac_cv_lib_intl_strftime" >&6; } +if test "x$ac_cv_lib_intl_strftime" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBINTL 1 +_ACEOF + + LIBS="-lintl $LIBS" - ac_cv_lib_tokyocabinet_tcbdbopen=no fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tokyocabinet_tcbdbopen" >&5 -$as_echo "$ac_cv_lib_tokyocabinet_tcbdbopen" >&6; } -if test "x$ac_cv_lib_tokyocabinet_tcbdbopen" = x""yes; then - MUTTLIBS="$MUTTLIBS -ltokyocabinet" +done + -cat >>confdefs.h <<\_ACEOF -#define HAVE_TC 1 +for ac_func in fchdir +do : + ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir" +if test "x$ac_cv_func_fchdir" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_FCHDIR 1 _ACEOF - db_found=tc else - CPPFLAGS="$OLDCPPFLAGS" - LDFLAGS="$OLDLDFLAGS" + mutt_cv_fchdir=no fi +done -fi - if test "$db_requested" != auto && test "$db_found" != "$db_requested" - then - { { $as_echo "$as_me:$LINENO: error: Tokyo Cabinet could not be used. Check config.log for details." >&5 -$as_echo "$as_me: error: Tokyo Cabinet could not be used. Check config.log for details." >&2;} - { (exit 1); exit 1; }; } - fi - fi +# Check whether --with-regex was given. +if test "${with_regex+set}" = set; then : + withval=$with_regex; mutt_cv_regex=yes +else + for ac_func in regcomp +do : + ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp" +if test "x$ac_cv_func_regcomp" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_REGCOMP 1 +_ACEOF + mutt_cv_regex=no +else + mutt_cv_regex=yes +fi +done - if test "$with_qdbm" != "no" && test $db_found = no \ - && test "$db_requested" = auto -o "$db_requested" = qdbm - then - if test -n "$with_qdbm" && test "$with_qdbm" != "yes" - then - if test -d $with_qdbm/include/qdbm; then - CPPFLAGS="$CPPFLAGS -I$with_qdbm/include/qdbm" - else - CPPFLAGS="$CPPFLAGS -I$with_qdbm/include" - fi - LDFLAGS="$LDFLAGS -L$with_qdbm/lib" - else - if test -d /usr/include/qdbm; then - CPPFLAGS="$CPPFLAGS -I/usr/include/qdbm" - fi - fi +fi - saved_LIBS="$LIBS" -for ac_header in villa.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then +if test $mutt_cv_regex = no ; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system's regexp library is completely broken" >&5 +$as_echo_n "checking whether your system's regexp library is completely broken... " >&6; } +if test "${mutt_cv_regex_broken+set}" = set; then : $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + mutt_cv_regex_broken=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + +#include +#include +main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +if ac_fn_c_try_run "$LINENO"; then : + mutt_cv_regex_broken=no +else + mutt_cv_regex_broken=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_regex_broken" >&5 +$as_echo "$mutt_cv_regex_broken" >&6; } + if test $mutt_cv_regex_broken = yes ; then + echo "Using the included GNU regex instead." >&6 + mutt_cv_regex=yes + fi +fi + +if test $mutt_cv_regex = yes; then + +$as_echo "#define USE_GNU_REGEX 1" >>confdefs.h + + case " $LIBOBJS " in + *" regex.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS regex.$ac_objext" + ;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes + +fi + + + +# Check whether --with-homespool was given. +if test "${with_homespool+set}" = set; then : + withval=$with_homespool; with_homespool=${withval} +fi + +if test x$with_homespool != x; then + if test $with_homespool = yes; then + with_homespool=mailbox + fi + +cat >>confdefs.h <<_ACEOF +#define MAILPATH "$with_homespool" +_ACEOF + + +$as_echo "#define HOMESPOOL 1" >>confdefs.h + + +$as_echo "#define USE_DOTLOCK 1" >>confdefs.h + + mutt_cv_setgid=no else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no +# Check whether --with-mailpath was given. +if test "${with_mailpath+set}" = set; then : + withval=$with_mailpath; mutt_cv_mailpath=$withval +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where new mail is stored" >&5 +$as_echo_n "checking where new mail is stored... " >&6; } +if test "${mutt_cv_mailpath+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + mutt_cv_mailpath=no + if test -d /var/mail; then + mutt_cv_mailpath=/var/mail + elif test -d /var/spool/mail; then + mutt_cv_mailpath=/var/spool/mail + elif test -d /usr/spool/mail; then + mutt_cv_mailpath=/usr/spool/mail + elif test -d /usr/mail; then + mutt_cv_mailpath=/usr/mail + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_mailpath" >&5 +$as_echo "$mutt_cv_mailpath" >&6; } + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } + if test "$mutt_cv_mailpath" = no; then + as_fn_error "\"Could not determine where new mail is stored.\"" "$LINENO" 5 + fi -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> +cat >>confdefs.h <<_ACEOF +#define MAILPATH "$mutt_cv_mailpath" _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $mutt_cv_mailpath is world writable" >&5 +$as_echo_n "checking if $mutt_cv_mailpath is world writable... " >&6; } +if test "${mutt_cv_worldwrite+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + mutt_cv_worldwrite=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +int main (int argc, char **argv) +{ + struct stat s; - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 + stat ("$mutt_cv_mailpath", &s); + if (s.st_mode & S_IWOTH) exit (0); + exit (1); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + mutt_cv_worldwrite=yes else - eval "$as_ac_Header=\$ac_header_preproc" + mutt_cv_worldwrite=no fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_worldwrite" >&5 +$as_echo "$mutt_cv_worldwrite" >&6; } -done + mutt_cv_setgid=no + if test $mutt_cv_worldwrite = yes; then - { $as_echo "$as_me:$LINENO: checking for vlopen in -lqdbm" >&5 -$as_echo_n "checking for vlopen in -lqdbm... " >&6; } -if test "${ac_cv_lib_qdbm_vlopen+set}" = set; then +$as_echo "#define USE_DOTLOCK 1" >>confdefs.h + + else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $mutt_cv_mailpath is group writable" >&5 +$as_echo_n "checking if $mutt_cv_mailpath is group writable... " >&6; } +if test "${mutt_cv_groupwrite+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lqdbm $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + mutt_cv_groupwrite=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include +#include +#include -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char vlopen (); -int -main () +int main (int argc, char **argv) { -return vlopen (); - ; - return 0; + struct stat s; + + stat ("$mutt_cv_mailpath", &s); + if (s.st_mode & S_IWGRP) exit (0); + exit (1); } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_qdbm_vlopen=yes +if ac_fn_c_try_run "$LINENO"; then : + mutt_cv_groupwrite=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + mutt_cv_groupwrite=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - ac_cv_lib_qdbm_vlopen=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_groupwrite" >&5 +$as_echo "$mutt_cv_groupwrite" >&6; } -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + if test $mutt_cv_groupwrite = yes; then + +$as_echo "#define USE_DOTLOCK 1" >>confdefs.h + + +$as_echo "#define USE_SETGID 1" >>confdefs.h + + mutt_cv_setgid=yes + fi + fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_qdbm_vlopen" >&5 -$as_echo "$ac_cv_lib_qdbm_vlopen" >&6; } -if test "x$ac_cv_lib_qdbm_vlopen" = x""yes; then - MUTTLIBS="$MUTTLIBS -lqdbm" -cat >>confdefs.h <<\_ACEOF -#define HAVE_QDBM 1 -_ACEOF +# Check whether --enable-external_dotlock was given. +if test "${enable_external_dotlock+set}" = set; then : + enableval=$enable_external_dotlock; mutt_cv_external_dotlock="$enableval" +fi - db_found=qdbm + +if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \ + || test "x$mutt_cv_external_dotlock" = "xyes" +then + +$as_echo "#define DL_STANDALONE 1" >>confdefs.h + + DOTLOCK_TARGET="mutt_dotlock\$(EXEEXT)" else - CPPFLAGS="$OLDCPPFLAGS" - LDFLAGS="$OLDLDFLAGS" + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o" fi - LIBS="$saved_LIBS" - if test "$db_requested" != auto && test "$db_found" != "$db_requested" - then - { { $as_echo "$as_me:$LINENO: error: QDBM could not be used. Check config.log for details." >&5 -$as_echo "$as_me: error: QDBM could not be used. Check config.log for details." >&2;} - { (exit 1); exit 1; }; } - fi - fi - if test x$with_gdbm != xno && test $db_found = no \ - && test "$db_requested" = auto -o "$db_requested" = gdbm - then - if test "$with_gdbm" != "yes" - then - CPPFLAGS="$CPPFLAGS -I$with_gdbm/include" - LDFLAGS="$LDFLAGS -L$with_gdbm/lib" - fi - saved_LIBS="$LIBS" - LIBS="$LIBS -lgdbm" - { $as_echo "$as_me:$LINENO: checking for gdbm_open" >&5 -$as_echo_n "checking for gdbm_open... " >&6; } -if test "${ac_cv_gdbmopen+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_gdbmopen=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -gdbm_open(0,0,0,0,0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_gdbmopen=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if test -z "$datarootdir"; then + datarootdir='${prefix}/share' +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to put the documentation" >&5 +$as_echo_n "checking where to put the documentation... " >&6; } +# Check whether --with-docdir was given. +if test "${with_docdir+set}" = set; then : + withval=$with_docdir; mutt_cv_docdir=$withval +else + mutt_cv_docdir='${datarootdir}/doc/mutt' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_docdir" >&5 +$as_echo "$mutt_cv_docdir" >&6; } +if test -z "$docdir" -o -n "$with_docdir" +then + docdir=$mutt_cv_docdir fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +if test x$mutt_cv_setgid = xyes; then + DOTLOCK_GROUP='mail' + DOTLOCK_PERMISSION=2755 +else + DOTLOCK_GROUP='' + DOTLOCK_PERMISSION=755 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5 -$as_echo "$ac_cv_gdbmopen" >&6; } - LIBS="$saved_LIBS" - if test "$ac_cv_gdbmopen" = yes - then -cat >>confdefs.h <<\_ACEOF -#define HAVE_GDBM 1 -_ACEOF - MUTTLIBS="$MUTTLIBS -lgdbm" - db_found=gdbm - fi - if test "$db_requested" != auto && test "$db_found" != "$db_requested" - then - { { $as_echo "$as_me:$LINENO: error: GDBM could not be used. Check config.log for details." >&5 -$as_echo "$as_me: error: GDBM could not be used. Check config.log for details." >&2;} - { (exit 1); exit 1; }; } - fi - fi - ac_bdb_prefix="$with_bdb" - if test x$ac_bdb_prefix != xno && test $db_found = no - then - if test x$ac_bdb_prefix = xyes || test x$ac_bdb_prefix = x - then - ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr" - fi - for d in $ac_bdb_prefix; do - bdbpfx="$bdbpfx $d" - for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do - bdbpfx="$bdbpfx $d/$v" - done - done - BDB_VERSIONS="db-4 db4 db-4.6 db4.6 db46 db-4.5 db4.5 db45 db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''" - { $as_echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5 -$as_echo_n "checking for BerkeleyDB > 4.0... " >&6; } - for d in $bdbpfx; do - BDB_INCLUDE_DIR="" - BDB_LIB_DIR="" - for v in / $BDB_VERSIONS; do - if test -r "$d/include/$v/db.h"; then - BDB_INCLUDE_DIR="$d/include/$v" - for bdblibdir in "$d/lib/$v" "$d/lib"; do - test -d "$bdblibdir" || continue - BDB_LIB_DIR="$bdblibdir" - for l in `echo $BDB_VERSIONS`; do - CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR" - LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + +# Check whether --with-domain was given. +if test "${with_domain+set}" = set; then : + withval=$with_domain; if test $withval != yes; then + if test $withval != no; then + +cat >>confdefs.h <<_ACEOF +#define DOMAIN "$withval" _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - #include - #include + fi + fi +fi -int -main () -{ - DB *db = NULL; - db->open(db,NULL,NULL,NULL,0,0,0); +need_socket="no" - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_dbcreate=yes - BDB_LIB="$l" - break +# Check whether --enable-pop was given. +if test "${enable_pop+set}" = set; then : + enableval=$enable_pop; if test x$enableval = xyes ; then -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define USE_POP 1" >>confdefs.h + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o" + need_pop="yes" + need_socket="yes" + need_md5="yes" + fi fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - done - test x$ac_cv_dbcreate = xyes && break 2 - done - fi - done - test x$BDB_LIB != x && break - done - if test x$ac_cv_dbcreate = xyes - then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR" - LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB" -cat >>confdefs.h <<\_ACEOF -#define HAVE_DB4 1 -_ACEOF +# Check whether --enable-imap was given. +if test "${enable_imap+set}" = set; then : + enableval=$enable_imap; if test x$enableval = xyes ; then - db_found=bdb - else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } +$as_echo "#define USE_IMAP 1" >>confdefs.h + + LIBIMAP="-Limap -limap" + LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a" + need_imap="yes" + need_socket="yes" + need_md5="yes" fi - fi - if test $db_found = no - then - { { $as_echo "$as_me:$LINENO: error: You need Tokyo Cabinet, QDBM, GDBM or Berkeley DB4 for hcache" >&5 -$as_echo "$as_me: error: You need Tokyo Cabinet, QDBM, GDBM or Berkeley DB4 for hcache" >&2;} - { (exit 1); exit 1; }; } - fi fi -if test "$need_md5" = "yes" -then - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5.o" - MUTT_MD5="mutt_md5" + if test x$need_imap = xyes; then + BUILD_IMAP_TRUE= + BUILD_IMAP_FALSE='#' +else + BUILD_IMAP_TRUE='#' + BUILD_IMAP_FALSE= fi +# Check whether --enable-smtp was given. +if test "${enable_smtp+set}" = set; then : + enableval=$enable_smtp; if test $enableval = yes; then + +$as_echo "#define USE_SMTP 1" >>confdefs.h + + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smtp.o" + need_socket="yes" + fi +fi +if test x"$need_imap" = xyes -o x"$need_pop" = xyes ; then + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS bcache.o" +fi +if test "$need_socket" = "yes" +then + for ac_header in sys/select.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_select_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_SELECT_H 1 +_ACEOF +fi -# Check whether --enable-iconv was given. -if test "${enable_iconv+set}" = set; then - enableval=$enable_iconv; if test x$enableval = xno ; then - am_cv_func_iconv=no - fi +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 +$as_echo_n "checking for socklen_t... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "socklen_t" >/dev/null 2>&1; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +$as_echo "#define socklen_t int" >>confdefs.h fi +rm -f conftest* + ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent" +if test "x$ac_cv_func_gethostent" = x""yes; then : -{ $as_echo "$as_me:$LINENO: checking for off_t" >&5 -$as_echo_n "checking for off_t... " >&6; } -if test "${ac_cv_type_off_t+set}" = set; then +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5 +$as_echo_n "checking for gethostent in -lnsl... " >&6; } +if test "${ac_cv_lib_nsl_gethostent+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_cv_type_off_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostent (); int main () { -if (sizeof (off_t)) - return 0; +return gethostent (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostent=yes +else + ac_cv_lib_nsl_gethostent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5 +$as_echo "$ac_cv_lib_nsl_gethostent" >&6; } +if test "x$ac_cv_lib_nsl_gethostent" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBNSL 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + LIBS="-lnsl $LIBS" + +fi + +fi + + ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" +if test "x$ac_cv_func_setsockopt" = x""yes; then : + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 +$as_echo_n "checking for setsockopt in -lsocket... " >&6; } +if test "${ac_cv_lib_socket_setsockopt+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char setsockopt (); int main () { -if (sizeof ((off_t))) - return 0; +return setsockopt (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_setsockopt=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_lib_socket_setsockopt=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 +$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } +if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBSOCKET 1 +_ACEOF + + LIBS="-lsocket $LIBS" - ac_cv_type_off_t=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +fi + for ac_func in getaddrinfo +do : + ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" +if test "x$ac_cv_func_getaddrinfo" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETADDRINFO 1 +_ACEOF fi +done -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +$as_echo "#define USE_SOCKET 1" >>confdefs.h + + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o" fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 -$as_echo "$ac_cv_type_off_t" >&6; } -if test "x$ac_cv_type_off_t" = x""yes; then - : + + + +# Check whether --with-gss was given. +if test "${with_gss+set}" = set; then : + withval=$with_gss; gss_prefix="$withval" else + gss_prefix="no" +fi -cat >>confdefs.h <<_ACEOF -#define off_t long int -_ACEOF +if test "$gss_prefix" != "no" +then + if test "$need_imap" = "yes" + then + + GSSAPI_PREFIX=$gss_prefix + GSSAPI_IMPL="none" + saved_CPPFLAGS="$CPPFLAGS" + saved_LDFLAGS="$LDFLAGS" + saved_LIBS="$LIBS" + if test "$GSSAPI_PREFIX" != "yes" + then + krb5_path="$GSSAPI_PREFIX/bin" + else + krb5_path="$PATH" + fi + # Extract the first word of "krb5-config", so it can be a program name with args. +set dummy krb5-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $KRB5CFGPATH in + [\\/]* | ?:[\\/]*) + ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $krb5_path +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none" + ;; +esac +fi +KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH +if test -n "$KRB5CFGPATH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CFGPATH" >&5 +$as_echo "$KRB5CFGPATH" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 -$as_echo_n "checking for size_t... " >&6; } -if test "${ac_cv_type_size_t+set}" = set; then + + if test "$KRB5CFGPATH" != "none" + then + GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`" + GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`" + case "`$KRB5CFGPATH --version`" in + "Kerberos 5 "*) GSSAPI_IMPL="MIT";; + ?eimdal*) GSSAPI_IMPL="Heimdal";; + *) GSSAPI_IMPL="Unknown";; + esac + else + if test "$GSSAPI_PREFIX" != "yes" + then + GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include" + GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib" + CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS" + LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 +$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } +if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_cv_type_size_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof (size_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gss_init_sec_context (); int main () { -if (sizeof ((size_t))) - return 0; +return gss_init_sec_context (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_size_t=yes -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + ac_cv_lib_gssapi_krb5_gss_init_sec_context=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 -$as_echo "$ac_cv_type_size_t" >&6; } -if test "x$ac_cv_type_size_t" = x""yes; then - : -else +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 +$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } +if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = x""yes; then : -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF + GSSAPI_IMPL="MIT", + GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" fi -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments. Useless! -{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 -$as_echo_n "checking for working alloca.h... " >&6; } -if test "${ac_cv_working_alloca_h+set}" = set; then + + if test "$GSSAPI_IMPL" = "none" + then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 +$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } +if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gss_init_sec_context (); int main () { -char *p = (char *) alloca (2 * sizeof (int)); - if (p) return 0; +return gss_init_sec_context (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_working_alloca_h=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gssapi_gss_init_sec_context=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_working_alloca_h=no + ac_cv_lib_gssapi_gss_init_sec_context=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 -$as_echo "$ac_cv_working_alloca_h" >&6; } -if test $ac_cv_working_alloca_h = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 +$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } +if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = x""yes; then : -cat >>confdefs.h <<\_ACEOF -#define HAVE_ALLOCA_H 1 -_ACEOF + GSSAPI_IMPL="Heimdal" + GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken" + GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err" fi -{ $as_echo "$as_me:$LINENO: checking for alloca" >&5 -$as_echo_n "checking for alloca... " >&6; } -if test "${ac_cv_func_alloca_works+set}" = set; then + fi + + if test "$GSSAPI_IMPL" = "none" + then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_order_init in -lgssapi_krb5" >&5 +$as_echo_n "checking for g_order_init in -lgssapi_krb5... " >&6; } +if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER -# include -# define alloca _alloca -# else -# ifdef HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -# endif -#endif +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char g_order_init (); int main () { -char *p = (char *) alloca (1); - if (p) return 0; +return g_order_init (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_func_alloca_works=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gssapi_krb5_g_order_init=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_lib_gssapi_krb5_g_order_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5 +$as_echo "$ac_cv_lib_gssapi_krb5_g_order_init" >&6; } +if test "x$ac_cv_lib_gssapi_krb5_g_order_init" = x""yes; then : + + GSSAPI_IMPL="OldMIT", + GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err" + +fi + + fi + fi + + CPPFLAGS="$saved_CPPFLAGS" + LDFLAGS="$saved_LDFLAGS" + LIBS="$saved_LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSSAPI implementation" >&5 +$as_echo_n "checking GSSAPI implementation... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSSAPI_IMPL" >&5 +$as_echo "$GSSAPI_IMPL" >&6; } + if test "$GSSAPI_IMPL" = "none" + then + cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done - ac_cv_func_alloca_works=no + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + test "x$cache_file" != "x/dev/null" && + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi fi +rm -f confcache + { $as_echo "$as_me:${as_lineno-$LINENO}: result: GSSAPI libraries not found" >&5 +$as_echo "GSSAPI libraries not found" >&6; } + fi + if test "$GSSAPI_IMPL" = "Heimdal" + then -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 -$as_echo "$ac_cv_func_alloca_works" >&6; } +$as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h -if test $ac_cv_func_alloca_works = yes; then + fi + CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS" + MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS" -cat >>confdefs.h <<\_ACEOF -#define HAVE_ALLOCA 1 -_ACEOF +$as_echo "#define USE_GSS 1" >>confdefs.h + need_gss="yes" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GSS was requested but IMAP is not enabled" >&5 +$as_echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;} + fi +fi + if test x$need_gss = xyes; then + USE_GSS_TRUE= + USE_GSS_FALSE='#' else - # The SVR3 libPW and SVR4 libucb both contain incompatible functions -# that cause trouble. Some versions do not even contain alloca or -# contain a buggy version. If you still want to use their alloca, -# use ar to extract alloca.o from them instead of compiling alloca.c. + USE_GSS_TRUE='#' + USE_GSS_FALSE= +fi -ALLOCA=\${LIBOBJDIR}alloca.$ac_objext -cat >>confdefs.h <<\_ACEOF -#define C_ALLOCA 1 -_ACEOF -{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 -$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } -if test "${ac_cv_os_cray+set}" = set; then +# Check whether --with-ssl was given. +if test "${with_ssl+set}" = set; then : + withval=$with_ssl; if test "$with_ssl" != "no" + then + if test "$need_socket" != "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&5 +$as_echo "$as_me: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&2;} + else + if test "$with_ssl" != "yes" + then + LDFLAGS="$LDFLAGS -L$withval/lib" + CPPFLAGS="$CPPFLAGS -I$withval/include" + fi + saved_LIBS="$LIBS" + + crypto_libs="" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 +$as_echo_n "checking for deflate in -lz... " >&6; } +if test "${ac_cv_lib_z_deflate+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#if defined CRAY && ! defined CRAY2 -webecray -#else -wenotbecray -#endif +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char deflate (); +int +main () +{ +return deflate (); + ; + return 0; +} _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "webecray" >/dev/null 2>&1; then - ac_cv_os_cray=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_z_deflate=yes else - ac_cv_os_cray=no + ac_cv_lib_z_deflate=no fi -rm -f conftest* - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 -$as_echo "$ac_cv_os_cray" >&6; } -if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 +$as_echo "$ac_cv_lib_z_deflate" >&6; } +if test "x$ac_cv_lib_z_deflate" = x""yes; then : + crypto_libs=-lz +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_new in -lcrypto" >&5 +$as_echo_n "checking for X509_new in -lcrypto... " >&6; } +if test "${ac_cv_lib_crypto_X509_new+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcrypto $crypto_libs $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC @@ -18155,333 +9502,140 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - +char X509_new (); int main () { -return $ac_func (); +return X509_new (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_X509_new=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + ac_cv_lib_crypto_X509_new=no fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - -cat >>confdefs.h <<_ACEOF -#define CRAY_STACKSEG_END $ac_func -_ACEOF - - break +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_new" >&5 +$as_echo "$ac_cv_lib_crypto_X509_new" >&6; } +if test "x$ac_cv_lib_crypto_X509_new" = x""yes; then : + crypto_libs="-lcrypto $crypto_libs" fi -{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 -$as_echo_n "checking stack direction for C alloca... " >&6; } -if test "${ac_cv_c_stack_direction+set}" = set; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 +$as_echo_n "checking for SSL_new in -lssl... " >&6; } +if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - ac_cv_c_stack_direction=0 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lssl $crypto_libs $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -find_stack_direction () -{ - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; -} +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char SSL_new (); int main () { - return find_stack_direction () < 0; +return SSL_new (); + ; + return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_c_stack_direction=1 +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_SSL_new=yes else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_c_stack_direction=-1 -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext + ac_cv_lib_ssl_SSL_new=no fi - - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 -$as_echo "$ac_cv_c_stack_direction" >&6; } - -cat >>confdefs.h <<_ACEOF -#define STACK_DIRECTION $ac_cv_c_stack_direction +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; } +if test "x$ac_cv_lib_ssl_SSL_new" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBSSL 1 _ACEOF + LIBS="-lssl $LIBS" +else + as_fn_error "Unable to find SSL library" "$LINENO" 5 fi - -for ac_header in stdlib.h unistd.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + LIBS="$LIBS $crypto_libs" + for ac_func in RAND_status RAND_egd +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no fi +done -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi +$as_echo "#define USE_SSL 1" >>confdefs.h -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +$as_echo "#define USE_SSL_OPENSSL 1" >>confdefs.h + + LIBS="$saved_LIBS" + MUTTLIBS="$MUTTLIBS -lssl $crypto_libs" + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o" + need_ssl=yes + fi + fi - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done +# Check whether --with-gnutls was given. +if test "${with_gnutls+set}" = set; then : + withval=$with_gnutls; gnutls_prefix="$withval" +else + gnutls_prefix="no" +fi +if test "$gnutls_prefix" != "no" && test x"$need_ssl" != xyes +then + if test "$need_socket" != "yes" + then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&5 +$as_echo "$as_me: WARNING: SSL support is only useful with POP, IMAP or SMTP support" >&2;} + else + if test "$gnutls_prefix" != "yes" + then + LDFLAGS="$LDFLAGS -L$gnutls_prefix/lib" + CPPFLAGS="$CPPFLAGS -I$gnutls_prefix/include" + fi + saved_LIBS="$LIBS" -for ac_func in getpagesize -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5 +$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; } +if test "${ac_cv_lib_gnutls_gnutls_check_version+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgnutls $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC @@ -18489,506 +9643,407 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - +char gnutls_check_version (); int main () { -return $ac_func (); +return gnutls_check_version (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gnutls_gnutls_check_version=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_cv_lib_gnutls_gnutls_check_version=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5 +$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; } +if test "x$ac_cv_lib_gnutls_gnutls_check_version" = x""yes; then : + ac_fn_c_check_decl "$LINENO" "GNUTLS_VERIFY_DISABLE_TIME_CHECKS" "ac_cv_have_decl_GNUTLS_VERIFY_DISABLE_TIME_CHECKS" "#include +" +if test "x$ac_cv_have_decl_GNUTLS_VERIFY_DISABLE_TIME_CHECKS" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -done -{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5 -$as_echo_n "checking for working mmap... " >&6; } -if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GNUTLS_VERIFY_DISABLE_TIME_CHECKS $ac_have_decl _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -/* malloc might have been renamed as rpl_malloc. */ -#undef malloc -/* Thanks to Mike Haertel and Jim Avera for this test. - Here is a matrix of mmap possibilities: - mmap private not fixed - mmap private fixed at somewhere currently unmapped - mmap private fixed at somewhere already mapped - mmap shared not fixed - mmap shared fixed at somewhere currently unmapped - mmap shared fixed at somewhere already mapped - For private mappings, we should verify that changes cannot be read() - back from the file, nor mmap's back from the file at a different - address. (There have been systems where private was not correctly - implemented like the infamous i386 svr4.0, and systems where the - VM page cache was not coherent with the file system buffer cache - like early versions of FreeBSD and possibly contemporary NetBSD.) - For shared mappings, we should conversely verify that changes get - propagated back to all the places they're supposed to be. - Grep wants private fixed already mapped. - The main things grep needs to know about mmap are: - * does it exist and is it safe to write into the mmap'd area - * how to use it (BSD variants) */ + LIBS="$saved_LIBS" + MUTTLIBS="$MUTTLIBS -lgnutls" -#include -#include -#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H -char *malloc (); -#endif +$as_echo "#define USE_SSL 1" >>confdefs.h -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ +$as_echo "#define USE_SSL_GNUTLS 1" >>confdefs.h -#endif /* no HAVE_GETPAGESIZE */ -int -main () -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o" + need_ssl=yes +else + as_fn_error "could not find libgnutls" "$LINENO" 5 +fi - pagesize = getpagesize (); + fi +fi - /* First, make a file with some known garbage in it. */ - data = (char *) malloc (pagesize); - if (!data) - return 1; - for (i = 0; i < pagesize; ++i) - *(data + i) = rand (); - umask (0); - fd = creat ("conftest.mmap", 0600); - if (fd < 0) - return 1; - if (write (fd, data, pagesize) != pagesize) - return 1; - close (fd); + if test x$need_ssl = xyes; then + USE_SSL_TRUE= + USE_SSL_FALSE='#' +else + USE_SSL_TRUE='#' + USE_SSL_FALSE= +fi - /* Next, try to mmap the file at a fixed address which already has - something else allocated at it. If we can, also make sure that - we see the same garbage. */ - fd = open ("conftest.mmap", O_RDWR); - if (fd < 0) - return 1; - data2 = (char *) malloc (2 * pagesize); - if (!data2) - return 1; - data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - return 1; - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - return 1; - /* Finally, make sure that changes to the mapped area do not - percolate back to the file as seen by read(). (This is a bug on - some variants of i386 svr4.0.) */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = (char *) malloc (pagesize); - if (!data3) - return 1; - if (read (fd, data3, pagesize) != pagesize) - return 1; - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - return 1; - close (fd); - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_mmap_fixed_mapped=yes + +# Check whether --with-sasl was given. +if test "${with_sasl+set}" = set; then : + withval=$with_sasl; + if test "$with_sasl" != "no" + then + if test "$need_socket" != "yes" + then + as_fn_error "SASL support is only useful with POP or IMAP support" "$LINENO" 5 + fi + + if test "$with_sasl" != "yes" + then + CPPFLAGS="$CPPFLAGS -I$with_sasl/include" + LDFLAGS="$LDFLAGS -L$with_sasl/lib" + fi + + saved_LIBS="$LIBS" + LIBS= + + # OpenSolaris provides a SASL2 interface in libsasl + sasl_libs="sasl2 sasl" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sasl_encode64" >&5 +$as_echo_n "checking for library containing sasl_encode64... " >&6; } +if test "${ac_cv_search_sasl_encode64+set}" = set; then : + $as_echo_n "(cached) " >&6 else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -( exit $ac_status ) -ac_cv_func_mmap_fixed_mapped=no +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sasl_encode64 (); +int +main () +{ +return sasl_encode64 (); + ; + return 0; +} +_ACEOF +for ac_lib in '' $sasl_libs; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_sasl_encode64=$ac_res fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if test "${ac_cv_search_sasl_encode64+set}" = set; then : + break fi +done +if test "${ac_cv_search_sasl_encode64+set}" = set; then : +else + ac_cv_search_sasl_encode64=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sasl_encode64" >&5 +$as_echo "$ac_cv_search_sasl_encode64" >&6; } +ac_res=$ac_cv_search_sasl_encode64 +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" +else + as_fn_error "could not find sasl lib" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 -$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } -if test $ac_cv_func_mmap_fixed_mapped = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF -fi -rm -f conftest.mmap + MUTTLIBS="$MUTTLIBS $LIBS" + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o" + LIBS="$saved_LIBS" - { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 -$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } -if test "${ac_cv_gnu_library_2_1+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +$as_echo "#define USE_SASL 1" >>confdefs.h -#include -#ifdef __GNU_LIBRARY__ - #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) - Lucky GNU user - #endif -#endif + need_sasl=yes + fi -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then - ac_cv_gnu_library_2_1=yes -else - ac_cv_gnu_library_2_1=no fi -rm -f conftest* + if test x$need_sasl = xyes; then + USE_SASL_TRUE= + USE_SASL_FALSE='#' +else + USE_SASL_TRUE='#' + USE_SASL_FALSE= +fi -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 -$as_echo "$ac_cv_gnu_library_2_1" >&6; } - GLIBC21="$ac_cv_gnu_library_2_1" +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; if test x$enableval = xyes ; then +$as_echo "#define DEBUG 1" >>confdefs.h + fi +fi +# Check whether --enable-flock was given. +if test "${enable_flock+set}" = set; then : + enableval=$enable_flock; if test $enableval = yes; then +$as_echo "#define USE_FLOCK 1" >>confdefs.h + fi +fi +mutt_cv_fcntl=yes +# Check whether --enable-fcntl was given. +if test "${enable_fcntl+set}" = set; then : + enableval=$enable_fcntl; if test $enableval = no; then mutt_cv_fcntl=no; fi +fi +if test $mutt_cv_fcntl = yes; then +$as_echo "#define USE_FCNTL 1" >>confdefs.h -for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ -stdlib.h string.h unistd.h sys/param.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent defines d_ino" >&5 +$as_echo_n "checking whether struct dirent defines d_ino... " >&6; } +ac_cv_dirent_d_ino=no +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include +int +main () +{ +struct dirent dp; (void)dp.d_ino + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_dirent_d_ino=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test x$ac_cv_dirent_d_ino = xyes ; then + +$as_echo "#define HAVE_DIRENT_D_INO 1" >>confdefs.h - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_ino" >&5 +$as_echo "$ac_cv_dirent_d_ino" >&6; } -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } +mutt_cv_warnings=yes +# Check whether --enable-warnings was given. +if test "${enable_warnings+set}" = set; then : + enableval=$enable_warnings; if test $enableval = no; then + mutt_cv_warnings=no +fi +fi -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no +if test x$GCC = xyes && test $mutt_cv_warnings = yes; then + CFLAGS="-Wall -pedantic -Wno-long-long $CFLAGS" fi -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } +# Check whether --enable-nfs-fix was given. +if test "${enable_nfs_fix+set}" = set; then : + enableval=$enable_nfs_fix; if test x$enableval = xyes; then -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +$as_echo "#define NFS_ATTRIBUTE_HACK 1" >>confdefs.h - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" + fi fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + +# Check whether --enable-mailtool was given. +if test "${enable_mailtool+set}" = set; then : + enableval=$enable_mailtool; if test x$enableval = xyes; then + +$as_echo "#define SUN_ATTACHMENT 1" >>confdefs.h + + fi fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + +# Check whether --enable-locales-fix was given. +if test "${enable_locales_fix+set}" = set; then : + enableval=$enable_locales_fix; if test x$enableval = xyes; then + +$as_echo "#define LOCALES_HACK 1" >>confdefs.h + + fi fi -done +# Check whether --with-exec-shell was given. +if test "${with_exec_shell+set}" = set; then : + withval=$with_exec_shell; if test $withval != yes; then + +cat >>confdefs.h <<_ACEOF +#define EXECSHELL "$withval" +_ACEOF + + else + cat >>confdefs.h <<_ACEOF +#define EXECSHELL "/bin/sh" +_ACEOF + + fi +else + cat >>confdefs.h <<_ACEOF +#define EXECSHELL "/bin/sh" +_ACEOF + +fi + +# Check whether --enable-exact-address was given. +if test "${enable_exact_address+set}" = set; then : + enableval=$enable_exact_address; if test $enableval = yes; then +$as_echo "#define EXACT_ADDRESS 1" >>confdefs.h + fi +fi +db_found=no +db_requested=auto +# Check whether --enable-hcache was given. +if test "${enable_hcache+set}" = set; then : + enableval=$enable_hcache; +fi +# Check whether --with-tokyocabinet was given. +if test "${with_tokyocabinet+set}" = set; then : + withval=$with_tokyocabinet; +fi +# Check whether --with-qdbm was given. +if test "${with_qdbm+set}" = set; then : + withval=$with_qdbm; +fi +# Check whether --with-gdbm was given. +if test "${with_gdbm+set}" = set; then : + withval=$with_gdbm; +fi +# Check whether --with-bdb was given. +if test "${with_bdb+set}" = set; then : + withval=$with_bdb; +fi +db_found=no +if test x$enable_hcache = xyes +then +$as_echo "#define USE_HCACHE 1" >>confdefs.h + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS hcache.o" + OLDCPPFLAGS="$CPPFLAGS" + OLDLDFLAGS="$LDFLAGS" + OLDLIBS="$LIBS" -for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ -getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ -strdup strtoul tsearch __argz_count __argz_stringify __argz_next -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + need_md5="yes" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + if test -n "$with_tokyocabinet" && test "$with_tokyocabinet" != "no" + then + db_requested=tc + fi + if test -n "$with_qdbm" && test "$with_qdbm" != "no" + then + if test "$db_requested" != "auto" + then + as_fn_error "more than one header cache engine requested." "$LINENO" 5 + else + db_requested=qdbm + fi + fi + if test -n "$with_gdbm" && test "$with_gdbm" != "no" + then + if test "$db_requested" != "auto" + then + as_fn_error "more than one header cache engine requested." "$LINENO" 5 + else + db_requested=gdbm + fi + fi + if test -n "$with_bdb" && test "$with_bdb" != "no" + then + if test "$db_requested" != "auto" + then + as_fn_error "more than one header cache engine requested." "$LINENO" 5 + else + db_requested=bdb + fi + fi -#ifdef __STDC__ -# include -#else -# include -#endif + if test "$with_tokyocabinet" != "no" \ + && test "$db_requested" = auto -o "$db_requested" = tc + then + if test -n "$with_tokyocabinet" && test "$with_tokyocabinet" != "yes" + then + CPPFLAGS="$CPPFLAGS -I$with_tokyocabinet/include" + LDFLAGS="$LDFLAGS -L$with_tokyocabinet/lib" + fi -#undef $ac_func + ac_fn_c_check_header_mongrel "$LINENO" "tcbdb.h" "ac_cv_header_tcbdb_h" "$ac_includes_default" +if test "x$ac_cv_header_tcbdb_h" = x""yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcbdbopen in -ltokyocabinet" >&5 +$as_echo_n "checking for tcbdbopen in -ltokyocabinet... " >&6; } +if test "${ac_cv_lib_tokyocabinet_tcbdbopen+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltokyocabinet $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC @@ -18996,2587 +10051,1712 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - +char tcbdbopen (); int main () { -return $ac_func (); +return tcbdbopen (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_tokyocabinet_tcbdbopen=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_cv_lib_tokyocabinet_tcbdbopen=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - - - - -# Check whether --with-libiconv-prefix was given. -if test "${with_libiconv_prefix+set}" = set; then - withval=$with_libiconv_prefix; - for dir in `echo "$withval" | tr : ' '`; do - if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi - if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi - done - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tokyocabinet_tcbdbopen" >&5 +$as_echo "$ac_cv_lib_tokyocabinet_tcbdbopen" >&6; } +if test "x$ac_cv_lib_tokyocabinet_tcbdbopen" = x""yes; then : + MUTTLIBS="$MUTTLIBS -ltokyocabinet" +$as_echo "#define HAVE_TC 1" >>confdefs.h - { $as_echo "$as_me:$LINENO: checking for iconv" >&5 -$as_echo_n "checking for iconv... " >&6; } -if test "${am_cv_func_iconv+set}" = set; then - $as_echo_n "(cached) " >&6 -else - - am_cv_func_iconv="no, consider installing GNU libiconv" - am_cv_lib_iconv=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - am_cv_func_iconv=yes + db_found=tc else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - + CPPFLAGS="$OLDCPPFLAGS" + LDFLAGS="$OLDLDFLAGS" +fi fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" - LIBS="$LIBS -liconv" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - am_cv_lib_iconv=yes - am_cv_func_iconv=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test "$db_requested" != auto && test "$db_found" != "$db_requested" + then + as_fn_error "Tokyo Cabinet could not be used. Check config.log for details." "$LINENO" 5 + fi + fi -fi + if test "$with_qdbm" != "no" && test $db_found = no \ + && test "$db_requested" = auto -o "$db_requested" = qdbm + then + if test -n "$with_qdbm" && test "$with_qdbm" != "yes" + then + if test -d $with_qdbm/include/qdbm; then + CPPFLAGS="$CPPFLAGS -I$with_qdbm/include/qdbm" + else + CPPFLAGS="$CPPFLAGS -I$with_qdbm/include" + fi + LDFLAGS="$LDFLAGS -L$with_qdbm/lib" + else + if test -d /usr/include/qdbm; then + CPPFLAGS="$CPPFLAGS -I/usr/include/qdbm" + fi + fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$am_save_LIBS" - fi + saved_LIBS="$LIBS" + for ac_header in villa.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "villa.h" "ac_cv_header_villa_h" "$ac_includes_default" +if test "x$ac_cv_header_villa_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VILLA_H 1 +_ACEOF fi -{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 -$as_echo "$am_cv_func_iconv" >&6; } - if test "$am_cv_func_iconv" = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ICONV 1 -_ACEOF +done - { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 -$as_echo_n "checking for iconv declaration... " >&6; } - if test "${am_cv_proto_iconv+set}" = set; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vlopen in -lqdbm" >&5 +$as_echo_n "checking for vlopen in -lqdbm... " >&6; } +if test "${ac_cv_lib_qdbm_vlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lqdbm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -extern +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ #ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(__cplusplus) -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); -#else -size_t iconv(); +extern "C" #endif - +char vlopen (); int main () { - +return vlopen (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - am_cv_proto_iconv_arg1="" +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_qdbm_vlopen=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - am_cv_proto_iconv_arg1="const" + ac_cv_lib_qdbm_vlopen=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qdbm_vlopen" >&5 +$as_echo "$ac_cv_lib_qdbm_vlopen" >&6; } +if test "x$ac_cv_lib_qdbm_vlopen" = x""yes; then : + MUTTLIBS="$MUTTLIBS -lqdbm" - am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - { $as_echo "$as_me:$LINENO: result: ${ac_t:- - }$am_cv_proto_iconv" >&5 -$as_echo "${ac_t:- - }$am_cv_proto_iconv" >&6; } - -cat >>confdefs.h <<_ACEOF -#define ICONV_CONST $am_cv_proto_iconv_arg1 -_ACEOF - - fi - LIBICONV= - if test "$am_cv_lib_iconv" = yes; then - LIBICONV="-liconv" - fi +$as_echo "#define HAVE_QDBM 1" >>confdefs.h + db_found=qdbm +else + CPPFLAGS="$OLDCPPFLAGS" + LDFLAGS="$OLDLDFLAGS" +fi + LIBS="$saved_LIBS" + if test "$db_requested" != auto && test "$db_found" != "$db_requested" + then + as_fn_error "QDBM could not be used. Check config.log for details." "$LINENO" 5 + fi + fi - { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 -$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } -if test "${am_cv_langinfo_codeset+set}" = set; then + if test x$with_gdbm != xno && test $db_found = no \ + && test "$db_requested" = auto -o "$db_requested" = gdbm + then + if test "$with_gdbm" != "yes" + then + CPPFLAGS="$CPPFLAGS -I$with_gdbm/include" + LDFLAGS="$LDFLAGS -L$with_gdbm/lib" + fi + saved_LIBS="$LIBS" + LIBS="$LIBS -lgdbm" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open" >&5 +$as_echo_n "checking for gdbm_open... " >&6; } +if test "${ac_cv_gdbmopen+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + ac_cv_gdbmopen=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include int main () { -char* cs = nl_langinfo(CODESET); +gdbm_open(0,0,0,0,0); ; return 0; } -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - am_cv_langinfo_codeset=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - am_cv_langinfo_codeset=no +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_gdbmopen=yes fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 -$as_echo "$am_cv_langinfo_codeset" >&6; } - if test $am_cv_langinfo_codeset = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gdbmopen" >&5 +$as_echo "$ac_cv_gdbmopen" >&6; } + LIBS="$saved_LIBS" + if test "$ac_cv_gdbmopen" = yes + then -cat >>confdefs.h <<\_ACEOF -#define HAVE_LANGINFO_CODESET 1 -_ACEOF +$as_echo "#define HAVE_GDBM 1" >>confdefs.h - fi + MUTTLIBS="$MUTTLIBS -lgdbm" + db_found=gdbm + fi + if test "$db_requested" != auto && test "$db_found" != "$db_requested" + then + as_fn_error "GDBM could not be used. Check config.log for details." "$LINENO" 5 + fi + fi - if test $ac_cv_header_locale_h = yes; then - { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 -$as_echo_n "checking for LC_MESSAGES... " >&6; } -if test "${am_cv_val_LC_MESSAGES+set}" = set; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_bdb_prefix="$with_bdb" + if test x$ac_bdb_prefix != xno && test $db_found = no + then + if test x$ac_bdb_prefix = xyes || test x$ac_bdb_prefix = x + then + ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr" + fi + for d in $ac_bdb_prefix; do + bdbpfx="$bdbpfx $d" + for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do + bdbpfx="$bdbpfx $d/$v" + done + done + BDB_VERSIONS="db-4 db4 db-4.6 db4.6 db46 db-4.5 db4.5 db45 db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BerkeleyDB > 4.0" >&5 +$as_echo_n "checking for BerkeleyDB > 4.0... " >&6; } + for d in $bdbpfx; do + BDB_INCLUDE_DIR="" + BDB_LIB_DIR="" + for v in / $BDB_VERSIONS; do + if test -r "$d/include/$v/db.h"; then + BDB_INCLUDE_DIR="$d/include/$v" + for bdblibdir in "$d/lib/$v" "$d/lib"; do + test -d "$bdblibdir" || continue + BDB_LIB_DIR="$bdblibdir" + for l in `echo $BDB_VERSIONS`; do + CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR" + LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + + #include + #include + int main () { -return LC_MESSAGES + + DB *db = NULL; + db->open(db,NULL,NULL,NULL,0,0,0); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - am_cv_val_LC_MESSAGES=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_link "$LINENO"; then : - am_cv_val_LC_MESSAGES=no -fi + ac_cv_dbcreate=yes + BDB_LIB="$l" + break -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 -$as_echo "$am_cv_val_LC_MESSAGES" >&6; } - if test $am_cv_val_LC_MESSAGES = yes; then +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done + test x$ac_cv_dbcreate = xyes && break 2 + done + fi + done + test x$BDB_LIB != x && break + done + if test x$ac_cv_dbcreate = xyes + then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR" + LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB" -cat >>confdefs.h <<\_ACEOF -#define HAVE_LC_MESSAGES 1 -_ACEOF +$as_echo "#define HAVE_DB4 1" >>confdefs.h + + db_found=bdb + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + fi + if test $db_found = no + then + as_fn_error "You need Tokyo Cabinet, QDBM, GDBM or Berkeley DB4 for hcache" "$LINENO" 5 fi - fi - { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 -$as_echo_n "checking whether NLS is requested... " >&6; } - # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then - enableval=$enable_nls; USE_NLS=$enableval -else - USE_NLS=yes fi - { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } + if test x$db_found != xno; then + BUILD_HCACHE_TRUE= + BUILD_HCACHE_FALSE='#' +else + BUILD_HCACHE_TRUE='#' + BUILD_HCACHE_FALSE= +fi - BUILD_INCLUDED_LIBINTL=no - USE_INCLUDED_LIBINTL=no - INTLLIBS= +if test "$need_md5" = "yes" +then + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5.o" +fi - if test "$USE_NLS" = "yes"; then +if test x$db_found != xno ; then + MUTT_MD5="mutt_md5$EXEEXT" +fi -cat >>confdefs.h <<\_ACEOF -#define ENABLE_NLS 1 -_ACEOF - { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 -$as_echo_n "checking whether included gettext is requested... " >&6; } -# Check whether --with-included-gettext was given. -if test "${with_included_gettext+set}" = set; then - withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval -else - nls_cv_force_use_gnu_gettext=no -fi - { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 -$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } - nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" - if test "$nls_cv_force_use_gnu_gettext" != "yes"; then - CATOBJEXT=NONE +# Check whether --enable-iconv was given. +if test "${enable_iconv+set}" = set; then : + enableval=$enable_iconv; if test x$enableval = xno ; then + am_cv_func_iconv=no + fi - if test "${ac_cv_header_libintl_h+set}" = set; then - { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5 -$as_echo_n "checking for libintl.h... " >&6; } -if test "${ac_cv_header_libintl_h+set}" = set; then - $as_echo_n "(cached) " >&6 fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 -$as_echo "$ac_cv_header_libintl_h" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5 -$as_echo_n "checking libintl.h usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" +if test "x$ac_cv_type_off_t" = x""yes; then : -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5 -$as_echo_n "checking libintl.h presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi +cat >>confdefs.h <<_ACEOF +#define off_t long int +_ACEOF -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } +fi -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = x""yes; then : - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for libintl.h" >&5 -$as_echo_n "checking for libintl.h... " >&6; } -if test "${ac_cv_header_libintl_h+set}" = set; then - $as_echo_n "(cached) " >&6 else - ac_cv_header_libintl_h=$ac_header_preproc -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 -$as_echo "$ac_cv_header_libintl_h" >&6; } + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF fi -if test "x$ac_cv_header_libintl_h" = x""yes; then - { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 -$as_echo_n "checking for GNU gettext in libc... " >&6; } -if test "${gt_cv_func_gnugettext1_libc+set}" = set; then + +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if test "${ac_cv_working_alloca_h+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -extern int _nl_msg_cat_cntr; +#include int main () { -bindtextdomain ("", ""); -return (int) gettext ("") + _nl_msg_cat_cntr +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - gt_cv_func_gnugettext1_libc=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_func_gnugettext1_libc=no + ac_cv_working_alloca_h=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then + +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 -$as_echo "$gt_cv_func_gnugettext1_libc" >&6; } - if test "$gt_cv_func_gnugettext1_libc" != "yes"; then - { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 -$as_echo_n "checking for GNU gettext in libintl... " >&6; } -if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if test "${ac_cv_func_alloca_works+set}" = set; then : $as_echo_n "(cached) " >&6 else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -lintl $LIBICONV" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -extern int _nl_msg_cat_cntr; +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +# endif +#endif + int main () { -bindtextdomain ("", ""); -return (int) gettext ("") + _nl_msg_cat_cntr +char *p = (char *) alloca (1); + if (p) return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - gt_cv_func_gnugettext1_libintl=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_func_gnugettext1_libintl=no + ac_cv_func_alloca_works=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 -$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } - fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } - if test "$gt_cv_func_gnugettext1_libc" = "yes" \ - || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ - && test "$PACKAGE" != gettext; }; then +if test $ac_cv_func_alloca_works = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_GETTEXT 1 -_ACEOF +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. - if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then - INTLLIBS="-lintl $LIBICONV" - fi +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext - gt_save_LIBS="$LIBS" - LIBS="$LIBS $INTLLIBS" +$as_echo "#define C_ALLOCA 1" >>confdefs.h -for ac_func in dcgettext -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if test "${ac_cv_os_cray+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include +#if defined CRAY && ! defined CRAY2 +webecray #else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +wenotbecray #endif -int -main () -{ -return $ac_func (); - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_cv_os_cray=no fi +rm -f conftest* -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func _ACEOF + break fi -done - - LIBS="$gt_save_LIBS" - # Extract the first word of "msgfmt", so it can be a program name with args. -set dummy msgfmt; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_MSGFMT+set}" = set; then - $as_echo_n "(cached) " >&6 -else - case "$MSGFMT" in - /*) - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then - ac_cv_path_MSGFMT="$ac_dir/$ac_word" - break - fi - fi done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" - ;; -esac -fi -MSGFMT="$ac_cv_path_MSGFMT" -if test "$MSGFMT" != ":"; then - { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 -$as_echo "$MSGFMT" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } fi - # Extract the first word of "gmsgfmt", so it can be a program name with args. -set dummy gmsgfmt; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_GMSGFMT+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if test "${ac_cv_c_stack_direction+set}" = set; then : $as_echo_n "(cached) " >&6 else - case $GMSGFMT in - [\\/]* | ?:[\\/]*) - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" - ;; -esac -fi -GMSGFMT=$ac_cv_path_GMSGFMT -if test -n "$GMSGFMT"; then - { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 -$as_echo "$GMSGFMT" >&6; } + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - - + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction () +{ + static char *addr = 0; + auto char dummy; + if (addr == 0) + { + addr = &dummy; + return find_stack_direction (); + } + else + return (&dummy > addr) ? 1 : -1; +} - # Extract the first word of "xgettext", so it can be a program name with args. -set dummy xgettext; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_XGETTEXT+set}" = set; then - $as_echo_n "(cached) " >&6 +int +main () +{ + return find_stack_direction () < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 else - case "$XGETTEXT" in - /*) - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then - ac_cv_path_XGETTEXT="$ac_dir/$ac_word" - break - fi - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" - ;; -esac + ac_cv_c_stack_direction=-1 fi -XGETTEXT="$ac_cv_path_XGETTEXT" -if test "$XGETTEXT" != ":"; then - { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 -$as_echo "$XGETTEXT" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - - CATOBJEXT=.gmo - fi - fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF - - if test "$CATOBJEXT" = "NONE"; then - nls_cv_use_gnu_gettext=yes - fi - fi - - if test "$nls_cv_use_gnu_gettext" = "yes"; then - INTLOBJS="\$(GETTOBJS)" - # Extract the first word of "msgfmt", so it can be a program name with args. -set dummy msgfmt; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_MSGFMT+set}" = set; then - $as_echo_n "(cached) " >&6 -else - case "$MSGFMT" in - /*) - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then - ac_cv_path_MSGFMT="$ac_dir/$ac_word" - break - fi - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" - ;; -esac fi -MSGFMT="$ac_cv_path_MSGFMT" -if test "$MSGFMT" != ":"; then - { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 -$as_echo "$MSGFMT" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + + + + + for ac_header in $ac_header_list +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + fi - # Extract the first word of "gmsgfmt", so it can be a program name with args. -set dummy gmsgfmt; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_GMSGFMT+set}" = set; then - $as_echo_n "(cached) " >&6 -else - case $GMSGFMT in - [\\/]* | ?:[\\/]*) - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done done -IFS=$as_save_IFS - test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" - ;; -esac -fi -GMSGFMT=$ac_cv_path_GMSGFMT -if test -n "$GMSGFMT"; then - { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 -$as_echo "$GMSGFMT" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi - # Extract the first word of "xgettext", so it can be a program name with args. -set dummy xgettext; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_XGETTEXT+set}" = set; then + + + + + +for ac_func in getpagesize +do : + ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" +if test "x$ac_cv_func_getpagesize" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETPAGESIZE 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +$as_echo_n "checking for working mmap... " >&6; } +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : $as_echo_n "(cached) " >&6 else - case "$XGETTEXT" in - /*) - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then - ac_cv_path_XGETTEXT="$ac_dir/$ac_word" - break - fi - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" - ;; -esac -fi -XGETTEXT="$ac_cv_path_XGETTEXT" -if test "$XGETTEXT" != ":"; then - { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 -$as_echo "$XGETTEXT" >&6; } + if test "$cross_compiling" = yes; then : + ac_cv_func_mmap_fixed_mapped=no else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +/* malloc might have been renamed as rpl_malloc. */ +#undef malloc +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the file system buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propagated back to all the places they're supposed to be. - BUILD_INCLUDED_LIBINTL=yes - USE_INCLUDED_LIBINTL=yes - CATOBJEXT=.gmo - INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" - LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` - fi + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ - if test "$GMSGFMT" != ":"; then - if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then - : ; - else - { $as_echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 -$as_echo "found msgfmt program is not GNU msgfmt; ignore it" >&6; } - GMSGFMT=":" - fi - fi +#include +#include - if test "$XGETTEXT" != ":"; then - if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then - : ; - else - { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 -$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } - XGETTEXT=":" - fi - fi +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H +char *malloc (); +#endif - POSUB=po - fi - ac_config_commands="$ac_config_commands default-1" +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ +#endif /* no HAVE_GETPAGESIZE */ +int +main () +{ + char *data, *data2, *data3; + const char *cdata2; + int i, pagesize; + int fd, fd2; - if test "$PACKAGE" = gettext; then - BUILD_INCLUDED_LIBINTL=yes - fi + pagesize = getpagesize (); - for ac_prog in bison -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_INTLBISON+set}" = set; then - $as_echo_n "(cached) " >&6 + /* First, make a file with some known garbage in it. */ + data = (char *) malloc (pagesize); + if (!data) + return 1; + for (i = 0; i < pagesize; ++i) + *(data + i) = rand (); + umask (0); + fd = creat ("conftest.mmap", 0600); + if (fd < 0) + return 2; + if (write (fd, data, pagesize) != pagesize) + return 3; + close (fd); + + /* Next, check that the tail of a page is zero-filled. File must have + non-zero length, otherwise we risk SIGBUS for entire page. */ + fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); + if (fd2 < 0) + return 4; + cdata2 = ""; + if (write (fd2, cdata2, 1) != 1) + return 5; + data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); + if (data2 == MAP_FAILED) + return 6; + for (i = 0; i < pagesize; ++i) + if (*(data2 + i)) + return 7; + close (fd2); + if (munmap (data2, pagesize)) + return 8; + + /* Next, try to mmap the file at a fixed address which already has + something else allocated at it. If we can, also make sure that + we see the same garbage. */ + fd = open ("conftest.mmap", O_RDWR); + if (fd < 0) + return 9; + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + return 10; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + return 11; + + /* Finally, make sure that changes to the mapped area do not + percolate back to the file as seen by read(). (This is a bug on + some variants of i386 svr4.0.) */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = (char *) malloc (pagesize); + if (!data3) + return 12; + if (read (fd, data3, pagesize) != pagesize) + return 13; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + return 14; + close (fd); + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_mmap_fixed_mapped=yes else - if test -n "$INTLBISON"; then - ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. + ac_cv_func_mmap_fixed_mapped=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +if test $ac_cv_func_mmap_fixed_mapped = yes; then + +$as_echo "#define HAVE_MMAP 1" >>confdefs.h + +fi +rm -f conftest.mmap conftest.txt + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 +$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } +if test "${ac_cv_gnu_library_2_1+set}" = set; then : + $as_echo_n "(cached) " >&6 else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_INTLBISON="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) + Lucky GNU user + #endif +#endif -fi -fi -INTLBISON=$ac_cv_prog_INTLBISON -if test -n "$INTLBISON"; then - { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5 -$as_echo "$INTLBISON" >&6; } +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + ac_cv_gnu_library_2_1=yes else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + ac_cv_gnu_library_2_1=no fi +rm -f conftest* - test -n "$INTLBISON" && break -done - if test -z "$INTLBISON"; then - ac_verc_fail=yes - else - { $as_echo "$as_me:$LINENO: checking version of bison" >&5 -$as_echo_n "checking version of bison... " >&6; } - ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` - case $ac_prog_version in - '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; - 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) - ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; - *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; - esac - { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 -$as_echo "$ac_prog_version" >&6; } - fi - if test $ac_verc_fail = yes; then - INTLBISON=: - fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 +$as_echo "$ac_cv_gnu_library_2_1" >&6; } - for lang in $ALL_LINGUAS; do - GMOFILES="$GMOFILES $lang.gmo" - POFILES="$POFILES $lang.po" - done + GLIBC21="$ac_cv_gnu_library_2_1" + for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ +stdlib.h string.h unistd.h sys/param.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF +fi +done + for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ +getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ +strdup strtoul tsearch __argz_count __argz_stringify __argz_next +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +fi +done - nls_cv_header_intl= - nls_cv_header_libgt= - DATADIRNAME=share +# Check whether --with-libiconv-prefix was given. +if test "${with_libiconv_prefix+set}" = set; then : + withval=$with_libiconv_prefix; + for dir in `echo "$withval" | tr : ' '`; do + if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi + if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi + done +fi - INSTOBJEXT=.mo + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +$as_echo_n "checking for iconv... " >&6; } +if test "${am_cv_func_iconv+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - GENCAT=gencat + am_cv_func_iconv="no, consider installing GNU libiconv" + am_cv_lib_iconv=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_func_iconv=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS -liconv" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_lib_iconv=yes + am_cv_func_iconv=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$am_save_LIBS" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 +$as_echo "$am_cv_func_iconv" >&6; } + if test "$am_cv_func_iconv" = yes; then +$as_echo "#define HAVE_ICONV 1" >>confdefs.h - if test "x$CATOBJEXT" != "x"; then - if test "x$ALL_LINGUAS" = "x"; then - LINGUAS= - else - { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 -$as_echo_n "checking for catalogs to be installed... " >&6; } - NEW_LINGUAS= - for presentlang in $ALL_LINGUAS; do - useit=no - for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do - # Use the presentlang catalog if desiredlang is - # a. equal to presentlang, or - # b. a variant of presentlang (because in this case, - # presentlang can be used as a fallback for messages - # which are not translated in the desiredlang catalog). - case "$desiredlang" in - "$presentlang"*) useit=yes;; - esac - done - if test $useit = yes; then - NEW_LINGUAS="$NEW_LINGUAS $presentlang" - fi - done - LINGUAS=$NEW_LINGUAS - { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5 -$as_echo "$LINGUAS" >&6; } - fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 +$as_echo_n "checking for iconv declaration... " >&6; } + if test "${am_cv_proto_iconv+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - if test -n "$LINGUAS"; then - for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done - fi - fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - MKINSTALLDIRS= - if test -n "$ac_aux_dir"; then - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" - fi - if test -z "$MKINSTALLDIRS"; then - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" - fi +#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif +int +main () +{ - INTL_LIBTOOL_SUFFIX_PREFIX= + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + am_cv_proto_iconv_arg1="" +else + am_cv_proto_iconv_arg1="const" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" +fi + am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- + }$am_cv_proto_iconv" >&5 +$as_echo "${ac_t:- + }$am_cv_proto_iconv" >&6; } +cat >>confdefs.h <<_ACEOF +#define ICONV_CONST $am_cv_proto_iconv_arg1 +_ACEOF -if test "$am_cv_func_iconv" != "yes" -then - { $as_echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5 -$as_echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;} -else + fi + LIBICONV= + if test "$am_cv_lib_iconv" = yes; then + LIBICONV="-liconv" + fi -for ac_header in iconv.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 +$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } +if test "${am_cv_langinfo_codeset+set}" = set; then : $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include +int +main () +{ +char* cs = nl_langinfo(CODESET); + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +if ac_fn_c_try_link "$LINENO"; then : + am_cv_langinfo_codeset=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + am_cv_langinfo_codeset=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 +$as_echo "$am_cv_langinfo_codeset" >&6; } + if test $am_cv_langinfo_codeset = yes; then -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } +$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + fi + + if test $ac_cv_header_locale_h = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 +$as_echo_n "checking for LC_MESSAGES... " >&6; } +if test "${am_cv_val_LC_MESSAGES+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <$ac_header> +#include +int +main () +{ +return LC_MESSAGES + ; + return 0; +} _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +if ac_fn_c_try_link "$LINENO"; then : + am_cv_val_LC_MESSAGES=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + am_cv_val_LC_MESSAGES=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 +$as_echo "$am_cv_val_LC_MESSAGES" >&6; } + if test $am_cv_val_LC_MESSAGES = yes; then + +$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h - ac_header_preproc=no + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +$as_echo_n "checking whether NLS is requested... " >&6; } + # Check whether --enable-nls was given. +if test "${enable_nls+set}" = set; then : + enableval=$enable_nls; USE_NLS=$enableval +else + USE_NLS=yes fi -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + BUILD_INCLUDED_LIBINTL=no + USE_INCLUDED_LIBINTL=no + INTLLIBS= -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - { $as_echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5 -$as_echo_n "checking whether iconv.h defines iconv_t... " >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include + if test "$USE_NLS" = "yes"; then -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then - { $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } +$as_echo "#define ENABLE_NLS 1" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define HAVE_ICONV_T_DEF 1 -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 +$as_echo_n "checking whether included gettext is requested... " >&6; } +# Check whether --with-included-gettext was given. +if test "${with_included_gettext+set}" = set; then : + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } + nls_cv_force_use_gnu_gettext=no fi -rm -f conftest* -fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 +$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } -done + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then + CATOBJEXT=NONE -{ $as_echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5 -$as_echo_n "checking whether this iconv is good enough... " >&6; } -if test "${mutt_cv_iconv_good+set}" = set; then + + + ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" +if test "x$ac_cv_header_libintl_h" = x""yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 +$as_echo_n "checking for GNU gettext in libc... " >&6; } +if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : $as_echo_n "(cached) " >&6 else - mutt_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - if test "$cross_compiling" = yes; then - mutt_cv_iconv_good=yes -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -#include -int main() +#include +extern int _nl_msg_cat_cntr; +int +main () { - iconv_t cd; - char buf[4]; - char *ob; - size_t obl; - ob = buf, obl = sizeof(buf); - return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) && - (iconv(cd, 0, 0, &ob, &obl) || - !(ob == buf && obl == sizeof(buf)) || - iconv_close(cd))); +bindtextdomain ("", ""); +return (int) gettext ("") + _nl_msg_cat_cntr + ; + return 0; } - _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - mutt_cv_iconv_good=yes +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_gnugettext1_libc=yes else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -mutt_cv_iconv_good=no + gt_cv_func_gnugettext1_libc=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - - LIBS="$mutt_save_LIBS" -fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5 -$as_echo "$mutt_cv_iconv_good" >&6; } -if test "$mutt_cv_iconv_good" = no; then - { { $as_echo "$as_me:$LINENO: error: Try using libiconv instead" >&5 -$as_echo "$as_me: error: Try using libiconv instead" >&2;} - { (exit 1); exit 1; }; } +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 +$as_echo "$gt_cv_func_gnugettext1_libc" >&6; } -{ $as_echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5 -$as_echo_n "checking whether iconv is non-transcribing... " >&6; } -if test "${mutt_cv_iconv_nontrans+set}" = set; then + if test "$gt_cv_func_gnugettext1_libc" != "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 +$as_echo_n "checking for GNU gettext in libintl... " >&6; } +if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : $as_echo_n "(cached) " >&6 else - mutt_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - if test "$cross_compiling" = yes; then - mutt_cv_iconv_nontrans=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + gt_save_LIBS="$LIBS" + LIBS="$LIBS -lintl $LIBICONV" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -#include -#include -int main() +#include +extern int _nl_msg_cat_cntr; +int +main () { - iconv_t cd; - const char *ib; - char *ob; - size_t ibl, obl; - const char *s = "\304\211"; - char t[3]; - ib = s, ibl = 2, ob = t, obl = 3; - return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) || - iconv(cd, &ib, &ibl, &ob, &obl)); +bindtextdomain ("", ""); +return (int) gettext ("") + _nl_msg_cat_cntr + ; + return 0; } - _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - mutt_cv_iconv_nontrans=no +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_gnugettext1_libintl=yes else - $as_echo "$as_me: program exited with status $ac_status" >&5 -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -mutt_cv_iconv_nontrans=yes + gt_cv_func_gnugettext1_libintl=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gt_save_LIBS" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 +$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } + fi + if test "$gt_cv_func_gnugettext1_libc" = "yes" \ + || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ + && test "$PACKAGE" != gettext; }; then - LIBS="$mutt_save_LIBS" -fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5 -$as_echo "$mutt_cv_iconv_nontrans" >&6; } -if test "$mutt_cv_iconv_nontrans" = yes; then - cat >>confdefs.h <<\_ACEOF -#define ICONV_NONTRANS 1 -_ACEOF +$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h -else - cat >>confdefs.h <<\_ACEOF -#define ICONV_NONTRANS 0 -_ACEOF -fi + if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then + INTLLIBS="-lintl $LIBICONV" + fi -CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl" + gt_save_LIBS="$LIBS" + LIBS="$LIBS $INTLLIBS" + for ac_func in dcgettext +do : + ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" +if test "x$ac_cv_func_dcgettext" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DCGETTEXT 1 +_ACEOF -if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then +fi +done -cat >>confdefs.h <<\_ACEOF -#define HAVE_BIND_TEXTDOMAIN_CODESET 1 -_ACEOF + LIBS="$gt_save_LIBS" + # Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 else - mutt_save_LIBS="$LIBS" - LIBS="$LIBS $INTLLIBS" + case "$MSGFMT" in + /*) + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then + ac_cv_path_MSGFMT="$ac_dir/$ac_word" + break + fi + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" + ;; +esac +fi +MSGFMT="$ac_cv_path_MSGFMT" +if test "$MSGFMT" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -for ac_func in bind_textdomain_codeset -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + # Extract the first word of "gmsgfmt", so it can be a program name with args. +set dummy gmsgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_GMSGFMT+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + case $GMSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" + ;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +fi +GMSGFMT=$ac_cv_path_GMSGFMT +if test -n "$GMSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done - LIBS="$mutt_save_LIBS" + # Extract the first word of "xgettext", so it can be a program name with args. +set dummy xgettext; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_XGETTEXT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case "$XGETTEXT" in + /*) + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then + ac_cv_path_XGETTEXT="$ac_dir/$ac_word" + break + fi + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" + ;; +esac +fi +XGETTEXT="$ac_cv_path_XGETTEXT" +if test "$XGETTEXT" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - -fi # libiconv + CATOBJEXT=.gmo + fi -# Check whether --with-idn was given. -if test "${with_idn+set}" = set; then - withval=$with_idn; - if test "$with_idn" != "no" ; then - if test "$with_idn" != "yes" ; then - CPPFLAGS="$CPPFLAGS -I$with_idn/include" - LDFLAGS="$LDFLAGS -L$with_idn/lib" - fi - fi +fi -fi + if test "$CATOBJEXT" = "NONE"; then + nls_cv_use_gnu_gettext=yes + fi + fi -if test "x$with_idn" != "xno"; then - if test "$am_cv_func_iconv" != "yes" - then - if test "x$with_idn" != "x" - then - { { $as_echo "$as_me:$LINENO: error: IDN requested but iconv is disabled or unavailable" >&5 -$as_echo "$as_me: error: IDN requested but iconv is disabled or unavailable" >&2;} - { (exit 1); exit 1; }; } - fi - else - { $as_echo "$as_me:$LINENO: checking for library containing stringprep_check_version" >&5 -$as_echo_n "checking for library containing stringprep_check_version... " >&6; } -if test "${ac_cv_search_stringprep_check_version+set}" = set; then + if test "$nls_cv_use_gnu_gettext" = "yes"; then + INTLOBJS="\$(GETTOBJS)" + # Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGFMT+set}" = set; then : $as_echo_n "(cached) " >&6 else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char stringprep_check_version (); -int -main () -{ -return stringprep_check_version (); - ; - return 0; -} -_ACEOF -for ac_lib in '' idn; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + case "$MSGFMT" in + /*) + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then + ac_cv_path_MSGFMT="$ac_dir/$ac_word" + break + fi + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" + ;; esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_search_stringprep_check_version=$ac_res +fi +MSGFMT="$ac_cv_path_MSGFMT" +if test "$MSGFMT" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + # Extract the first word of "gmsgfmt", so it can be a program name with args. +set dummy gmsgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_GMSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $GMSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" + ;; +esac fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_stringprep_check_version+set}" = set; then - break +GMSGFMT=$ac_cv_path_GMSGFMT +if test -n "$GMSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -done -if test "${ac_cv_search_stringprep_check_version+set}" = set; then - : + + + # Extract the first word of "xgettext", so it can be a program name with args. +set dummy xgettext; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_XGETTEXT+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_cv_search_stringprep_check_version=no + case "$XGETTEXT" in + /*) + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then + ac_cv_path_XGETTEXT="$ac_dir/$ac_word" + break + fi + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" + ;; +esac fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +XGETTEXT="$ac_cv_path_XGETTEXT" +if test "$XGETTEXT" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_stringprep_check_version" >&5 -$as_echo "$ac_cv_search_stringprep_check_version" >&6; } -ac_res=$ac_cv_search_stringprep_check_version -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBIDN 1 -_ACEOF + BUILD_INCLUDED_LIBINTL=yes + USE_INCLUDED_LIBINTL=yes + CATOBJEXT=.gmo + INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` + fi + + if test "$GMSGFMT" != ":"; then + if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then + : ; + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 +$as_echo "found msgfmt program is not GNU msgfmt; ignore it" >&6; } + GMSGFMT=":" + fi + fi + + if test "$XGETTEXT" != ":"; then + if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then + : ; + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 +$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } + XGETTEXT=":" + fi + fi - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_idna.o" + POSUB=po + fi + ac_config_commands="$ac_config_commands default-1" -fi + if test "$PACKAGE" = gettext; then + BUILD_INCLUDED_LIBINTL=yes + fi -for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z + for ac_prog in bison do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_INTLBISON+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" + if test -n "$INTLBISON"; then + ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_INTLBISON="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - eval "$as_ac_var=no" fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - +INTLBISON=$ac_cv_prog_INTLBISON +if test -n "$INTLBISON"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 +$as_echo "$INTLBISON" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi + + + test -n "$INTLBISON" && break done + if test -z "$INTLBISON"; then + ac_verc_fail=yes + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 +$as_echo_n "checking version of bison... " >&6; } + ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` + case $ac_prog_version in + '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; + 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) + ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; + *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 +$as_echo "$ac_prog_version" >&6; } + fi + if test $ac_verc_fail = yes; then + INTLBISON=: + fi + for lang in $ALL_LINGUAS; do + GMOFILES="$GMOFILES $lang.gmo" + POFILES="$POFILES $lang.po" + done -for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done + nls_cv_header_intl= + nls_cv_header_libgt= -for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + DATADIRNAME=share -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif + INSTOBJEXT=.mo -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + GENCAT=gencat -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + if test "x$CATOBJEXT" != "x"; then + if test "x$ALL_LINGUAS" = "x"; then + LINGUAS= + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 +$as_echo_n "checking for catalogs to be installed... " >&6; } + NEW_LINGUAS= + for presentlang in $ALL_LINGUAS; do + useit=no + for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + NEW_LINGUAS="$NEW_LINGUAS $presentlang" + fi + done + LINGUAS=$NEW_LINGUAS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 +$as_echo "$LINGUAS" >&6; } + fi + + if test -n "$LINGUAS"; then + for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done + fi + fi + + MKINSTALLDIRS= + if test -n "$ac_aux_dir"; then + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" + fi + if test -z "$MKINSTALLDIRS"; then + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" + fi -fi -done - fi -fi + INTL_LIBTOOL_SUFFIX_PREFIX= -for ac_header in wchar.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +if test "$am_cv_func_iconv" != "yes" +then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring without iconv support. See INSTALL for details" >&5 +$as_echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;} else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +for ac_header in iconv.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" +if test "x$ac_cv_header_iconv_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ICONV_H 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv.h defines iconv_t" >&5 +$as_echo_n "checking whether iconv.h defines iconv_t... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi +#include -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +$as_echo "#define HAVE_ICONV_T_DEF 1" >>confdefs.h - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +rm -f conftest* fi done -{ $as_echo "$as_me:$LINENO: checking for wchar_t" >&5 -$as_echo_n "checking for wchar_t... " >&6; } -if test "${mutt_cv_wchar_t+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this iconv is good enough" >&5 +$as_echo_n "checking whether this iconv is good enough... " >&6; } +if test "${mutt_cv_iconv_good+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + mutt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + if test "$cross_compiling" = yes; then : + mutt_cv_iconv_good=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#ifdef HAVE_WCHAR_H -#include -#endif - -int -main () +#include +int main() { - wchar_t wc; return 0; - ; - return 0; + iconv_t cd; + char buf[4]; + char *ob; + size_t obl; + ob = buf, obl = sizeof(buf); + return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) && + (iconv(cd, 0, 0, &ob, &obl) || + !(ob == buf && obl == sizeof(buf)) || + iconv_close(cd))); } + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - mutt_cv_wchar_t=yes +if ac_fn_c_try_run "$LINENO"; then : + mutt_cv_iconv_good=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - mutt_cv_wchar_t=no + mutt_cv_iconv_good=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5 -$as_echo "$mutt_cv_wchar_t" >&6; } - -if test "$mutt_cv_wchar_t" = no; then - -cat >>confdefs.h <<\_ACEOF -#define wchar_t int -_ACEOF + LIBS="$mutt_save_LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_iconv_good" >&5 +$as_echo "$mutt_cv_iconv_good" >&6; } +if test "$mutt_cv_iconv_good" = no; then + as_fn_error "Try using libiconv instead" "$LINENO" 5 fi -{ $as_echo "$as_me:$LINENO: checking for wint_t" >&5 -$as_echo_n "checking for wint_t... " >&6; } -if test "${mutt_cv_wint_t+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is non-transcribing" >&5 +$as_echo_n "checking whether iconv is non-transcribing... " >&6; } +if test "${mutt_cv_iconv_nontrans+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + mutt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + if test "$cross_compiling" = yes; then : + mutt_cv_iconv_nontrans=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#ifdef HAVE_WCHAR_H -#include -#endif - -int -main () +#include +#include +int main() { - wint_t wc; return 0; - ; - return 0; + iconv_t cd; + const char *ib; + char *ob; + size_t ibl, obl; + const char *s = "\304\211"; + char t[3]; + ib = s, ibl = 2, ob = t, obl = 3; + return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) || + iconv(cd, &ib, &ibl, &ob, &obl)); } + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - mutt_cv_wint_t=yes +if ac_fn_c_try_run "$LINENO"; then : + mutt_cv_iconv_nontrans=no else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - mutt_cv_wint_t=no + mutt_cv_iconv_nontrans=yes fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5 -$as_echo "$mutt_cv_wint_t" >&6; } - -if test "$mutt_cv_wint_t" = no; then - -cat >>confdefs.h <<\_ACEOF -#define wint_t int -_ACEOF + LIBS="$mutt_save_LIBS" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_iconv_nontrans" >&5 +$as_echo "$mutt_cv_iconv_nontrans" >&6; } +if test "$mutt_cv_iconv_nontrans" = yes; then + $as_echo "#define ICONV_NONTRANS 1" >>confdefs.h - -for ac_header in wctype.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + $as_echo "#define ICONV_NONTRANS 0" >>confdefs.h - ac_header_compiler=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi +CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl" -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } +if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +$as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then + mutt_save_LIBS="$LIBS" + LIBS="$LIBS $INTLLIBS" + for ac_func in bind_textdomain_codeset +do : + ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" +if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_BIND_TEXTDOMAIN_CODESET 1 _ACEOF fi - done + LIBS="$mutt_save_LIBS" +fi + +fi # libiconv + + + +# Check whether --with-idn was given. +if test "${with_idn+set}" = set; then : + withval=$with_idn; + if test "$with_idn" != "no" ; then + if test "$with_idn" != "yes" ; then + CPPFLAGS="$CPPFLAGS -I$with_idn/include" + LDFLAGS="$LDFLAGS -L$with_idn/lib" + fi + fi +fi -for ac_func in iswalnum iswalpha iswcntrl iswdigit -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then +if test "x$with_idn" != "xno"; then + if test "$am_cv_func_iconv" != "yes" + then + if test "x$with_idn" != "x" + then + as_fn_error "IDN requested but iconv is disabled or unavailable" "$LINENO" 5 + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing stringprep_check_version" >&5 +$as_echo_n "checking for library containing stringprep_check_version... " >&6; } +if test "${ac_cv_search_stringprep_check_version+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC @@ -21584,62 +11764,58 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - +char stringprep_check_version (); int main () { -return $ac_func (); +return stringprep_check_version (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +for ac_lib in '' idn; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_stringprep_check_version=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if test "${ac_cv_search_stringprep_check_version+set}" = set; then : + break +fi +done +if test "${ac_cv_search_stringprep_check_version+set}" = set; then : - eval "$as_ac_var=no" +else + ac_cv_search_stringprep_check_version=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_stringprep_check_version" >&5 +$as_echo "$ac_cv_search_stringprep_check_version" >&6; } +ac_res=$ac_cv_search_stringprep_check_version +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + + +$as_echo "#define HAVE_LIBIDN 1" >>confdefs.h + + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_idna.o" -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then + + for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -21647,208 +11823,169 @@ _ACEOF fi done + for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +fi +done + for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +fi +done + fi +fi -for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +for ac_header in wchar.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" +if test "x$ac_cv_header_wchar_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WCHAR_H 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +fi -#ifdef __STDC__ -# include -#else -# include -#endif +done -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 +$as_echo_n "checking for wchar_t... " >&6; } +if test "${mutt_cv_wchar_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#ifdef HAVE_WCHAR_H +#include #endif int main () { -return $ac_func (); + wchar_t wc; return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + mutt_cv_wchar_t=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + mutt_cv_wchar_t=no fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_wchar_t" >&5 +$as_echo "$mutt_cv_wchar_t" >&6; } +if test "$mutt_cv_wchar_t" = no; then +$as_echo "#define wchar_t int" >>confdefs.h +fi -for ac_func in iswxdigit towupper towlower -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 +$as_echo_n "checking for wint_t... " >&6; } +if test "${mutt_cv_wint_t+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#include +#include +#ifdef HAVE_WCHAR_H +#include #endif int main () { -return $ac_func (); + wint_t wc; return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + mutt_cv_wint_t=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + mutt_cv_wint_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_wint_t" >&5 +$as_echo "$mutt_cv_wint_t" >&6; } + +if test "$mutt_cv_wint_t" = no; then + +$as_echo "#define wint_t int" >>confdefs.h - eval "$as_ac_var=no" fi -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +for ac_header in wctype.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" +if test "x$ac_cv_header_wctype_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WCTYPE_H 1 +_ACEOF + fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then + +done + +for ac_func in iswalnum iswalpha iswblank iswcntrl iswdigit +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +for ac_func in iswxdigit towupper towlower +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -21857,16 +11994,12 @@ fi done -{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 $as_echo_n "checking for mbstate_t... " >&6; } -if test "${mutt_cv_mbstate_t+set}" = set; then +if test "${mutt_cv_mbstate_t+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -21883,76 +12016,49 @@ main () return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : mutt_cv_mbstate_t=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - mutt_cv_mbstate_t=no + mutt_cv_mbstate_t=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_mbstate_t" >&5 $as_echo "$mutt_cv_mbstate_t" >&6; } if test "$mutt_cv_mbstate_t" = no; then -cat >>confdefs.h <<\_ACEOF -#define mbstate_t int -_ACEOF +$as_echo "#define mbstate_t int" >>confdefs.h fi wc_funcs=maybe # Check whether --with-wc-funcs was given. -if test "${with_wc_funcs+set}" = set; then +if test "${with_wc_funcs+set}" = set; then : withval=$with_wc_funcs; wc_funcs=$withval fi if test "$wc_funcs" != yes && test "$wc_funcs" != no; then - { $as_echo "$as_me:$LINENO: checking for wchar_t functions" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t functions" >&5 $as_echo_n "checking for wchar_t functions... " >&6; } -if test "${mutt_cv_wc_funcs+set}" = set; then +if test "${mutt_cv_wc_funcs+set}" = set; then : $as_echo_n "(cached) " >&6 else mutt_cv_wc_funcs=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#define _XOPEN_SOURCE 1 +#define _XOPEN_SOURCE 600 #include #include -#ifdef HAVE_WCTYPE_H -#include -#endif #ifdef HAVE_WCHAR_H #include #endif +#ifdef HAVE_WCTYPE_H +#include +#endif int main () { @@ -21961,65 +12067,32 @@ mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0); ; return 0; } -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : mutt_cv_wc_funcs=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_wc_funcs" >&5 $as_echo "$mutt_cv_wc_funcs" >&6; } wc_funcs=$mutt_cv_wc_funcs fi if test $wc_funcs = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_WC_FUNCS 1 -_ACEOF +$as_echo "#define HAVE_WC_FUNCS 1" >>confdefs.h else MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS utf8.o wcwidth.o" fi -{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } -if test "${mutt_cv_langinfo_codeset+set}" = set; then +if test "${mutt_cv_langinfo_codeset+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int @@ -22030,59 +12103,28 @@ char* cs = nl_langinfo(CODESET); return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : mutt_cv_langinfo_codeset=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - mutt_cv_langinfo_codeset=no + mutt_cv_langinfo_codeset=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_langinfo_codeset" >&5 $as_echo "$mutt_cv_langinfo_codeset" >&6; } if test $mutt_cv_langinfo_codeset = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_LANGINFO_CODESET 1 -_ACEOF +$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi -{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and YESEXPR" >&5 $as_echo_n "checking for nl_langinfo and YESEXPR... " >&6; } -if test "${mutt_cv_langinfo_yesexpr+set}" = set; then +if test "${mutt_cv_langinfo_yesexpr+set}" = set; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int @@ -22093,55 +12135,28 @@ char* cs = nl_langinfo(YESEXPR); return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : mutt_cv_langinfo_yesexpr=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - mutt_cv_langinfo_yesexpr=no + mutt_cv_langinfo_yesexpr=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mutt_cv_langinfo_yesexpr" >&5 $as_echo "$mutt_cv_langinfo_yesexpr" >&6; } if test $mutt_cv_langinfo_yesexpr = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_LANGINFO_YESEXPR 1 -_ACEOF +$as_echo "#define HAVE_LANGINFO_YESEXPR 1" >>confdefs.h fi have_openjade="no" # Extract the first word of "ospcat", so it can be a program name with args. set dummy ospcat; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_OSPCAT+set}" = set; then +if test "${ac_cv_path_OSPCAT+set}" = set; then : $as_echo_n "(cached) " >&6 else case $OSPCAT in @@ -22154,14 +12169,14 @@ for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_OSPCAT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS test -z "$ac_cv_path_OSPCAT" && ac_cv_path_OSPCAT="none" @@ -22170,17 +12185,17 @@ esac fi OSPCAT=$ac_cv_path_OSPCAT if test -n "$OSPCAT"; then - { $as_echo "$as_me:$LINENO: result: $OSPCAT" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSPCAT" >&5 $as_echo "$OSPCAT" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$OSPCAT" != "none" then - { $as_echo "$as_me:$LINENO: checking for openjade docbook stylesheets" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openjade docbook stylesheets" >&5 $as_echo_n "checking for openjade docbook stylesheets... " >&6; } dslosfile=`ospcat --public-id="-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN"` DSLROOT=`echo $dslosfile | sed -n -e "s/.*SOIBASE='\([^']*\)\/catalog'.*/\1/p"` @@ -22191,18 +12206,18 @@ $as_echo_n "checking for openjade docbook stylesheets... " >&6; } fi if test -f $DSLROOT/print/docbook.dsl then - { $as_echo "$as_me:$LINENO: result: in $DSLROOT" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: in $DSLROOT" >&5 $as_echo "in $DSLROOT" >&6; } have_openjade="yes" else - { $as_echo "$as_me:$LINENO: result: not found: PDF documentation will not be built." >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found: PDF documentation will not be built." >&5 $as_echo "not found: PDF documentation will not be built." >&6; } fi fi # Check whether --enable-full_doc was given. -if test "${enable_full_doc+set}" = set; then +if test "${enable_full_doc+set}" = set; then : enableval=$enable_full_doc; if test x$enableval = xno ; then full_doc=no fi @@ -22211,9 +12226,7 @@ fi if test x$full_doc != xno ; then -cat >>confdefs.h <<\_ACEOF -#define MAKEDOC_FULL 1 -_ACEOF +$as_echo "#define MAKEDOC_FULL 1" >>confdefs.h fi @@ -22246,13 +12259,13 @@ _ACEOF case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) $as_unset $ac_var ;; + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -22260,8 +12273,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" @@ -22284,11 +12297,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi @@ -22308,8 +12321,8 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs @@ -22325,63 +12338,47 @@ else fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error "conditional \"BUILD_IMAP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"USE_GSS\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error "conditional \"USE_GSS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"USE_SSL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error "conditional \"USE_SSL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then - { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -$as_echo "$as_me: error: conditional \"USE_SASL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } + as_fn_error "conditional \"USE_SASL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_HCACHE_TRUE}" && test -z "${BUILD_HCACHE_FALSE}"; then + as_fn_error "conditional \"BUILD_HCACHE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : ${CONFIG_STATUS=./config.status} ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. @@ -22391,17 +12388,18 @@ cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 debug=false ac_cs_recheck=false ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which @@ -22409,23 +12407,15 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - as_nl=' ' export as_nl @@ -22433,7 +12423,13 @@ export as_nl as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else @@ -22444,7 +12440,7 @@ else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; - case $arg in + case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; @@ -22467,13 +12463,6 @@ if test "${PATH_SEPARATOR+set}" != set; then } fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - # IFS # We need space, tab and new line, in precisely that order. Quoting is @@ -22483,15 +12472,15 @@ fi IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -22503,12 +12492,16 @@ if test "x$as_myself" = x; then fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' @@ -22520,7 +12513,89 @@ export LC_ALL LANGUAGE=C export LANGUAGE -# Required to use basename. +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -22534,8 +12609,12 @@ else as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ @@ -22555,76 +12634,25 @@ $as_echo X/"$0" | } s/.*/./; q'` -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then @@ -22653,8 +12681,56 @@ fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false @@ -22673,10 +12749,10 @@ else if test -d "$1"; then test -d "$1/."; else - case $1 in + case $1 in #( -*)set "./$1";; esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' @@ -22691,13 +12767,19 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 -# Save the log message, to keep $[0] and so on meaningful, and to +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was -generated by GNU Autoconf 2.63. Invocation command line was +generated by GNU Autoconf 2.65. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -22729,13 +12811,15 @@ _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. -Usage: $0 [OPTION]... [FILE]... +Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit + --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files @@ -22754,16 +12838,17 @@ $config_headers Configuration commands: $config_commands -Report bugs to ." +Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status -configured by $0, generated by GNU Autoconf 2.63, - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +configured by $0, generated by GNU Autoconf 2.65, + with options \\"\$ac_cs_config\\" -Copyright (C) 2008 Free Software Foundation, Inc. +Copyright (C) 2009 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -22799,6 +12884,8 @@ do ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) @@ -22806,20 +12893,19 @@ do case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" + as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" + as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - { $as_echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; };; + as_fn_error "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -22827,11 +12913,10 @@ Try \`$0 --help' for more information." >&2 ac_cs_silent=: ;; # This is an error. - -*) { $as_echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; + -*) as_fn_error "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; - *) ac_config_targets="$ac_config_targets $1" + *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac @@ -22897,9 +12982,7 @@ do "muttbug.sh") CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;; "doc/instdoc.sh") CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;; - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done @@ -22926,7 +13009,7 @@ $debug || trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. @@ -22937,11 +13020,7 @@ $debug || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") -} || -{ - $as_echo "$as_me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. @@ -22949,10 +13028,16 @@ $debug || if test -n "$CONFIG_FILES"; then -ac_cr=' ' +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then - ac_cs_awk_cr='\\r' + ac_cs_awk_cr='\r' else ac_cs_awk_cr=$ac_cr fi @@ -22966,24 +13051,18 @@ _ACEOF echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi @@ -23005,7 +13084,7 @@ s/'"$ac_delim"'$// t delim :nl h -s/\(.\{148\}\).*/\1/ +s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p @@ -23019,7 +13098,7 @@ s/.\{148\}// t nl :delim h -s/\(.\{148\}\).*/\1/ +s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p @@ -23072,9 +13151,7 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then else cat fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 -$as_echo "$as_me: error: could not setup config files machinery" >&2;} - { (exit 1); exit 1; }; } + || as_fn_error "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), @@ -23115,9 +13192,7 @@ for ac_last_try in false false :; do if test -z "$ac_t"; then break elif $ac_last_try; then - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi @@ -23202,9 +13277,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 -$as_echo "$as_me: error: could not setup config headers machinery" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" @@ -23217,9 +13290,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 -$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} - { (exit 1); exit 1; }; };; + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -23247,12 +13318,10 @@ $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac - ac_file_inputs="$ac_file_inputs '$ac_f'" + as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't @@ -23263,7 +13332,7 @@ $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. @@ -23276,9 +13345,7 @@ $as_echo "$as_me: creating $ac_file" >&6;} case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } ;; + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac @@ -23306,47 +13373,7 @@ $as_echo X"$ac_file" | q } s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in @@ -23403,7 +13430,6 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= - ac_sed_dataroot=' /datarootdir/ { p @@ -23413,12 +13439,11 @@ ac_sed_dataroot=' /@docdir@/p /@infodir@/p /@localedir@/p -/@mandir@/p -' +/@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -23428,7 +13453,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; + s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF @@ -23457,14 +13482,12 @@ s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + || as_fn_error "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} @@ -23474,9 +13497,7 @@ which seems to be undefined. Please make sure it is defined." >&2;} -) cat "$tmp/out" && rm -f "$tmp/out";; *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; esac \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; :H) # @@ -23487,25 +13508,19 @@ $as_echo "$as_me: error: could not create $ac_file" >&2;} $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + || as_fn_error "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$tmp/config.h" "$ac_file" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + || as_fn_error "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 -$as_echo "$as_me: error: could not create -" >&2;} - { (exit 1); exit 1; }; } + || as_fn_error "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" @@ -23543,7 +13558,7 @@ $as_echo X"$_am_arg" | s/.*/./; q'`/stamp-h$_am_stamp_count ;; - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -23638,47 +13653,7 @@ $as_echo X"$file" | q } s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done @@ -23719,15 +13694,12 @@ $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} done # for ac_tag -{ (exit 0); exit 0; } +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. @@ -23748,10 +13720,10 @@ if test "$no_create" != yes; then exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit $? fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi diff --git a/configure.ac b/configure.ac index 9f180b9..5a8c7f0 100644 --- a/configure.ac +++ b/configure.ac @@ -109,6 +109,7 @@ AH_BOTTOM([/* fseeko portability defines */ #endif ]) MUTT_C99_INTTYPES +AC_TYPE_LONG_LONG_INT ac_aux_path_sendmail=/usr/sbin:/usr/lib AC_PATH_PROG(SENDMAIL, sendmail, /usr/sbin/sendmail, $PATH:$ac_aux_path_sendmail) @@ -541,8 +542,10 @@ AC_ARG_WITH(docdir, AC_HELP_STRING([--with-docdir=PATH], [Specify where to put t [mutt_cv_docdir=$withval], [mutt_cv_docdir='${datarootdir}/doc/mutt']) AC_MSG_RESULT($mutt_cv_docdir) - -docdir=$mutt_cv_docdir +if test -z "$docdir" -o -n "$with_docdir" +then + docdir=$mutt_cv_docdir +fi AC_SUBST(docdir) if test x$mutt_cv_setgid = xyes; then @@ -716,7 +719,7 @@ fi AM_CONDITIONAL(USE_SSL, test x$need_ssl = xyes) -AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl@<:@=PFX@:>@], [Use Cyrus SASL 2 network security library]), +AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl@<:@=PFX@:>@], [Use SASL network security library]), [ if test "$with_sasl" != "no" then @@ -732,15 +735,19 @@ AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl@<:@=PFX@:>@], [Use Cyrus SASL 2 ne fi saved_LIBS="$LIBS" + LIBS= - AC_CHECK_LIB(sasl2, sasl_client_init,, - AC_MSG_ERROR([could not find libsasl2]),) + # OpenSolaris provides a SASL2 interface in libsasl + sasl_libs="sasl2 sasl" + AC_SEARCH_LIBS(sasl_encode64, [$sasl_libs],, + AC_MSG_ERROR([could not find sasl lib]),) + MUTTLIBS="$MUTTLIBS $LIBS" MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o" - MUTTLIBS="$MUTTLIBS -lsasl2" LIBS="$saved_LIBS" + AC_DEFINE(USE_SASL,1, - [ Define if want to use the Cyrus SASL library for POP/IMAP authentication. ]) + [ Define if want to use the SASL library for POP/IMAP authentication. ]) need_sasl=yes fi ]) @@ -835,6 +842,7 @@ AC_ARG_WITH(gdbm, AC_HELP_STRING([--without-gdbm], AC_ARG_WITH(bdb, AC_HELP_STRING([--with-bdb@<:@=DIR@:>@], [Use BerkeleyDB4 if gdbm is not available])) +db_found=no if test x$enable_hcache = xyes then AC_DEFINE(USE_HCACHE, 1, [Enable header caching]) @@ -1027,10 +1035,15 @@ then fi dnl -- end cache -- +AM_CONDITIONAL(BUILD_HCACHE, test x$db_found != xno) + if test "$need_md5" = "yes" then MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5.o" - MUTT_MD5="mutt_md5" +fi + +if test x$db_found != xno ; then + MUTT_MD5="mutt_md5$EXEEXT" fi AC_SUBST(MUTT_MD5) @@ -1209,7 +1222,7 @@ if test "$mutt_cv_wint_t" = no; then fi AC_CHECK_HEADERS(wctype.h) -AC_CHECK_FUNCS(iswalnum iswalpha iswcntrl iswdigit) +AC_CHECK_FUNCS(iswalnum iswalpha iswblank iswcntrl iswdigit) AC_CHECK_FUNCS(iswgraph iswlower iswprint iswpunct iswspace iswupper) AC_CHECK_FUNCS(iswxdigit towupper towlower) @@ -1237,14 +1250,14 @@ if test "$wc_funcs" != yes && test "$wc_funcs" != no; then AC_CACHE_CHECK([for wchar_t functions], mutt_cv_wc_funcs, mutt_cv_wc_funcs=no AC_TRY_LINK([ -#define _XOPEN_SOURCE 1 +#define _XOPEN_SOURCE 600 #include #include -#ifdef HAVE_WCTYPE_H -#include -#endif #ifdef HAVE_WCHAR_H #include +#endif +#ifdef HAVE_WCTYPE_H +#include #endif], [mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0); iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)], diff --git a/contrib/Makefile.in b/contrib/Makefile.in index d985a5c..13ee307 100644 --- a/contrib/Makefile.in +++ b/contrib/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, @@ -128,6 +128,7 @@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PGPAUX_TARGET = @PGPAUX_TARGET@ @@ -220,9 +221,9 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu contrib/Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign contrib/Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu contrib/Makefile + $(AUTOMAKE) --foreign contrib/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ diff --git a/copy.c b/copy.c index 9ddf411..62f2727 100644 --- a/copy.c +++ b/copy.c @@ -868,6 +868,7 @@ static int address_header_decode (char **h) int l, rp = 0; ADDRESS *a = NULL; + ADDRESS *cur = NULL; switch (tolower ((unsigned char) *s)) { @@ -937,6 +938,9 @@ static int address_header_decode (char **h) mutt_addrlist_to_local (a); rfc2047_decode_adrlist (a); + for (cur = a; cur; cur = cur->next) + if (cur->personal) + rfc822_dequote_comment (cur->personal); /* angle brackets for return path are mandated by RfC5322, * so leave Return-Path as-is */ diff --git a/crypt-gpgme.c b/crypt-gpgme.c index 2dc4f0a..ca69edd 100644 --- a/crypt-gpgme.c +++ b/crypt-gpgme.c @@ -403,7 +403,7 @@ static gpgme_data_t body_to_data_object (BODY *a, int convert) int err = 0; gpgme_data_t data; - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); fptmp = safe_fopen (tempfile, "w+"); if (!fptmp) { @@ -525,7 +525,7 @@ static char *data_object_to_tempfile (gpgme_data_t data, FILE **ret_fp) FILE *fp; size_t nread = 0; - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); fp = safe_fopen (tempfile, "w+"); if (!fp) { @@ -918,7 +918,7 @@ static BODY *sign_message (BODY *a, int use_smime) { t->subtype = safe_strdup ("pgp-signature"); t->use_disp = 0; - t->disposition = DISPINLINE; + t->disposition = DISPNONE; t->encoding = ENC7BIT; } t->filename = sigfile; @@ -991,7 +991,7 @@ BODY *pgp_gpgme_encrypt_message (BODY *a, char *keylist, int sign) t->parts->next->encoding = ENC7BIT; t->parts->next->filename = outfile; t->parts->next->use_disp = 1; - t->parts->next->disposition = DISPINLINE; + t->parts->next->disposition = DISPATTACH; t->parts->next->unlink = 1; /* delete after sending the message */ t->parts->next->d_filename = safe_strdup ("msg.asc"); /* non pgp/mime can save */ @@ -1711,7 +1711,7 @@ int pgp_gpgme_decrypt_mime (FILE *fpin, FILE **fpout, BODY *b, BODY **cur) memset (&s, 0, sizeof (s)); s.fpin = fpin; - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if (!(*fpout = safe_fopen (tempfile, "w+"))) { mutt_perror (tempfile); @@ -1756,7 +1756,7 @@ int smime_gpgme_decrypt_mime (FILE *fpin, FILE **fpout, BODY *b, BODY **cur) memset (&s, 0, sizeof (s)); s.fpin = fpin; fseeko (s.fpin, b->offset, 0); - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if (!(tmpfp = safe_fopen (tempfile, "w+"))) { mutt_perror (tempfile); @@ -1774,7 +1774,7 @@ int smime_gpgme_decrypt_mime (FILE *fpin, FILE **fpout, BODY *b, BODY **cur) memset (&s, 0, sizeof (s)); s.fpin = tmpfp; s.fpout = 0; - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if (!(*fpout = safe_fopen (tempfile, "w+"))) { mutt_perror (tempfile); @@ -1810,7 +1810,7 @@ int smime_gpgme_decrypt_mime (FILE *fpin, FILE **fpout, BODY *b, BODY **cur) memset (&s, 0, sizeof (s)); s.fpin = *fpout; fseeko (s.fpin, bb->offset, 0); - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if (!(tmpfp = safe_fopen (tempfile, "w+"))) { mutt_perror (tempfile); @@ -1829,7 +1829,7 @@ int smime_gpgme_decrypt_mime (FILE *fpin, FILE **fpout, BODY *b, BODY **cur) memset (&s, 0, sizeof (s)); s.fpin = tmpfp; s.fpout = 0; - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if (!(*fpout = safe_fopen (tempfile, "w+"))) { mutt_perror (tempfile); @@ -1908,7 +1908,7 @@ static int pgp_gpgme_extract_keys (gpgme_data_t keydata, FILE** fp, int dryrun) goto err_tmpdir; } - mutt_mktemp (tmpfile); + mutt_mktemp (tmpfile, sizeof (tmpfile)); *fp = safe_fopen (tmpfile, "w+"); if (!*fp) { @@ -1985,7 +1985,7 @@ static int pgp_check_traditional_one_body (FILE *fp, BODY *b, int tagged_only) if (tagged_only && !b->tagged) return 0; - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if (mutt_decode_save_attachment (fp, b, tempfile, 0, 0) != 0) { unlink (tempfile); @@ -2371,16 +2371,14 @@ int pgp_gpgme_application_handler (BODY *m, STATE *s) safe_fclose (&pgpout); } } -#if 0 else { - /* why would we want to display this at all? */ + /* A traditional PGP part may mix signed and unsigned content */ /* XXX - we may wish to recode here */ if (s->prefix) state_puts (s->prefix, s); state_puts (buf, s); } -#endif } m->goodsig = (maybe_goodsig && have_any_sigs); @@ -2426,7 +2424,7 @@ int pgp_gpgme_encrypted_handler (BODY *a, STATE *s) /* Move forward to the application/pgp-encrypted body. */ a = a->next; - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if (!(fpout = safe_fopen (tempfile, "w+"))) { if (s->flags & M_DISPLAY) @@ -2492,7 +2490,7 @@ int smime_gpgme_application_handler (BODY *a, STATE *s) dprint (2, (debugfile, "Entering smime_encrypted handler\n")); a->warnsig = 0; - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if (!(fpout = safe_fopen (tempfile, "w+"))) { if (s->flags & M_DISPLAY) @@ -3452,7 +3450,7 @@ verify_key (crypt_key_t *key) gpgme_key_t k = NULL; int maxdepth = 100; - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if (!(fp = safe_fopen (tempfile, "w"))) { mutt_perror _("Can't create temporary file"); @@ -4484,37 +4482,66 @@ static int verify_sender (HEADER *h, gpgme_protocol_t protocol) } if (sender) + { + if (signature_key) { - if (signature_key) - { - gpgme_key_t key = signature_key; - gpgme_user_id_t uid = NULL; - int sender_length = 0; - int uid_length = 0; + gpgme_key_t key = signature_key; + gpgme_user_id_t uid = NULL; + int sender_length = 0; + int uid_length = 0; - sender_length = strlen (sender->mailbox); - for (uid = key->uids; uid && ret; uid = uid->next) - { - uid_length = strlen (uid->email); - if (1 - && (uid->email[0] == '<') - && (uid->email[uid_length - 1] == '>') - && (uid_length == sender_length + 2) - && (! strncmp (uid->email + 1, sender->mailbox, sender_length))) - ret = 0; - } + sender_length = strlen (sender->mailbox); + for (uid = key->uids; uid && ret; uid = uid->next) + { + uid_length = strlen (uid->email); + if (1 + && (uid->email[0] == '<') + && (uid->email[uid_length - 1] == '>') + && (uid_length == sender_length + 2)) + { + const char* at_sign = strchr(uid->email + 1, '@'); + if (at_sign == NULL) + { + if (! strncmp (uid->email + 1, sender->mailbox, sender_length)) + ret = 0; + } + else + { + /* + * Assume address is 'mailbox@domainname'. + * The mailbox part is case-sensitive, + * the domainname is not. (RFC 2821) + */ + const char* tmp_email = uid->email + 1; + const char* tmp_sender = sender->mailbox; + /* length of mailbox part including '@' */ + int mailbox_length = at_sign - tmp_email + 1; + int domainname_length = sender_length - mailbox_length; + int mailbox_match, domainname_match; + + mailbox_match = (! strncmp (tmp_email, tmp_sender, + mailbox_length)); + tmp_email += mailbox_length; + tmp_sender += mailbox_length; + domainname_match = (! strncasecmp (tmp_email, tmp_sender, + domainname_length)); + if (mailbox_match && domainname_match) + ret = 0; + } } - else - mutt_any_key_to_continue (_("Failed to verify sender")); + } } + else + mutt_any_key_to_continue (_("Failed to verify sender")); + } else mutt_any_key_to_continue (_("Failed to figure out sender")); if (signature_key) - { - gpgme_key_release (signature_key); - signature_key = NULL; - } + { + gpgme_key_release (signature_key); + signature_key = NULL; + } return ret; } diff --git a/crypt.c b/crypt.c index 60b594d..0bd2f30 100644 --- a/crypt.c +++ b/crypt.c @@ -593,7 +593,7 @@ void crypt_extract_keys_from_messages (HEADER * h) if (!WithCrypto) return; - mutt_mktemp (tempfname); + mutt_mktemp (tempfname, sizeof (tempfname)); if (!(fpout = safe_fopen (tempfname, "w"))) { mutt_perror (tempfname); @@ -844,7 +844,7 @@ int mutt_signed_handler (BODY *a, STATE *s) if (sigcnt) { - mutt_mktemp (tempfile); + mutt_mktemp (tempfile, sizeof (tempfile)); if (crypt_write_signed (a, s, tempfile) == 0) { for (i = 0; i < sigcnt; i++) diff --git a/curs_lib.c b/curs_lib.c index 2427e60..7f88cc9 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -98,7 +98,10 @@ event_t mutt_getch (void) mutt_allow_interrupt (0); if (SigInt) + { mutt_query_exit (); + return err; + } if(ch == ERR) { @@ -204,9 +207,9 @@ int mutt_yesorno (const char *msg, int def) answer[1] = 0; reyes_ok = (expr = nl_langinfo (YESEXPR)) && expr[0] == '^' && - !regcomp (&reyes, expr, REG_NOSUB|REG_EXTENDED); + !REGCOMP (&reyes, expr, REG_NOSUB); reno_ok = (expr = nl_langinfo (NOEXPR)) && expr[0] == '^' && - !regcomp (&reno, expr, REG_NOSUB|REG_EXTENDED); + !REGCOMP (&reno, expr, REG_NOSUB); #endif CLEARLINE(LINES-1); @@ -220,7 +223,7 @@ int mutt_yesorno (const char *msg, int def) answer_string = safe_malloc (COLS + 1); snprintf (answer_string, COLS + 1, " ([%s]/%s): ", def == M_YES ? yes : no, def == M_YES ? no : yes); answer_string_len = strlen (answer_string); - printw ("%.*s%s", COLS - answer_string_len, msg, answer_string); + mutt_message ("%.*s%s", COLS - answer_string_len, msg, answer_string); FREE (&answer_string); FOREVER @@ -275,6 +278,12 @@ int mutt_yesorno (const char *msg, int def) addstr ((char *) (def == M_YES ? yes : no)); mutt_refresh (); } + else + { + /* when the users cancels with ^G, clear the message stored with + * mutt_message() so it isn't displayed when the screen is refreshed. */ + mutt_clear_error(); + } return (def); } @@ -295,54 +304,49 @@ void mutt_query_exit (void) SigInt = 0; } -void mutt_curses_error (const char *fmt, ...) +static void curses_message (int error, const char *fmt, va_list ap) { - va_list ap; char scratch[LONG_STRING]; - va_start (ap, fmt); vsnprintf (scratch, sizeof (scratch), fmt, ap); - va_end (ap); - + dprint (1, (debugfile, "%s\n", scratch)); mutt_format_string (Errorbuf, sizeof (Errorbuf), - 0, COLS-2, FMT_LEFT, 0, scratch, sizeof (scratch), 0); + 0, COLS, FMT_LEFT, 0, scratch, sizeof (scratch), 0); if (!option (OPTKEEPQUIET)) { - BEEP (); - SETCOLOR (MT_COLOR_ERROR); + if (error) + BEEP (); + SETCOLOR (error ? MT_COLOR_ERROR : MT_COLOR_MESSAGE); mvaddstr (LINES-1, 0, Errorbuf); clrtoeol (); SETCOLOR (MT_COLOR_NORMAL); mutt_refresh (); } - set_option (OPTMSGERR); + if (error) + set_option (OPTMSGERR); + else + unset_option (OPTMSGERR); } -void mutt_curses_message (const char *fmt, ...) +void mutt_curses_error (const char *fmt, ...) { va_list ap; - char scratch[LONG_STRING]; va_start (ap, fmt); - vsnprintf (scratch, sizeof (scratch), fmt, ap); + curses_message (1, fmt, ap); va_end (ap); +} - mutt_format_string (Errorbuf, sizeof (Errorbuf), - 0, COLS-2, FMT_LEFT, 0, scratch, sizeof (scratch), 0); - - if (!option (OPTKEEPQUIET)) - { - SETCOLOR (MT_COLOR_MESSAGE); - mvaddstr (LINES - 1, 0, Errorbuf); - clrtoeol (); - SETCOLOR (MT_COLOR_NORMAL); - mutt_refresh (); - } +void mutt_curses_message (const char *fmt, ...) +{ + va_list ap; - unset_option (OPTMSGERR); + va_start (ap, fmt); + curses_message (0, fmt, ap); + va_end (ap); } void mutt_progress_init (progress_t* progress, const char *msg, @@ -730,6 +734,11 @@ void mutt_format_string (char *dest, size_t destlen, w = 1; /* hack */ else { +#ifdef HAVE_ISWBLANK + if (iswblank (wc)) + wc = ' '; + else +#endif if (!IsWPrint (wc)) wc = '?'; w = wcwidth (wc); @@ -741,7 +750,7 @@ void mutt_format_string (char *dest, size_t destlen, min_width -= w; max_width -= w; strncpy (p, scratch, k2); - p += k2; + p += k2; destlen -= k2; } } @@ -880,7 +889,7 @@ int mutt_wstr_trunc (const char *src, size_t maxlen, size_t maxwid, size_t *widt { wchar_t wc; int w = 0, l = 0, cl; - size_t cw, n; + int cw, n; mbstate_t mbstate; if (!src) @@ -894,7 +903,13 @@ int mutt_wstr_trunc (const char *src, size_t maxlen, size_t maxwid, size_t *widt if (cl == (size_t)(-1) || cl == (size_t)(-2)) cw = cl = 1; else + { cw = wcwidth (wc); + /* hack because M_TREE symbols aren't turned into characters + * until rendered by print_enriched_string (#3364) */ + if (cw < 0 && cl == 1 && src[0] && src[0] < M_TREE_MAX) + cw = 1; + } if (cl + l > maxlen || cw + w > maxwid) break; l += cl; diff --git a/curs_main.c b/curs_main.c index b701d91..dd2ac39 100644 --- a/curs_main.c +++ b/curs_main.c @@ -473,10 +473,6 @@ int mutt_index_menu (void) * modified underneath us.) */ -#ifdef USE_IMAP - imap_allow_reopen (Context); -#endif - index_hint = (Context->vcount && menu->current >= 0 && menu->current < Context->vcount) ? CURHDR->index : 0; if ((check = mx_check_mailbox (Context, &index_hint, 0)) < 0) @@ -686,10 +682,6 @@ int mutt_index_menu (void) mutt_curs_set (1); /* fallback from the pager */ } -#ifdef USE_IMAP - imap_disallow_reopen (Context); -#endif - switch (op) { @@ -922,6 +914,11 @@ int mutt_index_menu (void) resort_index (menu); set_option (OPTSEARCHINVALID); } + if (menu->menu == MENU_PAGER) + { + op = OP_DISPLAY_MESSAGE; + continue; + } menu->redraw |= REDRAW_STATUS; } break; @@ -991,6 +988,23 @@ int mutt_index_menu (void) if (Context && Context->magic == M_IMAP) imap_check_mailbox (Context, &index_hint, 1); break; + + case OP_MAIN_IMAP_LOGOUT_ALL: + if (Context && Context->magic == M_IMAP) + { + if (mx_close_mailbox (Context, &index_hint) != 0) + { + set_option (OPTSEARCHINVALID); + menu->redraw = REDRAW_FULL; + break; + } + FREE (&Context); + } + imap_logout_all(); + mutt_message _("Logged out of IMAP servers."); + set_option (OPTSEARCHINVALID); + menu->redraw = REDRAW_FULL; + break; #endif case OP_MAIN_SYNC_FOLDER: @@ -1111,6 +1125,10 @@ int mutt_index_menu (void) } mutt_str_replace (&CurrentFolder, buf); + /* keepalive failure in mutt_enter_fname may kill connection. #3028 */ + if (Context && !Context->path) + FREE (&Context); + if (Context) { int check; @@ -1220,7 +1238,7 @@ int mutt_index_menu (void) if ((Sort & SORT_MASK) != SORT_THREADS) mutt_error _("Threading is not enabled."); - else + else if (CURHDR->env->in_reply_to || CURHDR->env->references) { { HEADER *oldcur = CURHDR; @@ -1241,8 +1259,10 @@ int mutt_index_menu (void) else menu->redraw |= REDRAW_INDEX; } + else + mutt_error _("Thread cannot be broken, message is not part of a thread"); - break; + break; case OP_MAIN_LINK_THREADS: @@ -2033,6 +2053,11 @@ int mutt_index_menu (void) if ((menu->current = (op == OP_MAIN_READ_THREAD ? mutt_next_thread (CURHDR) : mutt_next_subthread (CURHDR))) == -1) menu->current = menu->oldcurrent; + else if (menu->menu == MENU_PAGER) + { + op = OP_DISPLAY_MESSAGE; + continue; + } } menu->redraw = REDRAW_INDEX | REDRAW_STATUS; } diff --git a/doc/Makefile.am b/doc/Makefile.am index 1af0ee4..f97a668 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -10,6 +10,7 @@ MAKEDOC_CPP = $(CPP) $(AM_CPPFLAGS) $(DEFS) $(CPPFLAGS) -D_MAKEDOC -C noinst_PROGRAMS = makedoc EXTRA_DIST = dotlock.man \ + smime_keys.man \ muttbug.man \ mutt.man \ PGP-Notes.txt \ @@ -45,13 +46,14 @@ topsrcdir_DOCFILES = COPYRIGHT GPL INSTALL ChangeLog \ all: makedoc-all -makedoc-all: mutt.1 muttrc.man manual.html stamp-doc-rc stamp-doc-chunked manual.txt +makedoc-all: mutt.1 smime_keys.1 muttrc.man manual.html stamp-doc-rc stamp-doc-chunked manual.txt install-data-local: makedoc-all instdoc $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man1 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man5 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir) ./instdoc mutt.1 $(DESTDIR)$(mandir)/man1/mutt.1 + ./instdoc smime_keys.1 $(DESTDIR)$(mandir)/man1/smime_keys.1 ./instdoc $(srcdir)/muttbug.man $(DESTDIR)$(mandir)/man1/flea.1 ./instdoc $(srcdir)/muttbug.man $(DESTDIR)$(mandir)/man1/muttbug.1 test x@DOTLOCK_TARGET@ = x || ./instdoc $(srcdir)/dotlock.man \ @@ -80,7 +82,7 @@ install-data-local: makedoc-all instdoc fi uninstall-local: - for f in mutt.1 mutt_dotlock.1 flea.1 muttbug.1 ; do \ + for f in mutt.1 mutt_dotlock.1 flea.1 muttbug.1 smime_keys.1; do \ rm -f $(DESTDIR)$(mandir)/man1/$$f ; \ done for f in muttrc.5 mbox.5 mmdf.5 ; do \ @@ -100,7 +102,7 @@ uninstall-local: check: manual.txt: manual.html - -LC_ALL=C lynx -dump -nolist -with_backspaces manual.html > $@ || \ + -LC_ALL=C lynx -dump -nolist -with_backspaces -display_charset=us-ascii manual.html > $@ || \ LC_ALL=C w3m -dump manual.html > $@ || \ LC_ALL=C elinks -dump -no-numbering -no-references manual.html | sed -e 's,\\001, ,g' > $@ @@ -134,8 +136,9 @@ validate: stamp-doc-xml xmllint --noout --noblanks --postvalid manual.xml spellcheck: - -aspell -l en --mode sgml -c manual.xml.head && \ - -aspell -l en --mode nroff -c muttrc.man.head + -aspell -d american --mode=sgml --encoding=utf-8 -p $(srcdir)/mutt.pwl check manual.xml.head + -aspell -d american --mode=nroff --encoding=utf-8 -p $(srcdir)/mutt.pwl check muttrc.man.head + -aspell -d american --mode=ccpp --encoding=utf-8 -p $(srcdir)/mutt.pwl check $(top_srcdir)/init.h sortcheck: manual.xml sed -n -e '1,/^/d' -e '1,/^/s//\1/p' < manual.xml > vars.tmp.1 @@ -144,7 +147,7 @@ sortcheck: manual.xml rm -rf vars.tmp.1 vars.tmp.2 clean-local: - rm -f *~ *.html *.orig *.rej stamp-doc-* *.ps mutt.1 muttrc.man + rm -f *~ *.html *.orig *.rej stamp-doc-* *.ps mutt.1 smime_keys.1 muttrc.man rm -f *.aux *.log *.tex *.out DISTCLEANFILES=manual.txt manual.html manual.xml manual.pdf html \ @@ -168,6 +171,9 @@ EDIT = sed -e 's,@sysconfdir\@,$(sysconfdir),g' \ mutt.1: $(srcdir)/mutt.man $(EDIT) $(srcdir)/mutt.man > $@ +smime_keys.1: $(srcdir)/smime_keys.man + $(EDIT) $(srcdir)/smime_keys.man > $@ + stamp-doc-xml: makedoc$(EXEEXT) $(top_srcdir)/init.h \ manual.xml.head $(top_srcdir)/functions.h $(top_srcdir)/OPS* manual.xml.tail \ $(srcdir)/gen-map-doc $(top_srcdir)/VERSION $(top_srcdir)/ChangeLog diff --git a/doc/Makefile.in b/doc/Makefile.in index 9a82f63..9058ee5 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, @@ -143,6 +143,7 @@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PGPAUX_TARGET = @PGPAUX_TARGET@ @@ -214,6 +215,7 @@ subdir = doc AM_CPPFLAGS = -I. -I.. -I$(includedir) -I$(top_srcdir) MAKEDOC_CPP = $(CPP) $(AM_CPPFLAGS) $(DEFS) $(CPPFLAGS) -D_MAKEDOC -C EXTRA_DIST = dotlock.man \ + smime_keys.man \ muttbug.man \ mutt.man \ PGP-Notes.txt \ @@ -265,9 +267,9 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/Makefile + $(AUTOMAKE) --foreign doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -517,13 +519,14 @@ uninstall-am: uninstall-local all: makedoc-all -makedoc-all: mutt.1 muttrc.man manual.html stamp-doc-rc stamp-doc-chunked manual.txt +makedoc-all: mutt.1 smime_keys.1 muttrc.man manual.html stamp-doc-rc stamp-doc-chunked manual.txt install-data-local: makedoc-all instdoc $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man1 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man5 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir) ./instdoc mutt.1 $(DESTDIR)$(mandir)/man1/mutt.1 + ./instdoc smime_keys.1 $(DESTDIR)$(mandir)/man1/smime_keys.1 ./instdoc $(srcdir)/muttbug.man $(DESTDIR)$(mandir)/man1/flea.1 ./instdoc $(srcdir)/muttbug.man $(DESTDIR)$(mandir)/man1/muttbug.1 test x@DOTLOCK_TARGET@ = x || ./instdoc $(srcdir)/dotlock.man \ @@ -552,7 +555,7 @@ install-data-local: makedoc-all instdoc fi uninstall-local: - for f in mutt.1 mutt_dotlock.1 flea.1 muttbug.1 ; do \ + for f in mutt.1 mutt_dotlock.1 flea.1 muttbug.1 smime_keys.1; do \ rm -f $(DESTDIR)$(mandir)/man1/$$f ; \ done for f in muttrc.5 mbox.5 mmdf.5 ; do \ @@ -572,7 +575,7 @@ uninstall-local: check: manual.txt: manual.html - -LC_ALL=C lynx -dump -nolist -with_backspaces manual.html > $@ || \ + -LC_ALL=C lynx -dump -nolist -with_backspaces -display_charset=us-ascii manual.html > $@ || \ LC_ALL=C w3m -dump manual.html > $@ || \ LC_ALL=C elinks -dump -no-numbering -no-references manual.html | sed -e 's,\\001, ,g' > $@ @@ -606,8 +609,9 @@ validate: stamp-doc-xml xmllint --noout --noblanks --postvalid manual.xml spellcheck: - -aspell -l en --mode sgml -c manual.xml.head && \ - -aspell -l en --mode nroff -c muttrc.man.head + -aspell -d american --mode=sgml --encoding=utf-8 -p $(srcdir)/mutt.pwl check manual.xml.head + -aspell -d american --mode=nroff --encoding=utf-8 -p $(srcdir)/mutt.pwl check muttrc.man.head + -aspell -d american --mode=ccpp --encoding=utf-8 -p $(srcdir)/mutt.pwl check $(top_srcdir)/init.h sortcheck: manual.xml sed -n -e '1,/^/d' -e '1,/^/s//\1/p' < manual.xml > vars.tmp.1 @@ -616,7 +620,7 @@ sortcheck: manual.xml rm -rf vars.tmp.1 vars.tmp.2 clean-local: - rm -f *~ *.html *.orig *.rej stamp-doc-* *.ps mutt.1 muttrc.man + rm -f *~ *.html *.orig *.rej stamp-doc-* *.ps mutt.1 smime_keys.1 muttrc.man rm -f *.aux *.log *.tex *.out instdoc: instdoc.sh @@ -633,6 +637,9 @@ muttrc.man: makedoc$(EXEEXT) $(top_srcdir)/init.h muttrc.man.head muttrc.man.tai mutt.1: $(srcdir)/mutt.man $(EDIT) $(srcdir)/mutt.man > $@ +smime_keys.1: $(srcdir)/smime_keys.man + $(EDIT) $(srcdir)/smime_keys.man > $@ + stamp-doc-xml: makedoc$(EXEEXT) $(top_srcdir)/init.h \ manual.xml.head $(top_srcdir)/functions.h $(top_srcdir)/OPS* manual.xml.tail \ $(srcdir)/gen-map-doc $(top_srcdir)/VERSION $(top_srcdir)/ChangeLog diff --git a/doc/Muttrc b/doc/Muttrc index 40ac02c..4ccb643 100644 --- a/doc/Muttrc +++ b/doc/Muttrc @@ -87,7 +87,7 @@ attachments +I text/plain ## line is unnecessary if you already have "attach-allow */.*", of ## course. These are off by default! The MIME elements contained ## within a message/* or multipart/* are still examined, even if the -## containers themseves don't qualify. +## containers themselves don't qualify. ## #attachments +A message/.* multipart/.* #attachments +I message/.* multipart/.* @@ -479,7 +479,7 @@ attachments -I message/external-body # Upon startup Mutt tries to derive this value from environment variables # such as $LC_CTYPE or $LANG. # -# Note: It should only be set in case Mutt isn't abled to determine the +# Note: It should only be set in case Mutt isn't able to determine the # character set used correctly. # # @@ -778,7 +778,7 @@ attachments -I message/external-body # # If ``yes'', always attempt to verify PGP or S/MIME signatures. # If ``ask-*'', ask whether or not to verify the signature. -# If \Fi``no'', never attempt to verify cryptographic signatures. +# If ``no'', never attempt to verify cryptographic signatures. # (Crypto only) # # @@ -901,7 +901,7 @@ attachments -I message/external-body # Note: when using $sendmail for delivery, you should not enable # this unless you are either using Sendmail 8.8.x or greater or a MTA # providing a sendmail(1)-compatible interface supporting the -N option -# for DSN. For SMTP delivery, DSN support is autodetected so that it +# for DSN. For SMTP delivery, DSN support is auto-detected so that it # depends on the server whether DSN will be used or not. # # @@ -922,7 +922,7 @@ attachments -I message/external-body # Note: when using $sendmail for delivery, you should not enable # this unless you are either using Sendmail 8.8.x or greater or a MTA # providing a sendmail(1)-compatible interface supporting the -R option -# for DSN. For SMTP delivery, DSN support is autodetected so that it +# for DSN. For SMTP delivery, DSN support is auto-detected so that it # depends on the server whether DSN will be used or not. # # @@ -1008,7 +1008,7 @@ attachments -I message/external-body # Default: "~" # # -# Escape character to use for functions in the builtin editor. +# Escape character to use for functions in the built-in editor. # # # set fast_reply=no @@ -1077,6 +1077,7 @@ attachments -I message/external-body # its own set of printf(3)-like sequences: # %C current file number # %d date/time folder was last modified +# %D date/time folder was last modified using $date_format. # %f filename (``/'' is appended to directory names, # ``@'' to symbolic links and ``*'' to executable # files) @@ -1283,7 +1284,7 @@ attachments -I message/external-body # When mutt is compiled with qdbm or tokyocabinet as header cache backend, # this option determines whether the database will be compressed. # Compression results in database files roughly being one fifth -# of the usual diskspace, but the uncompression can result in a +# of the usual diskspace, but the decompression can result in a # slower opening of cached folder(s) which in general is still # much faster than opening non header cached folders. # @@ -1480,7 +1481,7 @@ attachments -I message/external-body # Default: no # # -# Affects the behaviour of the function when replying to +# Affects the behavior of the function when replying to # messages from mailing lists (as defined by the ``subscribe'' or # ``lists'' commands). When set, if the ``Reply-To:'' field is # set to the same value as the ``To:'' field, Mutt assumes that the @@ -1501,7 +1502,7 @@ attachments -I message/external-body # This is a colon-delimited list of authentication methods mutt may # attempt to use to log in to an IMAP server, in the order mutt should # try them. Authentication methods are either ``login'' or the right -# side of an IMAP ``AUTH=xxx'' capability string, eg ``digest-md5'', ``gssapi'' +# side of an IMAP ``AUTH=xxx'' capability string, e.g. ``digest-md5'', ``gssapi'' # or ``cram-md5''. This option is case-insensitive. If it's # unset (the default) mutt will try all available methods, # in order from most-secure to least-secure. @@ -1793,7 +1794,7 @@ attachments -I message/external-body # %O original save folder where mutt would formerly have # stashed the message: list name or recipient name # if not sent to a list -# %P progress indicator for the builtin pager (how much of the file has been displayed) +# %P progress indicator for the built-in pager (how much of the file has been displayed) # %s subject of the message # %S status of the message (``N''/``D''/``d''/``!''/``r''/*) # %t ``To:'' field (recipients) @@ -1879,6 +1880,22 @@ attachments -I message/external-body # new mail. Also see the $timeout variable. # # +# set mail_check_recent=yes +# +# Name: mail_check_recent +# Type: boolean +# Default: yes +# +# +# When set, Mutt will only notify you about new mail that has been received +# since the last time you opened the mailbox. When unset, Mutt will notify you +# if any new mail exists in the mailbox, regardless of whether you have visited it +# recently. +# +# When $mark_old is set, Mutt does not consider the mailbox to contain new +# mail if only old messages exist. +# +# # set mailcap_path="" # # Name: mailcap_path @@ -1991,7 +2008,7 @@ attachments -I message/external-body # # # The default mailbox type used when creating new folders. May be any of -# ``mbox'', ``MMDF'', ``MH'' and ``Maildir''. This is overriden by the +# ``mbox'', ``MMDF'', ``MH'' and ``Maildir''. This is overridden by the # -m command-line option. # # @@ -2108,7 +2125,7 @@ attachments -I message/external-body # Default: no # # -# When unset, mutt will mimic mh's behaviour and rename deleted messages +# When unset, mutt will mimic mh's behavior and rename deleted messages # to , in mh folders instead of really deleting # them. This leaves the message on disk but makes programs reading the folder # ignore it. If the variable is set, the message files will simply be @@ -2262,7 +2279,7 @@ attachments -I message/external-body # # # This variable specifies which pager you would like to use to view -# messages. The value ``builtin'' means to use the builtin pager, otherwise this +# messages. The value ``builtin'' means to use the built-in pager, otherwise this # variable should specify the pathname of the external pager you would # like to use. # @@ -2862,7 +2879,7 @@ attachments -I message/external-body # This is a colon-delimited list of authentication methods mutt may # attempt to use to log in to an POP server, in the order mutt should # try them. Authentication methods are either ``user'', ``apop'' or any -# SASL mechanism, eg ``digest-md5'', ``gssapi'' or ``cram-md5''. +# SASL mechanism, e.g. ``digest-md5'', ``gssapi'' or ``cram-md5''. # This option is case-insensitive. If this option is unset # (the default) mutt will try all available methods, in order from # most-secure to least-secure. @@ -2902,7 +2919,7 @@ attachments -I message/external-body # # # The name of your POP server for the function. You -# can also specify an alternative port, username and password, ie: +# can also specify an alternative port, username and password, i.e.: # [pop[s]://][username[:password]@]popserver[:port] # # where ``[...]'' denotes an optional part. @@ -3093,10 +3110,13 @@ attachments -I message/external-body # Default: "" # # -# This specifies the command that mutt will use to make external address -# queries. The string should contain a ``%s'', which will be substituted -# with the query string the user types. See ``query'' for more -# information. +# This specifies the command Mutt will use to make external address +# queries. The string may contain a ``%s'', which will be substituted +# with the query string the user types. Mutt will add quotes around the +# string substituted for ``%s'' automatically according to shell quoting +# rules, so you should avoid adding your own. If no ``%s'' is found in +# the string, Mutt will append the user's query to the end of the string. +# See ``query'' for more information. # # # set query_format="%4c %t %-25.25a %-25.25n %?e?(%e)?" @@ -3334,7 +3354,7 @@ attachments -I message/external-body # Default: yes # # -# This variable fine-tunes the behaviour of the $reverse_name feature. +# This variable fine-tunes the behavior of the $reverse_name feature. # When it is set, mutt will use the address from incoming messages as-is, # possibly including eventual real names. When it is unset, mutt will # override any such real names with the setting of the $realname variable. @@ -3555,7 +3575,7 @@ attachments -I message/external-body # this variable unless your signature contains just your name. The # reason for this is because many software packages use ``-- \n'' to # detect your signature. For example, Mutt has the ability to highlight -# the signature in a different color in the builtin pager. +# the signature in a different color in the built-in pager. # # # set sig_on_top=no @@ -3830,7 +3850,7 @@ attachments -I message/external-body # Default: no # # -# The default behaviour of mutt is to use PGP on all auto-sign/encryption +# The default behavior of mutt is to use PGP on all auto-sign/encryption # operations. To override and to use OpenSSL instead this must be set. # However, this has no effect while replying, since mutt will automatically # select the same application that was used to sign/encrypt the original @@ -3950,7 +3970,7 @@ attachments -I message/external-body # # This is a colon-delimited list of authentication methods mutt may # attempt to use to log in to an SMTP server, in the order mutt should -# try them. Authentication methods are any SASL mechanism, eg +# try them. Authentication methods are any SASL mechanism, e.g. # ``digest-md5'', ``gssapi'' or ``cram-md5''. # This option is case-insensitive. If it is ``unset'' # (the default) mutt will try all available methods, in order from @@ -3984,8 +4004,8 @@ attachments -I message/external-body # # # Defines the SMTP smarthost where sent messages should relayed for -# delivery. This should take the form of an SMTP URL, eg: -# smtp[s]://[user[:pass]@]host[:port]/ +# delivery. This should take the form of an SMTP URL, e.g.: +# smtp[s]://[user[:pass]@]host[:port] # # where ``[...]'' denotes an optional part. # Setting this variable overrides the value of the $sendmail @@ -4377,7 +4397,7 @@ attachments -I message/external-body # personal mailbox where you might have several unrelated messages with # the subjects like ``hi'' which will get grouped together. See also # $sort_re for a less drastic way of controlling this -# behaviour. +# behavior. # # # set suspend=yes @@ -4408,11 +4428,11 @@ attachments -I message/external-body # Note that $indent_string is ignored when this option is set. # # -# set thorough_search=no +# set thorough_search=yes # # Name: thorough_search # Type: boolean -# Default: no +# Default: yes # # # Affects the ~b and ~h search operations described in @@ -4472,7 +4492,7 @@ attachments -I message/external-body # Default: 600 # # -# When Mutt is waiting for user input either idleing in menus or +# When Mutt is waiting for user input either idling in menus or # in an interactive prompt, Mutt would block until input is # present. Depending on the context, this would prevent certain # operations from working, like checking for new mail or keeping @@ -4650,7 +4670,7 @@ attachments -I message/external-body # # # Specifies the visual editor to invoke when the ``~v'' command is -# given in the builtin editor. +# given in the built-in editor. # # # set wait_key=yes @@ -4693,7 +4713,24 @@ attachments -I message/external-body # # When set to a positive value, mutt will wrap text at $wrap characters. # When set to a negative value, mutt will wrap text so that there are $wrap -# characters of empty space on the right side of the terminal. +# characters of empty space on the right side of the terminal. Setting it +# to zero makes mutt wrap at the terminal width. +# +# +# set wrap_headers=78 +# +# Name: wrap_headers +# Type: number +# Default: 78 +# +# +# This option specifies the number of characters to use for wrapping +# an outgoing message's headers. Allowed values are between 78 and 998 +# inclusive. +# +# Note: This option usually shouldn't be changed. RFC5233 +# recommends a line length of 78 (the default), so please only change +# this setting when you know what you're doing. # # # set wrap_search=yes diff --git a/doc/Muttrc.head b/doc/Muttrc.head index 368e7aa..1f7012e 100644 --- a/doc/Muttrc.head +++ b/doc/Muttrc.head @@ -87,7 +87,7 @@ attachments +I text/plain ## line is unnecessary if you already have "attach-allow */.*", of ## course. These are off by default! The MIME elements contained ## within a message/* or multipart/* are still examined, even if the -## containers themseves don't qualify. +## containers themselves don't qualify. ## #attachments +A message/.* multipart/.* #attachments +I message/.* multipart/.* diff --git a/doc/advancedusage.html b/doc/advancedusage.html index 336aa19..071df4c 100644 --- a/doc/advancedusage.html +++ b/doc/advancedusage.html @@ -1,6 +1,6 @@ -Chapter 4. Advanced Usage

Chapter 4. Advanced Usage

1. Regular Expressions

-All string patterns in Mutt including those in more complex -patterns must be specified -using regular expressions (regexp) in the “POSIX extended” syntax (which +

Chapter 4. Advanced Usage

1. Character Set Handling

+A “character set” is basically a mapping between bytes and +glyphs and implies a certain character encoding scheme. For example, for +the ISO 8859 family of character sets, an encoding of 8bit per character +is used. For the Unicode character set, different character encodings +may be used, UTF-8 being the most popular. In UTF-8, a character is +represented using a variable number of bytes ranging from 1 to 4. +

+Since Mutt is a command-line tool run from a shell, and delegates +certain tasks to external tools (such as an editor for composing/editing +messages), all of these tools need to agree on a character set and +encoding. There exists no way to reliably deduce the character set a +plain text file has. Interoperability is gained by the use of +well-defined environment variables. The full set can be printed by +issuing locale on the command line. +

+Upon startup, Mutt determines the character set on its own using +routines that inspect locale-specific environment variables. Therefore, +it is generally not necessary to set the $charset +variable in Mutt. It may even be counter-productive as Mutt uses system +and library functions that derive the character set themselves and on +which Mutt has no influence. It's safest to let Mutt work out the locale +setup itself. +

+If you happen to work with several character sets on a regular basis, +it's highly advisable to use Unicode and an UTF-8 locale. Unicode can +represent nearly all characters in a message at the same time. When not +using a Unicode locale, it may happen that you receive messages with +characters not representable in your locale. When displaying such a +message, or replying to or forwarding it, information may get lost +possibly rendering the message unusable (not only for you but also for +the recipient, this breakage is not reversible as lost information +cannot be guessed). +

+A Unicode locale makes all conversions superfluous which eliminates the +risk of conversion errors. It also eliminates potentially wrong +expectations about the character set between Mutt and external programs. +

+The terminal emulator used also must be properly configured for the +current locale. Terminal emulators usually do not +derive the locale from environment variables, they need to be configured +separately. If the terminal is incorrectly configured, Mutt may display +random and unexpected characters (question marks, octal codes, or just +random glyphs), format strings may not work as expected, you may not be +abled to enter non-ascii characters, and possible more. Data is always +represented using bytes and so a correct setup is very important as to +the machine, all character sets “look” the same. +

+Warning: A mismatch between what system and library functions think the +locale is and what Mutt was told what the locale is may make it behave +badly with non-ascii input: it will fail at seemingly random places. +This warning is to be taken seriously since not only local mail handling +may suffer: sent messages may carry wrong character set information the +receiver has too deal with. The need to set +$charset directly in most cases points at terminal +and environment variable setup problems, not Mutt problems. +

+A list of officially assigned and known character sets can be found at +IANA, +a list of locally supported locales can be obtained by running +locale -a. +

2. Regular Expressions

+All string patterns in Mutt including those in more complex patterns must be specified using regular +expressions (regexp) in the “POSIX extended” syntax (which is more or less the syntax used by egrep and GNU awk). For your convenience, we have included below a brief description of this syntax.

The search is case sensitive if the pattern contains at least one upper case letter, and case insensitive otherwise. -

Note

-“\” -must be quoted if used for a regular expression in an initialization -command: “\\”. +

Note

+“\” must be quoted if used for a regular expression in an +initialization command: “\\”.

A regular expression is a pattern that describes a set of strings. Regular expressions are constructed analogously to arithmetic expressions, by using various operators to combine smaller expressions. -

Note

-The regular expression can be enclosed/delimited by either " -or ' which is useful if the regular expression includes a white-space -character. See Syntax of Initialization Files -for more information on " and ' delimiter processing. To match a -literal " or ' you must preface it with \ (backslash). +

Note

+The regular expression can be enclosed/delimited by either " or ' which +is useful if the regular expression includes a white-space character. +See Syntax of Initialization Files for more information on " and ' +delimiter processing. To match a literal " or ' you must preface it +with \ (backslash).

-The fundamental building blocks are the regular expressions that match -a single character. Most characters, including all letters and digits, +The fundamental building blocks are the regular expressions that match a +single character. Most characters, including all letters and digits, are regular expressions that match themselves. Any metacharacter with special meaning may be quoted by preceding it with a backslash.

-The period “.” matches any single character. The caret “^” and -the dollar sign “$” are metacharacters that respectively match -the empty string at the beginning and end of a line. -

-A list of characters enclosed by “[” and “]” matches any -single character in that list; if the first character of the list -is a caret “^” then it matches any character not in the -list. For example, the regular expression [0123456789] -matches any single digit. A range of ASCII characters may be specified -by giving the first and last characters, separated by a hyphen -“-”. Most metacharacters lose their special meaning inside -lists. To include a literal “]” place it first in the list. -Similarly, to include a literal “^” place it anywhere but first. -Finally, to include a literal hyphen “-” place it last. +The period “.” matches any single character. The caret +“^” and the dollar sign “$” are metacharacters +that respectively match the empty string at the beginning and end of a +line. +

+A list of characters enclosed by “[” and “]” +matches any single character in that list; if the first character of the +list is a caret “^” then it matches any character +not in the list. For example, the regular +expression [0123456789] matches any single digit. +A range of ASCII characters may be specified by giving the first and +last characters, separated by a hyphen “-”. Most +metacharacters lose their special meaning inside lists. To include a +literal “]” place it first in the list. Similarly, to +include a literal “^” place it anywhere but first. +Finally, to include a literal hyphen “-” place it last.

Certain named classes of characters are predefined. Character classes -consist of “[:”, a keyword denoting the class, and “:]”. -The following classes are defined by the POSIX standard in +consist of “[:”, a keyword denoting the class, and +“:]”. The following classes are defined by the POSIX +standard in Table 4.1, “POSIX regular expression character classes” -

Table 4.1. POSIX regular expression character classes

Character classDescription
[:alnum:]Alphanumeric characters
[:alpha:]Alphabetic characters
[:blank:]Space or tab characters
[:cntrl:]Control characters
[:digit:]Numeric characters
[:graph:]Characters that are both printable and visible. (A space is printable, but not visible, while an “a” is both)
[:lower:]Lower-case alphabetic characters
[:print:]Printable characters (characters that are not control characters)
[:punct:]Punctuation characters (characters that are not letter, digits, control characters, or space characters)
[:space:]Space characters (such as space, tab and formfeed, to name a few)
[:upper:]Upper-case alphabetic characters
[:xdigit:]Characters that are hexadecimal digits

+

Table 4.1. POSIX regular expression character classes

Character classDescription
[:alnum:]Alphanumeric characters
[:alpha:]Alphabetic characters
[:blank:]Space or tab characters
[:cntrl:]Control characters
[:digit:]Numeric characters
[:graph:]Characters that are both printable and visible. (A space is printable, but not visible, while an “a” is both)
[:lower:]Lower-case alphabetic characters
[:print:]Printable characters (characters that are not control characters)
[:punct:]Punctuation characters (characters that are not letter, digits, control characters, or space characters)
[:space:]Space characters (such as space, tab and formfeed, to name a few)
[:upper:]Upper-case alphabetic characters
[:xdigit:]Characters that are hexadecimal digits

A character class is only valid in a regular expression inside the brackets of a character list. -

Note

-Note that the brackets in these -class names are part of the symbolic names, and must be included -in addition to the brackets delimiting the bracket list. For -example, [[:digit:]] is equivalent to -[0-9]. +

Note

+Note that the brackets in these class names are part of the symbolic +names, and must be included in addition to the brackets delimiting the +bracket list. For example, [[:digit:]] is +equivalent to [0-9].

Two additional special sequences can appear in character lists. These apply to non-ASCII character sets, which can have single symbols (called @@ -90,17 +153,21 @@ as well as several characters that are equivalent for collating or sorting purposes:

Collating Symbols

A collating symbol is a multi-character collating element enclosed in -“[.” and “.]”. For example, if “ch” is a collating -element, then [[.ch.]] is a regexp that matches -this collating element, while [ch] is a regexp that -matches either “c” or “h”. +“[.” and “.]”. For example, if +“ch” is a collating element, then +[[.ch.]] is a regexp that matches this collating +element, while [ch] is a regexp that matches either +“c” or “h”.

Equivalence Classes

-An equivalence class is a locale-specific name for a list of -characters that are equivalent. The name is enclosed in “[=” -and “=]”. For example, the name “e” might be used to -represent all of “è” “é” and “e”. In this case, -[[=e=]] is a regexp that matches any of -“è”, “é” and “e”. +An equivalence class is a locale-specific name for a list of characters +that are equivalent. The name is enclosed in “[=” and +“=]”. For example, the name “e” might be used +to represent all of “e” with grave +(“è”), “e” with acute +(“é”) and “e”. In this case, +[[=e=]] is a regexp that matches any of: +“e” with grave (“è”), “e” +with acute (“é”) and “e”.

A regular expression matching a single character may be followed by one of several repetition operators described in Table 4.2, “Regular expression repetition operators”. @@ -109,258 +176,272 @@ Two regular expressions may be concatenated; the resulting regular expression matches any string formed by concatenating two substrings that respectively match the concatenated subexpressions.

-Two regular expressions may be joined by the infix operator “|”; -the resulting regular expression matches any string matching either -subexpression. +Two regular expressions may be joined by the infix operator +“|”; the resulting regular expression matches any string +matching either subexpression.

Repetition takes precedence over concatenation, which in turn takes precedence over alternation. A whole subexpression may be enclosed in parentheses to override these precedence rules. -

Note

+

Note

If you compile Mutt with the included regular expression engine, the -following operators may also be used in regular expressions as described in Table 4.3, “GNU regular expression extensions”. +following operators may also be used in regular expressions as described +in Table 4.3, “GNU regular expression extensions”.

Table 4.3. GNU regular expression extensions

ExpressionDescription
\\yMatches the empty string at either the beginning or the end of a word
\\BMatches the empty string within a word
\\<Matches the empty string at the beginning of a word
\\>Matches the empty string at the end of a word
\\wMatches any word-constituent character (letter, digit, or underscore)
\\WMatches any character that is not word-constituent
\\`Matches the empty string at the beginning of a buffer (string)
\\'Matches the empty string at the end of a buffer

Please note however that these operators are not defined by POSIX, so they may or may not be available in stock libraries on various systems. -

2. Patterns: Searching, Limiting and Tagging

2.1. Pattern Modifier

+

3. Patterns: Searching, Limiting and Tagging

3.1. Pattern Modifier

Many of Mutt's commands allow you to specify a pattern to match (limit, tag-pattern, delete-pattern, etc.). Table 4.4, “Pattern modifiers” shows several ways to select messages. -

Table 4.4. Pattern modifiers

Pattern modifierDescription
~Aall messages
~b EXPRmessages which contain EXPR in the message body
=b STRINGmessages which contain STRING in the message body. If IMAP is enabled, searches for STRING on the server, rather than downloading each message and searching it locally.
~B EXPRmessages which contain EXPR in the whole message
~c EXPRmessages carbon-copied to EXPR
%c GROUPmessages carbon-copied to any member of GROUP
~C EXPRmessages either to: or cc: EXPR
%C GROUPmessages either to: or cc: to any member of GROUP
~d [MIN]-[MAX]messages with “date-sent” in a Date range
~Ddeleted messages
~e EXPRmessages which contains EXPR in the “Sender” field
%e GROUPmessages which contain a member of GROUP in the “Sender” field
~Eexpired messages
~Fflagged messages
~f EXPRmessages originating from EXPR
%f GROUPmessages originating from any member of GROUP
~gcryptographically signed messages
~Gcryptographically encrypted messages
~h EXPRmessages which contain EXPR in the message header
~H EXPRmessages with a spam attribute matching EXPR
~i EXPRmessages which match EXPR in the “Message-ID” field
~kmessages which contain PGP key material
~L EXPRmessages either originated or received by EXPR
%L GROUPmessage either originated or received by any member of GROUP
~lmessages addressed to a known mailing list
~m [MIN]-[MAX]messages in the range MIN to MAX *)
~n [MIN]-[MAX]messages with a score in the range MIN to MAX *)
~Nnew messages
~Oold messages
~pmessages addressed to you (consults alternates)
~Pmessages from you (consults alternates)
~Qmessages which have been replied to
~r [MIN]-[MAX]messages with “date-received” in a Date range
~Rread messages
~s EXPRmessages having EXPR in the “Subject” field.
~Ssuperseded messages
~t EXPRmessages addressed to EXPR
~Ttagged messages
~umessages addressed to a subscribed mailing list
~Uunread messages
~vmessages part of a collapsed thread.
~Vcryptographically verified messages
~x EXPRmessages which contain EXPR in the “References” or “In-Reply-To” field
~X [MIN]-[MAX]messages with MIN to MAX attachments *)
~y EXPRmessages which contain EXPR in the “X-Label” field
~z [MIN]-[MAX]messages with a size in the range MIN to MAX *) **)
~=duplicated messages (see $duplicate_threads)
~$unreferenced messages (requires threaded view)
~(PATTERN)messages in threads +

Table 4.4. Pattern modifiers

Pattern modifierDescription
~Aall messages
~b EXPRmessages which contain EXPR in the message body
=b STRINGmessages which contain STRING in the message body. If IMAP is enabled, searches for STRING on the server, rather than downloading each message and searching it locally.
~B EXPRmessages which contain EXPR in the whole message
~c EXPRmessages carbon-copied to EXPR
%c GROUPmessages carbon-copied to any member of GROUP
~C EXPRmessages either to: or cc: EXPR
%C GROUPmessages either to: or cc: to any member of GROUP
~d [MIN]-[MAX]messages with “date-sent” in a Date range
~Ddeleted messages
~e EXPRmessages which contains EXPR in the “Sender” field
%e GROUPmessages which contain a member of GROUP in the “Sender” field
~Eexpired messages
~Fflagged messages
~f EXPRmessages originating from EXPR
%f GROUPmessages originating from any member of GROUP
~gcryptographically signed messages
~Gcryptographically encrypted messages
~h EXPRmessages which contain EXPR in the message header
~H EXPRmessages with a spam attribute matching EXPR
~i EXPRmessages which match EXPR in the “Message-ID” field
~kmessages which contain PGP key material
~L EXPRmessages either originated or received by EXPR
%L GROUPmessage either originated or received by any member of GROUP
~lmessages addressed to a known mailing list
~m [MIN]-[MAX]messages in the range MIN to MAX *)
~n [MIN]-[MAX]messages with a score in the range MIN to MAX *)
~Nnew messages
~Oold messages
~pmessages addressed to you (consults alternates)
~Pmessages from you (consults alternates)
~Qmessages which have been replied to
~r [MIN]-[MAX]messages with “date-received” in a Date range
~Rread messages
~s EXPRmessages having EXPR in the “Subject” field.
~Ssuperseded messages
~t EXPRmessages addressed to EXPR
~Ttagged messages
~umessages addressed to a subscribed mailing list
~Uunread messages
~vmessages part of a collapsed thread.
~Vcryptographically verified messages
~x EXPRmessages which contain EXPR in the “References” or “In-Reply-To” field
~X [MIN]-[MAX]messages with MIN to MAX attachments *)
~y EXPRmessages which contain EXPR in the “X-Label” field
~z [MIN]-[MAX]messages with a size in the range MIN to MAX *) **)
~=duplicated messages (see $duplicate_threads)
~$unreferenced messages (requires threaded view)
~(PATTERN)messages in threads containing messages matching PATTERN, e.g. all threads containing messages from you: ~(~P)

-Where EXPR is a -regular expression. -

-*) The forms “<[MAX]”, “>[MIN]”, -“[MIN]-” and “-[MAX]” -are allowed, too. -

-**) The suffixes “K” and “M” are allowed to specify kilobyte and megabyte respectively. -

-Special attention has to be -payed when using regular expressions inside of patterns. Specifically, -Mutt's parser for these patterns will strip one level of backslash (“\”), -which is normally used for quoting. If it is your intention to use a -backslash in the regular expression, you will need to use two backslashes -instead (“\\”). You can force Mutt to treat EXPR as a simple string -instead of a regular expression by using = instead of ˜ in the -pattern name. For example, =b *.* will find all messages that contain -the literal string “*.*”. Simple string matches are less powerful than -regular expressions but can be considerably faster. This is especially -true for IMAP folders, because string matches can be performed on the -server instead of by fetching every message. IMAP treats =h specially: -it must be of the form “header: substring” and will not partially -match header names. The substring part may be omitted if you simply -wish to find messages containing a particular header without regard to -its value. -

-Patterns matching lists of addresses (notably c, C, p, P and t) -match if there is at least one match in the whole list. If you want to -make sure that all elements of that list match, you need to prefix your -pattern with “^”. -This example matches all mails which only has recipients from Germany. +Where EXPR is a regular expression, and GROUP is an +address group. +

+*) The forms “<[MAX]”, +“>[MIN]”, +“[MIN]-” and +“-[MAX]” are allowed, too. +

+**) The suffixes “K” and “M” are allowed to +specify kilobyte and megabyte respectively. +

+Special attention has to be payed when using regular expressions inside +of patterns. Specifically, Mutt's parser for these patterns will strip +one level of backslash (“\”), which is normally used for +quoting. If it is your intention to use a backslash in the regular +expression, you will need to use two backslashes instead +(“\\”). You can force Mutt to treat +EXPR as a simple string instead of a regular +expression by using = instead of ~ in the pattern name. For example, +=b *.* will find all messages that contain the +literal string “*.*”. Simple string matches are less +powerful than regular expressions but can be considerably faster. This +is especially true for IMAP folders, because string matches can be +performed on the server instead of by fetching every message. IMAP +treats =h specially: it must be of the form +“header: substring” and will not partially match header +names. The substring part may be omitted if you simply wish to find +messages containing a particular header without regard to its value. +

+Patterns matching lists of addresses (notably c, C, p, P and t) match if +there is at least one match in the whole list. If you want to make sure +that all elements of that list match, you need to prefix your pattern +with “^”. This example matches all mails which only has +recipients from Germany.

Example 4.1. Matching all addresses in address lists

 ^~C \.de$
-

2.2. Simple Searches

-Mutt supports two versions of so called “simple searches”. These are -issued if the query entered for searching, limiting and similar -operations does not seem to contain a valid pattern modifier (i.e. it does not contain -one of these characters: “˜”, “=” or “%”). If the query is -supposed to contain one of these special characters, they must be escaped -by prepending a backslash (“\”). +


3.2. Simple Searches

+Mutt supports two versions of so called “simple +searches”. These are issued if the query entered for searching, +limiting and similar operations does not seem to contain a valid pattern +modifier (i.e. it does not contain one of these characters: +“~”, “=” or “%”). If the query is +supposed to contain one of these special characters, they must be +escaped by prepending a backslash (“\”).

The first type is by checking whether the query string equals a keyword case-insensitively from Table 4.5, “Simple search keywords”: If that is the case, Mutt will use the shown pattern modifier instead. If a keyword would conflict with your search keyword, you need to turn it into a regular expression to avoid matching the keyword table. For -example, if you want to find all messages matching “flag” -(using $simple_search) +example, if you want to find all messages matching “flag” +(using $simple_search) but don't want to match flagged messages, simply search for -“[f]lag”. +“[f]lag”.

Table 4.5. Simple search keywords

KeywordPattern modifier
all~A
.~A
^~A
del~D
flag~F
new~N
old~O
repl~Q
read~R
tag~T
unread~U

-The second type of simple search is to build a complex search -pattern using $simple_search -as a template. Mutt will insert your query properly quoted and search -for the composed complex query. -

2.3. Nesting and Boolean Operators

+The second type of simple search is to build a complex search pattern +using $simple_search as a +template. Mutt will insert your query properly quoted and search for the +composed complex query. +

3.3. Nesting and Boolean Operators

Logical AND is performed by specifying more than one criterion. For example:

 ~t mutt ~f elkins
 

-would select messages which contain the word “mutt” in the list of -recipients and that have the word “elkins” in the “From” header -field. +would select messages which contain the word “mutt” in the +list of recipients and that have the word +“elkins” in the “From” header field.

-Mutt also recognizes the following operators to create more complex search -patterns: -

  • +Mutt also recognizes the following operators to create more complex +search patterns: +

    • ! — logical NOT operator -

    • +

    • | — logical OR operator -

    • +

    • () — logical grouping operator

    -Here is an example illustrating a complex search pattern. This pattern will -select all messages which do not contain “mutt” in the “To” or “Cc” -field and which are from “elkins”. +Here is an example illustrating a complex search pattern. This pattern +will select all messages which do not contain “mutt” in the +“To” or “Cc” field and which are from +“elkins”.

    Example 4.2. Using boolean operators in patterns

     !(~t mutt|~c mutt) ~f elkins
     

    -Here is an example using white space in the regular expression (note -the ' and " delimiters). For this to match, the mail's subject must -match the “^Junk +From +Me$” and it must be from either “Jim +Somebody” -or “Ed +SomeoneElse”: +Here is an example using white space in the regular expression (note the +“'” and “"” delimiters). For this to match, +the mail's subject must match the “^Junk +From +Me$” and it +must be from either “Jim +Somebody” or “Ed ++SomeoneElse”:

    - '~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")'
    -

    Note

    -If a regular expression contains parenthesis, or a vertical bar -("|"), you must enclose the expression in double or single quotes since -those characters are also used to separate different parts of Mutt's -pattern language. For example: ~f "me@(mutt\.org|cs\.hmc\.edu)" -Without the quotes, the parenthesis wouldn't end. -This would be separated to two OR'd patterns: ˜f me@(mutt\.org -and cs\.hmc\.edu). They are never what you want. -

2.4. Searching by Date

-Mutt supports two types of dates, absolute and relative. -

2.4.1. Absolute Dates

-Dates must be in DD/MM/YY format (month and year are -optional, defaulting to the current month and year). An example of a valid -range of dates is: +'~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")' +

Note

+If a regular expression contains parenthesis, or a vertical bar ("|"), +you must enclose the expression in double or single +quotes since those characters are also used to separate different parts +of Mutt's pattern language. For example: ~f +"me@(mutt\.org|cs\.hmc\.edu)" Without the quotes, the +parenthesis wouldn't end. This would be separated to two OR'd patterns: +~f me@(mutt\.org and +cs\.hmc\.edu). They are never what you want. +

3.4. Searching by Date

+Mutt supports two types of dates, absolute and +relative. +

3.4.1. Absolute Dates

+Dates must be in DD/MM/YY format (month and year +are optional, defaulting to the current month and year). An example of +a valid range of dates is:

 Limit to messages matching: ~d 20/1/95-31/10
 

-If you omit the minimum (first) date, and just specify “-DD/MM/YY”, all -messages before the given date will be selected. If you omit the maximum -(second) date, and specify “DD/MM/YY-”, all messages after the given -date will be selected. If you specify a single date with no dash (“-”), -only messages sent on the given date will be selected. -

-You can add error margins to absolute dates. -An error margin is a sign (+ or -), followed by a digit, followed by -one of the units in Table 4.6, “Date units”. As a special case, you can replace the -sign by a “*” character, which is equivalent to giving identical plus and minus error margins. +If you omit the minimum (first) date, and just specify +“-DD/MM/YY”, all messages before the +given date will be selected. If you omit the maximum (second) date, and +specify “DD/MM/YY-”, all messages +after the given date will be selected. If you +specify a single date with no dash (“-”), only messages +sent on the given date will be selected. +

+You can add error margins to absolute dates. An error margin is a sign +(+ or -), followed by a digit, followed by one of the units in Table 4.6, “Date units”. As a special case, you can replace the sign +by a “*” character, which is equivalent to giving identical +plus and minus error margins.

Table 4.6. Date units

UnitDescription
yYears
mMonths
wWeeks
dDays

-Example: To select any messages two weeks around January 15, 2001, -you'd use the following pattern: +Example: To select any messages two weeks around January 15, 2001, you'd +use the following pattern:

 Limit to messages matching: ~d 15/1/2001*2w
-

2.4.2. Relative Dates

-This type of date is relative to the current date, and may -be specified as: -

  • ->offset for messages older than offset units -

  • -<offset for messages newer than offset units -

  • -=offset for messages exactly offset units old +

3.4.2. Relative Dates

+This type of date is relative to the current date, and may be specified +as: +

  • +>offset for messages older than +offset units +

  • +<offset for messages newer than +offset units +

  • +=offset for messages exactly +offset units old

-offset is specified as a positive number with one of the units from Table 4.6, “Date units”. +offset is specified as a positive number with one +of the units from Table 4.6, “Date units”.

Example: to select messages less than 1 month old, you would use

 Limit to messages matching: ~d <1m
-

Note

+

Note

All dates used when searching are relative to the -local time zone, so unless you change the setting of your $index_format to include a -%[...] format, these are not the dates shown -in the main index. -

3. Using Tags

-Sometimes it is desirable to perform an operation on a group of -messages all at once rather than one at a time. An example might be -to save messages to a mailing list to a separate folder, or to -delete all messages with a given subject. To tag all messages -matching a pattern, use the <tag-pattern> function, which is bound to -“shift-T” by default. Or you can select individual messages by -hand using the <tag-message> function, which is bound to “t” by -default. See patterns for Mutt's pattern -matching syntax. +local time zone, so unless you change the setting +of your $index_format to include a +%[...] format, these are not the +dates shown in the main index. +

4. Using Tags

+Sometimes it is desirable to perform an operation on a group of messages +all at once rather than one at a time. An example might be to save +messages to a mailing list to a separate folder, or to delete all +messages with a given subject. To tag all messages matching a pattern, +use the <tag-pattern> function, which is bound +to “shift-T” by default. Or you can select individual +messages by hand using the <tag-message> +function, which is bound to “t” by default. See patterns for Mutt's pattern matching syntax.

Once you have tagged the desired messages, you can use the -“tag-prefix” operator, which is the “;” (semicolon) key by default. -When the “tag-prefix” operator is used, the next operation will -be applied to all tagged messages if that operation can be used in that -manner. If the $auto_tag -variable is set, the next operation applies to the tagged messages -automatically, without requiring the “tag-prefix”. -

-In macros or push commands, -you can use the <tag-prefix-cond> operator. If there are no tagged -messages, Mutt will “eat” the rest of the macro to abort it's execution. -Mutt will stop “eating” the macro when it encounters the <end-cond> -operator; after this operator the rest of the macro will be executed as -normal. -

4. Using Hooks

-A hook is a concept found in many other programs which allows you to -execute arbitrary commands before performing some operation. For example, -you may wish to tailor your configuration based upon which mailbox you are -reading, or to whom you are sending mail. In the Mutt world, a hook -consists of a regular expression or -pattern along with a -configuration option/command. See: +“tag-prefix” operator, which is the “;” +(semicolon) key by default. When the “tag-prefix” operator +is used, the next operation will be applied to all +tagged messages if that operation can be used in that manner. If the +$auto_tag variable is set, the next +operation applies to the tagged messages automatically, without +requiring the “tag-prefix”. +

+In macros or push commands, you can use the +<tag-prefix-cond> operator. If there are no +tagged messages, Mutt will “eat” the rest of the macro to +abort it's execution. Mutt will stop “eating” the macro +when it encounters the <end-cond> operator; +after this operator the rest of the macro will be executed as normal. +

5. Using Hooks

+A hook is a concept found in many other programs +which allows you to execute arbitrary commands before performing some +operation. For example, you may wish to tailor your configuration based +upon which mailbox you are reading, or to whom you are sending mail. In +the Mutt world, a hook consists of a regular expression or pattern along with a configuration +option/command. See: -

  • +

    for specific details on each type of hook available. -

    Note

    -If a hook changes configuration settings, these changes remain -effective until the end of the current Mutt session. As this is generally -not desired, a “default” hook needs to be added before all -other hooks of that type to restore configuration defaults. -

    Example 4.3. Specifying a “default” hook

    +

    Note

    +If a hook changes configuration settings, these changes remain effective +until the end of the current Mutt session. As this is generally not +desired, a “default” hook needs to be added before all +other hooks of that type to restore configuration defaults. +

    Example 4.3. Specifying a “default” hook

     send-hook . 'unmy_hdr From:'
     send-hook ~C'^b@b\.b$' my_hdr from: c@c.c
     

    -In Example 4.3, “Specifying a default hook”, by default the value of -$from -and $realname -is not overridden. When sending messages either To: or Cc: -to <b@b.b>, the From: header is changed to -<c@c.c>. -

    4.1. Message Matching in Hooks

    -Hooks that act upon messages (message-hook, reply-hook, -send-hook, send2-hook, save-hook, fcc-hook) are evaluated in a -slightly different manner. For the other -types of hooks, a regular expression is -sufficient. But in dealing with messages a finer grain of control is -needed for matching since for different purposes you want to match -different criteria. -

    -Mutt allows the use of the search pattern -language for matching messages in hook commands. This works in -exactly the same way as it would when limiting or -searching the mailbox, except that you are restricted to those -operators which match information Mutt extracts from the header of -the message (i.e., from, to, cc, date, subject, etc.). +In Example 4.3, “Specifying a “default” hook”, by default the value of $from and $realname is not overridden. When sending +messages either To: or Cc: to <b@b.b>, the +From: header is changed to <c@c.c>. +

    5.1. Message Matching in Hooks

    +Hooks that act upon messages (message-hook, +reply-hook, send-hook, +send2-hook, save-hook, +fcc-hook) are evaluated in a slightly different +manner. For the other types of hooks, a regular +expression is sufficient. But in dealing with messages a finer +grain of control is needed for matching since for different purposes you +want to match different criteria. +

    +Mutt allows the use of the search +pattern language for matching messages in hook commands. This +works in exactly the same way as it would when +limiting or searching the +mailbox, except that you are restricted to those operators which match +information Mutt extracts from the header of the message (i.e., from, +to, cc, date, subject, etc.).

    For example, if you wanted to set your return address based upon sending mail to a specific address, you could do something like: @@ -370,21 +451,20 @@ send-hook '~t ^me@cs\.hmc\.edu$' 'my_hdr From: Mutt User <user@host>' which would execute the given command when sending mail to me@cs.hmc.edu.

    -However, it is not required that you write the pattern to match using the -full searching language. You can still specify a simple regular -expression like the other hooks, in which case Mutt will translate your -pattern into the full language, using the translation specified by the -$default_hook variable. The -pattern is translated at the time the hook is declared, so the value of -$default_hook that is in effect -at that time will be used. -

    5. External Address Queries

    +However, it is not required that you write the pattern to match using +the full searching language. You can still specify a simple +regular expression like the other hooks, in which +case Mutt will translate your pattern into the full language, using the +translation specified by the $default_hook variable. The pattern is +translated at the time the hook is declared, so the value of $default_hook that is in effect at that +time will be used. +

    6. External Address Queries

    Mutt supports connecting to external directory databases such as LDAP, ph/qi, bbdb, or NIS through a wrapper script which connects to Mutt -using a simple interface. Using the $query_command variable, you specify the wrapper -command to use. For example: +using a simple interface. Using the $query_command variable, you specify the +wrapper command to use. For example:

    -set query_command = "mutt_ldap_query.pl '%s'"
    +set query_command = "mutt_ldap_query.pl %s"
     

    The wrapper script should accept the query on the command-line. It should return a one line message, then each matching response on a @@ -400,273 +480,294 @@ blong@fiction.net Brandon Long mutt and more roessler@does-not-exist.org Thomas Roessler mutt pgp

    There are two mechanisms for accessing the query function of Mutt. One -is to do a query from the index menu using the <query> function (default: Q). -This will prompt for a query, then bring up the query menu which will -list the matching responses. From the query menu, you can select -addresses to create aliases, or to mail. You can tag multiple addresses -to mail, start a new query, or have a new query appended to the current +is to do a query from the index menu using the +<query> function (default: Q). This will +prompt for a query, then bring up the query menu which will list the +matching responses. From the query menu, you can select addresses to +create aliases, or to mail. You can tag multiple addresses to mail, +start a new query, or have a new query appended to the current responses.

    The other mechanism for accessing the query function is for address completion, similar to the alias completion. In any prompt for address -entry, you can use the <complete-query> function (default: ^T) to run a -query based on the current address you have typed. Like aliases, Mutt -will look for what you have typed back to the last space or comma. If -there is a single response for that query, Mutt will expand the address -in place. If there are multiple responses, Mutt will activate the query -menu. At the query menu, you can select one or more addresses to be -added to the prompt. -

    6. Mailbox Formats

    -Mutt supports reading and writing of four different local mailbox formats: -mbox, MMDF, MH and Maildir. The mailbox type is autodetected, so there -is no need to use a flag for different mailbox types. When creating new -mailboxes, Mutt uses the default specified with the -$mbox_type variable. A -short description of the formats follows. -

    -mbox. This is a widely used mailbox format for UNIX. All -messages are stored in a single file. Each message has a line of the form: +entry, you can use the <complete-query> +function (default: ^T) to run a query based on the current address you +have typed. Like aliases, Mutt will look for what you have typed back +to the last space or comma. If there is a single response for that +query, Mutt will expand the address in place. If there are multiple +responses, Mutt will activate the query menu. At the query menu, you +can select one or more addresses to be added to the prompt. +

    7. Mailbox Formats

    +Mutt supports reading and writing of four different local mailbox +formats: mbox, MMDF, MH and Maildir. The mailbox type is auto detected, +so there is no need to use a flag for different mailbox types. When +creating new mailboxes, Mutt uses the default specified with the $mbox_type variable. A short description of +the formats follows. +

    +mbox. This is a widely used mailbox format for +UNIX. All messages are stored in a single file. Each message has a +line of the form:

     From me@cs.hmc.edu Fri, 11 Apr 1997 11:44:56 PST
     

    to denote the start of a new message (this is often referred to as the -“From_” line). The mbox format requires mailbox -locking, is prone to mailbox corruption with concurrently writing -clients or misinterpreted From_ lines. Depending on the -environment, new mail detection can be unreliable. Mbox folders are fast -to open and easy to archive. -

    -MMDF. This is a variant of -the mbox format. Each message is surrounded by -lines containing “^A^A^A^A” (four -control-A's). The same problems as for mbox apply (also with finding the -right message separator as four control-A's may appear in message -bodies). -

    -MH. A radical departure from mbox and MMDF, a mailbox +“From_” line). The mbox format requires mailbox locking, is +prone to mailbox corruption with concurrently writing clients or +misinterpreted From_ lines. Depending on the environment, new mail +detection can be unreliable. Mbox folders are fast to open and easy to +archive. +

    +MMDF. This is a variant of the +mbox format. Each message is surrounded by lines +containing “^A^A^A^A” (four times control-A's). The same +problems as for mbox apply (also with finding the right message +separator as four control-A's may appear in message bodies). +

    +MH. A radical departure from +mbox and MMDF, a mailbox consists of a directory and each message is stored in a separate file. The filename indicates the message number (however, this is may not correspond to the message number Mutt displays). Deleted messages are -renamed with a comma (“,”) prepended to the filename. Mutt -detects this type of mailbox by looking for either .mh_sequences -or .xmhcache files (needed to distinguish normal directories from MH -mailboxes). MH is more robust with concurrent clients writing the mailbox, -but still may suffer from lost flags; message corruption is less likely -to occur than with mbox/mmdf. It's usually slower to open compared to -mbox/mmdf since many small files have to be read (Mutt provides -Section 7.1, “Header Caching” to greatly speed this process up). -Depending on the environment, MH is not very disk-space efficient. -

    -Maildir. The newest of the mailbox formats, used by the Qmail MTA (a -replacement for sendmail). Similar to MH, except that it adds three -subdirectories of the mailbox: tmp, new and cur. Filenames -for the messages are chosen in such a way they are unique, even when two -programs are writing the mailbox over NFS, which means that no file locking -is needed and corruption is very unlikely. Maildir maybe -slower to open without caching in Mutt, it too is not very -disk-space efficient depending on the environment. Since no additional -files are used for metadata (which is embedded in the message filenames) -and Maildir is locking-free, it's easy to sync across different machines -using file-level synchronization tools. -

    7. Mailbox Shortcuts

    -There are a number of built in shortcuts which refer to specific mailboxes. -These shortcuts can be used anywhere you are prompted for a file or mailbox -path or in path-related configuration variables. Note that these only -work at the beginning of a string. -

    • -! — refers to your $spoolfile (incoming) mailbox -

    • -> — refers to your $mbox file -

    • -< — refers to your $record file -

    • -^ — refers to the current mailbox -

    • -- or !! — refers to the file you've last visited -

    • -˜ — refers to your home directory -

    • -= or + — refers to your $folder directory -

    • -@alias — refers to the default save folder as determined by the address of the alias -

    +renamed with a comma (“,”) prepended to the filename. Mutt +detects this type of mailbox by looking for either +.mh_sequences or .xmhcache files +(needed to distinguish normal directories from MH mailboxes). MH is more +robust with concurrent clients writing the mailbox, but still may suffer +from lost flags; message corruption is less likely to occur than with +mbox/mmdf. It's usually slower to open compared to mbox/mmdf since many +small files have to be read (Mutt provides Section 7.1, “Header Caching” to greatly speed this process up). Depending +on the environment, MH is not very disk-space efficient. +

    +Maildir. The newest of the mailbox formats, used +by the Qmail MTA (a replacement for sendmail). Similar to +MH, except that it adds three subdirectories of the +mailbox: tmp, new and +cur. Filenames for the messages are chosen in such +a way they are unique, even when two programs are writing the mailbox +over NFS, which means that no file locking is needed and corruption is +very unlikely. Maildir maybe slower to open without caching in Mutt, it +too is not very disk-space efficient depending on the environment. Since +no additional files are used for metadata (which is embedded in the +message filenames) and Maildir is locking-free, it's easy to sync across +different machines using file-level synchronization tools. +

    8. Mailbox Shortcuts

    +There are a number of built in shortcuts which refer to specific +mailboxes. These shortcuts can be used anywhere you are prompted for a +file or mailbox path or in path-related configuration variables. Note +that these only work at the beginning of a string. +

    Table 4.7. Mailbox shortcuts

    ShortcutRefers to...
    !your $spoolfile (incoming) mailbox
    >your $mbox file
    <your $record file
    ^the current mailbox
    - or !!the file you've last visited
    ~your home directory
    = or +your $folder directory
    @aliasto the default save folder as determined by the address of the alias

    For example, to store a copy of outgoing messages in the folder they -were composed in, -a folder-hook can -be used to set $record: +were composed in, a folder-hook can be used +to set $record:

    -folder-hook . 'set record=^'

    8. Handling Mailing Lists

    +folder-hook . 'set record=^'

    9. Handling Mailing Lists

    Mutt has a few configuration options that make dealing with large -amounts of mail easier. The first thing you must do is to let Mutt -know what addresses you consider to be mailing lists (technically -this does not have to be a mailing list, but that is what it is most -often used for), and what lists you are subscribed to. This is -accomplished through the use of the lists and subscribe commands in your .muttrc. +amounts of mail easier. The first thing you must do is to let Mutt know +what addresses you consider to be mailing lists (technically this does +not have to be a mailing list, but that is what it is most often used +for), and what lists you are subscribed to. This is accomplished +through the use of the lists +and subscribe commands in your +.muttrc.

    Now that Mutt knows what your mailing lists are, it can do several things, the first of which is the ability to show the name of a list -through which you received a message (i.e., of a subscribed list) in -the index menu display. This is useful to distinguish between -personal and list mail in the same mailbox. In the $index_format variable, the expando “%L” -will print the string “To <list>” when “list” appears in the -“To” field, and “Cc <list>” when it appears in the “Cc” +through which you received a message (i.e., of a subscribed list) in the +index menu display. This is useful to distinguish +between personal and list mail in the same mailbox. In the $index_format variable, the expando +“%L” will print the string “To <list>” +when “list” appears in the “To” field, and +“Cc <list>” when it appears in the “Cc” field (otherwise it prints the name of the author).

    -Often times the “To” and “Cc” fields in mailing list messages -tend to get quite large. Most people do not bother to remove the -author of the message they reply to from the list, resulting in -two or more copies being sent to that person. The <list-reply> -function, which by default is bound to “L” in the index menu -and pager, helps reduce the clutter by only replying to the -known mailing list addresses instead of all recipients (except as +Often times the “To” and “Cc” fields in +mailing list messages tend to get quite large. Most people do not bother +to remove the author of the message they reply to from the list, +resulting in two or more copies being sent to that person. The +<list-reply> function, which by default is +bound to “L” in the index menu and +pager, helps reduce the clutter by only replying to +the known mailing list addresses instead of all recipients (except as specified by Mail-Followup-To, see below).

    -Mutt also supports the Mail-Followup-To header. When you send -a message to a list of recipients which includes one or several -subscribed mailing lists, and if the $followup_to option is set, Mutt will generate -a Mail-Followup-To header which contains all the recipients to whom -you send this message, but not your address. This indicates that -group-replies or list-replies (also known as “followups”) to this -message should only be sent to the original recipients of the +Mutt also supports the Mail-Followup-To header. When +you send a message to a list of recipients which includes one or several +subscribed mailing lists, and if the $followup_to option is set, Mutt will +generate a Mail-Followup-To header which contains all the recipients to +whom you send this message, but not your address. This indicates that +group-replies or list-replies (also known as “followups”) +to this message should only be sent to the original recipients of the message, and not separately to you - you'll receive your copy through one of the mailing lists you are subscribed to.

    -Conversely, when group-replying or list-replying to a message which -has a Mail-Followup-To header, Mutt will respect this header if -the $honor_followup_to configuration -variable is set. Using list-reply will in this case also make sure -that the reply goes to the mailing list, even if it's not specified -in the list of recipients in the Mail-Followup-To. -

    Note

    +Conversely, when group-replying or list-replying to a message which has +a Mail-Followup-To header, Mutt will respect this +header if the $honor_followup_to configuration +variable is set. Using list-reply +will in this case also make sure that the reply goes to the mailing +list, even if it's not specified in the list of recipients in the +Mail-Followup-To. +

    Note

    When header editing is enabled, you can create a -Mail-Followup-To header manually. Mutt will only auto-generate -this header if it doesn't exist when you send the message. +Mail-Followup-To header manually. Mutt will only +auto-generate this header if it doesn't exist when you send the message.

    The other method some mailing list admins use is to generate a -“Reply-To” field which points back to the mailing list address rather -than the author of the message. This can create problems when trying -to reply directly to the author in private, since most mail clients -will automatically reply to the address given in the “Reply-To” -field. Mutt uses the $reply_to -variable to help decide which address to use. If set to ask-yes or -ask-no, you will be -prompted as to whether or not you would like to use the address given in -the “Reply-To” field, or reply directly to the address given in the -“From” field. When set to yes, the “Reply-To” field will be used when -present. -

    -The “X-Label:” header field can be used to further identify mailing -lists or list subject matter (or just to annotate messages -individually). The $index_format variable's “%y” and -“%Y” expandos can be used to expand “X-Label:” fields in the -index, and Mutt's pattern-matcher can match regular expressions to -“X-Label:” fields with the “˜y” selector. “X-Label:” is not a -standard message header field, but it can easily be inserted by procmail -and other mail filtering agents. -

    -Lastly, Mutt has the ability to sort the mailbox into -threads. A thread is a group of messages which all relate to the same -subject. This is usually organized into a tree-like structure where a -message and all of its replies are represented graphically. If you've ever -used a threaded news client, this is the same concept. It makes dealing -with large volume mailing lists easier because you can easily delete -uninteresting threads and quickly find topics of value. -

    9. Handling multiple folders

    -Mutt supports setups with multiple folders, allowing all of them to -be monitored for new mail (see Section 14, “Monitoring Incoming Mail” for details). -

    -When in the index menu and being idle (also see -$timeout), Mutt periodically checks -for new mail in all folders which have been configured via the +“Reply-To” field which points back to the mailing list +address rather than the author of the message. This can create problems +when trying to reply directly to the author in private, since most mail +clients will automatically reply to the address given in the +“Reply-To” field. Mutt uses the $reply_to variable to help decide which +address to use. If set to ask-yes or +ask-no, you will be prompted as to whether or not +you would like to use the address given in the “Reply-To” +field, or reply directly to the address given in the “From” +field. When set to yes, the +“Reply-To” field will be used when present. +

    +The “X-Label:” header field can be used to further identify +mailing lists or list subject matter (or just to annotate messages +individually). The $index_format +variable's “%y” and “%Y” expandos can be used +to expand “X-Label:” fields in the index, and Mutt's +pattern-matcher can match regular expressions to “X-Label:” +fields with the “~y” selector. “X-Label:” is +not a standard message header field, but it can easily be inserted by +procmail and other mail filtering agents. +

    +Lastly, Mutt has the ability to sort the +mailbox into threads. A thread is a +group of messages which all relate to the same subject. This is usually +organized into a tree-like structure where a message and all of its +replies are represented graphically. If you've ever used a threaded +news client, this is the same concept. It makes dealing with large +volume mailing lists easier because you can easily delete uninteresting +threads and quickly find topics of value. +

    10. New Mail Detection

    +Mutt supports setups with multiple folders, allowing all of them to be +monitored for new mail (see Section 14, “Monitoring Incoming Mail” for details). +

    10.1. How New Mail Detection Works

    +For Mbox and Mmdf folders, new mail is detected by comparing access +and/or modification times of files: Mutt assumes a folder has new mail +if it wasn't accessed after it was last modified. Utilities like +biff or frm or any other program +which accesses the mailbox might cause Mutt to never detect new mail for +that mailbox if they do not properly reset the access time. Other +possible causes of Mutt not detecting new mail in these folders are +backup tools (updating access times) or filesystems mounted without +access time update support (for Linux systems, see the +relatime option). +

    Note

    +Contrary to older Mutt releases, it now maintains the new mail status of +a folder by properly resetting the access time if the folder contains at +least one message which is neither read, nor deleted, nor marked as old. +

    +In cases where new mail detection for Mbox or Mmdf folders appears to be +unreliable, the $check_mbox_size +option can be used to make Mutt track and consult file sizes for new +mail detection instead which won't work for size-neutral changes. +

    +New mail for Maildir is assumed if there is one message in the +new/ subdirectory which is not marked deleted (see +$maildir_trash). For MH folders, a +mailbox is considered having new mail if there's at least one message in +the “unseen” sequence as specified by $mh_seq_unseen. +

    +Mutt does not poll POP3 folders for new mail, it only periodically +checks the currently opened folder (if it's a POP3 folder). +

    +For IMAP, by default Mutt uses recent message counts provided by the +server to detect new mail. If the $imap_idle option is set, it'll use the IMAP +IDLE extension if advertised by the server. +

    10.2. Polling For New Mail

    +When in the index menu and being idle (also see $timeout), Mutt periodically checks for new +mail in all folders which have been configured via the mailboxes command. The interval depends on the folder -type: for local/IMAP folders it consults -$mail_check and -$pop_checkinterval -for POP folders. -

    -Outside the index menu the directory browser supports checking -for new mail using the <check-new> function which is -unbound by default. Pressing TAB will bring up a -menu showing the files specified by the mailboxes command, -and indicate which contain new messages. Mutt will automatically enter this -mode when invoked from the command line with the -y option. +type: for local/IMAP folders it consults $mail_check and $pop_checkinterval for POP folders. +

    +Outside the index menu the directory browser supports checking for new +mail using the <check-new> function which is +unbound by default. Pressing TAB will bring up a menu showing the files +specified by the mailboxes command, and indicate +which contain new messages. Mutt will automatically enter this mode when +invoked from the command line with the -y option.

    For the pager, index and directory browser menus, Mutt contains the -<buffy-list> function (bound to “.” by default) -which will print a list of folders with new mail in the command line at -the bottom of the screen. +<buffy-list> function (bound to +“.” by default) which will print a list of folders with new +mail in the command line at the bottom of the screen.

    For the index, by default Mutt displays the number of mailboxes with new -mail in the status bar, please refer to the -$status_format -variable for details. +mail in the status bar, please refer to the $status_format variable for details.

    When changing folders, Mutt fills the prompt with the first folder from the mailboxes list containing new mail (if any), pressing -space will cycle through folders with new mail. -

    10. Editing Threads

    +<Space> will cycle through folders with new +mail. The (by default unbound) function +<next-unread-mailbox> in the index can be used +to immediately open the next folder with unread mail (if any). +

    11. Editing Threads

    Mutt has the ability to dynamically restructure threads that are broken either by misconfigured software or bad behavior from some correspondents. This allows to clean your mailboxes from these annoyances which make it hard to follow a discussion. -

    10.1. Linking Threads

    -Some mailers tend to “forget” to correctly set the “In-Reply-To:” and -“References:” headers when replying to a message. This results in broken -discussions because Mutt has not enough information to guess the correct -threading. -You can fix this by tagging the reply, then moving to the parent message -and using the <link-threads> function (bound to & by default). The -reply will then be connected to this parent message. -

    -You can also connect multiple children at once, tagging them and using the -<tag-prefix> command (';') or the $auto_tag option. -

    10.2. Breaking Threads

    +

    11.1. Linking Threads

    +Some mailers tend to “forget” to correctly set the +“In-Reply-To:” and “References:” headers when +replying to a message. This results in broken discussions because Mutt +has not enough information to guess the correct threading. You can fix +this by tagging the reply, then moving to the parent message and using +the <link-threads> function (bound to & by +default). The reply will then be connected to this parent message. +

    +You can also connect multiple children at once, tagging them and using +the <tag-prefix> command (“;”) or +the $auto_tag option. +

    11.2. Breaking Threads

    On mailing lists, some people are in the bad habit of starting a new -discussion by hitting “reply” to any message from the list and changing -the subject to a totally unrelated one. -You can fix such threads by using the <break-thread> function (bound -by default to #), which will turn the subthread starting from the +discussion by hitting “reply” to any message from the list +and changing the subject to a totally unrelated one. You can fix such +threads by using the <break-thread> function +(bound by default to #), which will turn the subthread starting from the current message into a whole different thread. -

    11. Delivery Status Notification (DSN) Support

    +

    12. Delivery Status Notification (DSN) Support

    RFC1894 defines a set of MIME content types for relaying information -about the status of electronic mail messages. These can be thought of as -“return receipts.” +about the status of electronic mail messages. These can be thought of +as “return receipts.”

    To support DSN, there are two variables. $dsn_notify is used to request receipts for different results (such as failed message, message delivered, etc.). -$dsn_return requests how much -of your message should be returned with the receipt (headers or full -message). -

    -When using $sendmail for mail -delivery, you need to use either Berkeley sendmail 8.8.x (or greater) a MTA -supporting DSN command line options compatible to Sendmail: The -N and -R -options can be used by the mail client to make requests as to what type of -status messages should be returned. Please consider your MTA documentation -whether DSN is supported. -

    -For SMTP delivery using $smtp_url, it depends on the -capabilities announced by the server whether Mutt will attempt to -request DSN or not. -

    12. Start a WWW Browser on URLs

    -If a message contains URLs, it is efficient to get -a menu with all the URLs and start a WWW browser on one of them. This -functionality is provided by the external urlview program which can be -retrieved at +$dsn_return requests how much of your +message should be returned with the receipt (headers or full message). +

    +When using $sendmail for mail delivery, +you need to use either Berkeley sendmail 8.8.x (or greater) a MTA +supporting DSN command line options compatible to Sendmail: The -N and +-R options can be used by the mail client to make requests as to what +type of status messages should be returned. Please consider your MTA +documentation whether DSN is supported. +

    +For SMTP delivery using $smtp_url, it +depends on the capabilities announced by the server whether Mutt will +attempt to request DSN or not. +

    13. Start a WWW Browser on URLs

    +If a message contains URLs, it is efficient to get a menu with all the +URLs and start a WWW browser on one of them. This functionality is +provided by the external urlview program which can be retrieved at ftp://ftp.mutt.org/mutt/contrib/ and the configuration commands:

     macro index \cb |urlview\n
     macro pager \cb |urlview\n
    -

    13. Miscellany

    +

    14. Miscellany

    This section documents various features that fit nowhere else.

    Address normalization

    Mutt normalizes all e-mail addresses to the simplest form possible. If -an address contains a realname, the form -Joe User <joe@example.com> is used and the -pure e-mail address without angle brackets otherwise, i.e. just +an address contains a realname, the form Joe User +<joe@example.com> is used and the pure e-mail address +without angle brackets otherwise, i.e. just joe@example.com.

    This normalization affects all headers Mutt generates including aliases. @@ -678,8 +779,7 @@ specified in the $MAIL environment variable if present. Otherwise, the value of $MAILDIR is taken into account. If that isn't present either, Mutt takes the user's mailbox in the mailspool as determined at compile-time (which may also -reside in the home directory). The -$spoolfile setting overrides -this selection. Highest priority has the mailbox given with the +reside in the home directory). The $spoolfile setting overrides this +selection. Highest priority has the mailbox given with the -f command line option.

    diff --git a/doc/configuration.html b/doc/configuration.html index 0e89131..6615de5 100644 --- a/doc/configuration.html +++ b/doc/configuration.html @@ -1,6 +1,6 @@ -Chapter 3. Configuration

    Chapter 3. Configuration

    1. Location of Initialization Files

    -While the default configuration (or “preferences”) make Mutt -usable right out of the box, it is often desirable to tailor Mutt to -suit your own tastes. When Mutt is first invoked, it will attempt to -read the “system” configuration file (defaults set by your local -system administrator), unless the “-n” command line option is specified. This file is typically -/usr/local/share/mutt/Muttrc or /etc/Muttrc. Mutt -will next look for a file named .muttrc in your home -directory. If this file does not exist and your home directory has -a subdirectory named .mutt, Mutt tries to load a file named +

    Chapter 3. Configuration

    1. Location of Initialization Files

    +While the default configuration (or “preferences”) make +Mutt usable right out of the box, it is often desirable to tailor Mutt +to suit your own tastes. When Mutt is first invoked, it will attempt to +read the “system” configuration file (defaults set by your +local system administrator), unless the “-n” command line option is specified. This +file is typically /usr/local/share/mutt/Muttrc or +/etc/Muttrc. Mutt will next look for a file named +.muttrc in your home directory. If this file does +not exist and your home directory has a subdirectory named +.mutt, Mutt tries to load a file named .mutt/muttrc.

    -.muttrc is the file where you will usually place your commands to configure Mutt. +.muttrc is the file where you will usually place your +commands to configure Mutt.

    In addition, Mutt supports version specific configuration files that are -parsed instead of the default files as explained above. For instance, if -your system has a Muttrc-0.88 file in the system configuration -directory, and you are running version 0.88 of Mutt, this file will be -sourced instead of the Muttrc file. The same is true of the user -configuration file, if you have a file .muttrc-0.88.6 in your home -directory, when you run Mutt version 0.88.6, it will source this file -instead of the default .muttrc file. The version number is the -same which is visible using the “-v” command line switch or using the show-version key (default: -V) from the index menu. -

    2. Syntax of Initialization Files

    -An initialization file consists of a series of commands. Each line of the file may contain one or more commands. -When multiple commands are used, they must be separated by a semicolon -(“;”). +parsed instead of the default files as explained above. For instance, +if your system has a Muttrc-0.88 file in the system +configuration directory, and you are running version 0.88 of Mutt, this +file will be sourced instead of the Muttrc file. The +same is true of the user configuration file, if you have a file +.muttrc-0.88.6 in your home directory, when you run +Mutt version 0.88.6, it will source this file instead of the default +.muttrc file. The version number is the same which +is visible using the “-v” command line switch or using the +show-version key (default: V) from the index menu. +

    2. Syntax of Initialization Files

    +An initialization file consists of a series of commands. Each line of the file may contain +one or more commands. When multiple commands are used, they must be +separated by a semicolon (“;”).

    Example 3.1. Multiple configuration commands per line

     set realname='Mutt user' ; ignore x-
     

    -The hash mark, or pound sign -(“#”), is used as a “comment” character. You can use it to -annotate your initialization file. All text after the comment character -to the end of the line is ignored. +The hash mark, or pound sign (“#”), is used as a +“comment” character. You can use it to annotate your +initialization file. All text after the comment character to the end of +the line is ignored.

    Example 3.2. Commenting configuration files

    -my_hdr X-Disclaimer: Why are you listening to me? # This is a comment
    +my_hdr X-Disclaimer: Why are you listening to me? # This is a comment
     

    -Single quotes (“'”) and double quotes (“"”) can be used to quote strings -which contain spaces or other special characters. The difference between -the two types of quotes is similar to that of many popular shell programs, -namely that a single quote is used to specify a literal string (one that is -not interpreted for shell variables or quoting with a backslash [see -next paragraph]), while double quotes indicate a string for which -should be evaluated. For example, backticks are evaluated inside of double -quotes, but not for single quotes. -

    -“\” quotes the next character, just as in shells such as bash and zsh. -For example, if want to put quotes “"” inside of a string, you can use -“\” to force the next character to be a literal instead of interpreted -character. -

    Example 3.3. Escaping quotes in congfiguration files

    +Single quotes (“'”) and double quotes (“"”)
    +can be used to quote strings which contain spaces or other special
    +characters.  The difference between the two types of quotes is similar
    +to that of many popular shell programs, namely that a single quote is
    +used to specify a literal string (one that is not interpreted for shell
    +variables or quoting with a backslash [see next paragraph]), while
    +double quotes indicate a string for which should be evaluated.  For
    +example, backticks are evaluated inside of double quotes, but
    +not for single quotes.
    +

    +“\” quotes the next character, just as in shells such as +bash and zsh. For example, if want to put quotes “"” +inside of a string, you can use “\” to force the next +character to be a literal instead of interpreted character. +

    Example 3.3. Escaping quotes in configuration files

     set realname="Michael \"MuttDude\" Elkins"
     

    -“\\” means to insert a literal “\” into the line. -“\n” and “\r” have their usual C meanings of linefeed and +“\\” means to insert a literal “\” into the line. +“\n” and “\r” have their usual C meanings of linefeed and carriage-return, respectively.

    -A “\” at the end of a line can be used to split commands over -multiple lines as it “escapes” the line end, provided that the split points don't appear in the -middle of command names. Lines are first concatenated before -interpretation so that a multi-line can be commented by commenting out -the first line only. +A “\” at the end of a line can be used to split commands +over multiple lines as it “escapes” the line end, provided +that the split points don't appear in the middle of command names. Lines +are first concatenated before interpretation so that a multi-line can be +commented by commenting out the first line only.

    Example 3.4. Splitting long configuration commands over several lines

     set status_format="some very \
     long value split \
    @@ -96,52 +102,51 @@ over several lines"
     It is also possible to substitute the output of a Unix command in an
     initialization file.  This is accomplished by enclosing the command in
     backticks (``). In Example 3.5, “Using external command's output in configuration files”, the output of the
    -Unix command “uname -a” will be substituted before the
    -line is parsed.
    -Since initialization files are line oriented, only
    -the first line of output from the Unix command will be substituted.
    +Unix command “uname -a” will be substituted before the line
    +is parsed.  Since initialization files are line oriented, only the first
    +line of output from the Unix command will be substituted.
     

    Example 3.5. Using external command's output in configuration files

     my_hdr X-Operating-System: `uname -a`
     

    Both environment variables and Mutt variables can be accessed by -prepending “$” to the name of the variable. For example, +prepending “$” to the name of the variable. For example,

    Example 3.6. Using environment variables in configuration files

     set record=+sent_on_$HOSTNAME
     

    will cause Mutt to save outgoing messages to a folder named -“sent_on_kremvax” if the environment variable $HOSTNAME is set to -“kremvax.” (See $record for -details.) +“sent_on_kremvax” if the environment variable +$HOSTNAME is set to “kremvax.” (See +$record for details.)

    Mutt expands the variable when it is assigned, not when it is used. If -the value of a variable on the right-hand side of an assignment -changes after the assignment, the variable on the left-hand side will -not be affected. +the value of a variable on the right-hand side of an assignment changes +after the assignment, the variable on the left-hand side will not be +affected.

    The commands understood by Mutt are explained in the next paragraphs. -For a complete list, see the command reference. +For a complete list, see the command +reference.

    All configuration files are expected to be in the current locale as -specified by the $charset variable -which doesn't have a default value since it's determined by Mutt at startup. +specified by the $charset variable which +doesn't have a default value since it's determined by Mutt at startup. If a configuration file is not encoded in the same character set the -$config_charset -variable should be used: all lines starting with the next are recoded -from $config_charset -to $charset. -

    -This mechanism should be avoided if possible as it has the -following implications: -

    • These variables should be set early in a configuration -file with $charset preceding -$config_charset so Mutt -knows what character set to convert to.

    • If $config_charset is set, it should be set -in each configuration file because the value is global and not -per configuration file.

    • Because Mutt first recodes a line before it attempts to parse it, -a conversion introducing question marks or other characters as -part of errors (unconvertable characters, transliteration) may introduce syntax -errors or silently change the meaning of certain tokens (e.g. inserting -question marks into regular expressions).

    3. Address Groups

    Usage:

    group [ +$config_charset variable should be +used: all lines starting with the next are recoded from $config_charset to $charset. +

    +This mechanism should be avoided if possible as it has the following +implications: +

    • These variables should be set early in a configuration +file with $charset preceding $config_charset so Mutt knows what +character set to convert to.

    • If $config_charset +is set, it should be set in each configuration file because the value is +global and not per configuration +file.

    • Because Mutt first recodes a line before it attempts to +parse it, a conversion introducing question marks or other characters as +part of errors (unconvertable characters, transliteration) may introduce +syntax errors or silently change the meaning of certain tokens +(e.g. inserting question marks into regular +expressions).

    3. Address Groups

    Usage:

    group [ -group name ...] { @@ -162,30 +167,51 @@ question marks into regular expressions).

-addr expr ... }

-group is used to directly add either addresses or -regular expressions to the specified group or groups. The different -categories of arguments to the group command can be -in any order. The flags -rx and +Mutt supports grouping addresses logically into named groups. An address +or address pattern can appear in several groups at the same time. These +groups can be used in patterns (for searching, limiting and tagging) and +in hooks by using group patterns. This can be useful to classify mail +and take certain actions depending on in what groups the message is. +For example, the mutt user's mailing list would fit into the categories +“mailing list” and “mutt-related”. Using send-hook, the sender can +be set to a dedicated one for writing mailing list messages, and the +signature could be set to a mutt-related one for writing to a mutt list +— for other lists, the list sender setting still applies but a +different signature can be selected. Or, given a group only containing +recipients known to accept encrypted mail, +“auto-encryption” can be achieved easily. +

+The group command is used to directly add either +addresses or regular expressions to the specified group or groups. The +different categories of arguments to the group +command can be in any order. The flags -rx and -addr specify what the following strings (that cannot begin with a hyphen) should be interpreted as: either a regular expression or an email address, respectively.

-These address groups can also be created implicitly by the -alias, lists, -subscribe and -alternates commands by specifying the -optional -group option. -

-Once defined, these address groups can be used in -patterns to search for and limit the -display to messages matching a group. -

-ungroup is used to remove addresses or regular -expressions from the specified group or groups. The syntax is similar to -the group command, however the special character -* can be used to empty a group of all of its -contents. -

4. Defining/Using Aliases

Usage:

alias [ +These address groups can also be created implicitly by the alias, lists, subscribe and alternates commands by +specifying the optional -group option. For example, +

+alternates -group me address1 address2
+alternates -group me -group work address3
+

+would create a group named “me” which contains all your +addresses and a group named “work” which contains only your +work address address3. Besides many other +possibilities, this could be used to automatically mark your own +messages in a mailing list folder as read or use a special signature for +work-related messages. +

+The ungroup command is used to remove addresses or +regular expressions from the specified group or groups. The syntax is +similar to the group command, however the special +character * can be used to empty a group of all of +its contents. As soon as a group gets empty because all addresses and +regular expressions have been removed, it'll internally be removed, too +(i.e. there cannot be an empty group). When removing regular expressions +from a group, the pattern must be specified exactly as given to the +group command or -group argument. +

4. Defining/Using Aliases

Usage:

alias [ -group name ...] @@ -202,53 +228,57 @@ contents. | key ... }

-It's usually very cumbersome to remember or type out the address of someone -you are communicating with. Mutt allows you to create “aliases” which map -a short string to a full address. -

Note

-If you want to create an alias for more than -one address, you must separate the addresses with a comma (“,”). +It's usually very cumbersome to remember or type out the address of +someone you are communicating with. Mutt allows you to create +“aliases” which map a short string to a full address. +

Note

+If you want to create an alias for more than one address, you +must separate the addresses with a comma +(“,”).

The optional -group argument to alias causes the aliased address(es) to be added to the named group.

-To remove an alias or aliases (“*” means all aliases): +To remove an alias or aliases (“*” means all aliases):

 alias muttdude me@cs.hmc.edu (Michael Elkins)
 alias theguys manny, moe, jack
 

-Unlike other mailers, Mutt doesn't require aliases to be defined -in a special file. The alias command can appear anywhere in -a configuration file, as long as this file is sourced. Consequently, you can have multiple alias files, or -you can have all aliases defined in your .muttrc. +Unlike other mailers, Mutt doesn't require aliases to be defined in a +special file. The alias command can appear anywhere +in a configuration file, as long as this file is sourced. Consequently, you +can have multiple alias files, or you can have all aliases defined in +your .muttrc.

On the other hand, the <create-alias> function can use only one file, the one pointed to by the $alias_file variable (which is -˜/.muttrc by default). This file is not special either, -in the sense that Mutt will happily append aliases to any file, but in -order for the new aliases to take effect you need to explicitly source this file too. +~/.muttrc by default). This file is not special +either, in the sense that Mutt will happily append aliases to any file, +but in order for the new aliases to take effect you need to explicitly +source this file too.

Example 3.7. Configuring external alias files

 source /usr/local/share/Mutt.aliases
 source ~/.mail_aliases
 set alias_file=~/.mail_aliases
 

To use aliases, you merely use the alias at any place in Mutt where Mutt -prompts for addresses, such as the To: or Cc: prompt. You can -also enter aliases in your editor at the appropriate headers if you have the -$edit_headers variable set. +prompts for addresses, such as the To: or +Cc: prompt. You can also enter aliases in your +editor at the appropriate headers if you have the $edit_headers variable set.

-In addition, at the various address prompts, you can use the tab character -to expand a partial alias to the full alias. If there are multiple matches, -Mutt will bring up a menu with the matching aliases. In order to be -presented with the full list of aliases, you must hit tab without a partial -alias, such as at the beginning of the prompt or after a comma denoting -multiple addresses. +In addition, at the various address prompts, you can use the tab +character to expand a partial alias to the full alias. If there are +multiple matches, Mutt will bring up a menu with the matching aliases. +In order to be presented with the full list of aliases, you must hit tab +without a partial alias, such as at the beginning of the prompt or after +a comma denoting multiple addresses.

In the alias menu, you can select as many aliases as you want with the -select-entry key (default: <Return>), and use the -exit key (default: q) to return to the address prompt. -

5. Changing the Default Key Bindings

Usage:

bind +select-entry key (default: <Return>), and use +the exit key (default: q) to return to the address +prompt. +

5. Changing the Default Key Bindings

Usage:

bind map key @@ -258,26 +288,30 @@ In the alias menu, you can select as many aliases as you want with the This command allows you to change the default key bindings (operation invoked when pressing a key).

-map specifies in which menu the binding belongs. Multiple maps may -be specified by separating them with commas (no additional whitespace is -allowed). The currently defined maps are: +map specifies in which menu the binding belongs. +Multiple maps may be specified by separating them with commas (no +additional whitespace is allowed). The currently defined maps are:

generic

This is not a real menu, but is used as a fallback for all of the other menus except for the pager and editor modes. If a key is not defined in -another menu, Mutt will look for a binding to use in this menu. This allows -you to bind a key to a certain function in multiple menus instead of having -multiple bind statements to accomplish the same task. +another menu, Mutt will look for a binding to use in this menu. This +allows you to bind a key to a certain function in multiple menus instead +of having multiple bind statements to accomplish the +same task.

alias

The alias menu is the list of your personal aliases as defined in your -.muttrc. It is the mapping from a short alias name to the full email -address(es) of the recipient(s). +.muttrc. It is the mapping from a short alias name +to the full email address(es) of the recipient(s).

attach

-The attachment menu is used to access the attachments on received messages. +The attachment menu is used to access the attachments on received +messages.

browser

-The browser is used for both browsing the local directory structure, and for -listing all of your incoming mailboxes. +The browser is used for both browsing the local directory structure, and +for listing all of your incoming mailboxes.

editor

-The editor is the line-based editor the user enters text data. +The editor is used to allow the user to enter a single line of text, such as +the To or Subject prompts in the +compose menu.

index

The index is the list of messages contained in a mailbox.

compose

@@ -289,35 +323,44 @@ listings. The pgp menu is used to select the OpenPGP keys used to encrypt outgoing messages.

smime

-The smime menu is used to select the OpenSSL certificates used to encrypt outgoing -messages. +The smime menu is used to select the OpenSSL certificates used to +encrypt outgoing messages.

postpone

The postpone menu is similar to the index menu, except is used when recalling a message the user was composing, but saved until later.

query

-The query menu is the browser for results returned by -$query_command. +The query menu is the browser for results returned by $query_command.

mix

The mixmaster screen is used to select remailer options for outgoing messages (if Mutt is compiled with Mixmaster support).

-key is the key (or key sequence) you wish to bind. To specify a -control character, use the sequence \Cx, where x is the -letter of the control character (for example, to specify control-A use -“\Ca”). Note that the case of x as well as \C is -ignored, so that \CA, \Ca, \cA and \ca are all +key is the key (or key sequence) you wish to bind. +To specify a control character, use the sequence +\Cx, where x is the letter of +the control character (for example, to specify control-A use +“\Ca”). Note that the case of x as +well as \C is ignored, so that +\CA, \Ca, +\cA and \ca are all equivalent. An alternative form is to specify the key as a three digit -octal number prefixed with a “\” (for example \177 is -equivalent to \c?). In addition, key may -be a symbolic name as shown in Table 3.1, “Symbolic key names”. +octal number prefixed with a “\” (for example +\177 is equivalent to \c?). In +addition, key may be a symbolic name as shown in +Table 3.1, “Symbolic key names”.

Table 3.1. Symbolic key names

Symbolic nameMeaning
\ttab
<tab>tab
<backtab>backtab / shift-tab
\rcarriage return
\nnewline
\eescape
<esc>escape
<up>up arrow
<down>down arrow
<left>left arrow
<right>right arrow
<pageup>Page Up
<pagedown>Page Down
<backspace>Backspace
<delete>Delete
<insert>Insert
<enter>Enter
<return>Return
<home>Home
<end>End
<space>Space bar
<f1>function key 1
<f10>function key 10

-key does not need to be enclosed in quotes unless it contains a -space (“ ”) or semi-colon (“;”). -

-function specifies which action to take when key is pressed. -For a complete list of functions, see the reference. The special function <noop> unbinds the specified key -sequence. -

6. Defining Aliases for Character Sets

Usage:

charset-hook +key does not need to be enclosed in quotes unless +it contains a space (“ ”) or semi-colon +(“;”). +

+function specifies which action to take when +key is pressed. For a complete list of functions, +see the reference. Note that the +bind expects function to be +specified without angle brackets. +

+The special function <noop> unbinds the +specified key sequence. +

6. Defining Aliases for Character Sets

Usage:

charset-hook alias charset @@ -326,50 +369,52 @@ sequence. local-charset

-The charset-hook command defines an alias for a character set. -This is useful to properly display messages which are tagged with a -character set name not known to Mutt. -

-The iconv-hook command defines a system-specific name for a -character set. This is helpful when your systems character -conversion library insists on using strange, system-specific names -for character sets. -

7. Setting Variables Based Upon Mailbox

Usage:

folder-hook +The charset-hook command defines an alias for a +character set. This is useful to properly display messages which are +tagged with a character set name not known to Mutt. +

+The iconv-hook command defines a system-specific name +for a character set. This is helpful when your systems character +conversion library insists on using strange, system-specific names for +character sets. +

7. Setting Variables Based Upon Mailbox

Usage:

folder-hook [!]regexp command

It is often desirable to change settings based on which mailbox you are -reading. The folder-hook command provides a method by which you can execute -any configuration command. regexp is a regular expression specifying -in which mailboxes to execute command before loading. If a mailbox -matches multiple folder-hooks, they are executed in the order given in the -.muttrc. -

Note

-If you use the “!” shortcut for $spoolfile at the beginning of the pattern, you must place it -inside of double or single quotes in order to distinguish it from the -logical not operator for the expression. -

Note

-Settings are not restored when you leave the mailbox. -For example, a command action to perform is to change the sorting method -based upon the mailbox being read: - +reading. The folder-hook command provides a method +by which you can execute any configuration command. +regexp is a regular expression specifying in which +mailboxes to execute command before loading. If a +mailbox matches multiple folder-hooks, they are +executed in the order given in the .muttrc. +

Note

+If you use the “!” shortcut for $spoolfile at the beginning of the pattern, +you must place it inside of double or single quotes in order to +distinguish it from the logical not operator for +the expression. +

Note

+Settings are not restored when you leave the +mailbox. For example, a command action to perform is to change the +sorting method based upon the mailbox being read:

 folder-hook mutt "set sort=threads"

- However, the sorting method is not restored to its previous value when -reading a different mailbox. To specify a default command, use the -pattern “.” before other folder-hooks adjusting a value on a per-folder basis -because folder-hooks are evaluated in the order given in the -configuration file. +reading a different mailbox. To specify a default +command, use the pattern “.” before other +folder-hooks adjusting a value on a per-folder basis +because folder-hooks are evaluated in the order given +in the configuration file.

-The following example will set the sort variable -to date-sent for all folders but to threads -for all folders containing “mutt” in their name. +The following example will set the sort +variable to date-sent for all folders but to +threads for all folders containing +“mutt” in their name.

Example 3.8. Setting sort method based on mailbox name

 folder-hook . "set sort=date-sent"
 folder-hook mutt "set sort=threads"
-

8. Keyboard Macros

Usage:

macro +


8. Keyboard Macros

Usage:

macro menu key @@ -378,39 +423,43 @@ folder-hook mutt "set sort=threads" [ description ]

-Macros are useful when you would like a single key to perform a series of -actions. When you press key in menu menu, Mutt will behave as if -you had typed sequence. So if you have a common sequence of commands -you type, you can create a macro to execute those commands with a single -key or fewer keys. -

-menu is the map which the macro will be bound in. -Multiple maps may be specified by separating multiple menu arguments by -commas. Whitespace may not be used in between the menu arguments and the -commas separating them. -

-key and sequence are expanded by the same rules as the -key bindings with some additions. The -first is that control characters in sequence can also be specified -as ^x. In order to get a caret (“^”) you need to use -^^. Secondly, to specify a certain key such as up -or to invoke a function directly, you can use the format -<key name> and <function name>. For a listing of key -names see the section on key bindings. Functions +Macros are useful when you would like a single key to perform a series +of actions. When you press key in menu +menu, Mutt will behave as if you had typed +sequence. So if you have a common sequence of +commands you type, you can create a macro to execute those commands with +a single key or fewer keys. +

+menu is the map which +the macro will be bound in. Multiple maps may be specified by +separating multiple menu arguments by commas. Whitespace may not be used +in between the menu arguments and the commas separating them. +

+key and sequence are expanded +by the same rules as the key bindings with +some additions. The first is that control characters in +sequence can also be specified as +^x. In order to get a caret (“^”) you +need to use ^^. Secondly, to specify a certain key +such as up or to invoke a function directly, you +can use the format <key name> and +<function name>. For a listing of key names +see the section on key bindings. Functions are listed in the reference.

The advantage with using function names directly is that the macros will -work regardless of the current key bindings, so they are not dependent on -the user having particular key definitions. This makes them more robust -and portable, and also facilitates defining of macros in files used by more -than one user (e.g., the system Muttrc). -

-Optionally you can specify a descriptive text after sequence, -which is shown in the help screens if they contain a description. -

Note

+work regardless of the current key bindings, so they are not dependent +on the user having particular key definitions. This makes them more +robust and portable, and also facilitates defining of macros in files +used by more than one user (e.g., the system Muttrc). +

+Optionally you can specify a descriptive text after +sequence, which is shown in the help screens if +they contain a description. +

Note

Macro definitions (if any) listed in the help screen(s), are silently truncated at the screen width, and are not wrapped. -

9. Using Color and Mono Video Attributes

Usage:

color +

9. Using Color and Mono Video Attributes

Usage:

color object foreground @@ -445,48 +494,61 @@ silently truncated at the screen width, and are not wrapped. | pattern ... }

-If your terminal supports color, you can spice up Mutt by creating your own -color scheme. To define the color of an object (type of information), you -must specify both a foreground color and a background color (it is not -possible to only specify one or the other). +If your terminal supports color, you can spice up Mutt by creating your +own color scheme. To define the color of an object (type of +information), you must specify both a foreground color +and a background color (it is not possible to only +specify one or the other).

-header and body match regexp -in the header/body of a message, index matches pattern -(see Section 2, “Patterns: Searching, Limiting and Tagging”) in the message index. +header and body match +regexp in the header/body of a message, +index matches pattern (see +Section 3, “Patterns: Searching, Limiting and Tagging”) in the message index.

object can be one of: -

  • attachment

  • bold (hiliting bold patterns in the body of messages)

  • error (error messages printed by Mutt)

  • hdrdefault (default color of the message header in the pager)

  • indicator (arrow or bar used to indicate the current item in a menu)

  • markers (the “+” markers at the beginning of wrapped lines in the pager)

  • message (informational messages)

  • normal

  • quoted (text matching $quote_regexp in the body of a message)

  • quoted1, quoted2, ..., quotedN (higher levels of quoting)

  • search (hiliting of words in the pager)

  • signature

  • status (mode lines used to display info about the mailbox or message)

  • tilde (the “˜” used to pad blank lines in the pager)

  • tree (thread tree drawn in the message index and attachment menu)

  • underline (hiliting underlined patterns in the body of messages)

-foreground and background can be one of the following: -

  • white

  • black

  • green

  • magenta

  • blue

  • cyan

  • yellow

  • red

  • default

  • colorx

-foreground can optionally be prefixed with the keyword bright to make -the foreground color boldfaced (e.g., brightred). -

-If your terminal supports it, the special keyword default can be -used as a transparent color. The value brightdefault is also valid. -If Mutt is linked against the S-Lang library, you also need to set -the $COLORFGBG environment variable to the default colors of your -terminal for this to work; for example (for Bourne-like shells): +

  • attachment

  • bold (highlighting bold patterns in the body of messages)

  • error (error messages printed by Mutt)

  • hdrdefault (default color of the message header in the pager)

  • indicator (arrow or bar used to indicate the current item in a menu)

  • markers (the “+” markers at the beginning of wrapped lines in the pager)

  • message (informational messages)

  • normal

  • quoted (text matching $quote_regexp in the body of a message)

  • quoted1, quoted2, ..., quotedN (higher levels of quoting)

  • search (highlighting of words in the pager)

  • signature

  • status (mode lines used to display info about the mailbox or message)

  • tilde (the “~” used to pad blank lines in the pager)

  • tree (thread tree drawn in the message index and attachment menu)

  • underline (highlighting underlined patterns in the body of messages)

+foreground and background can +be one of the following: +

  • white

  • black

  • green

  • magenta

  • blue

  • cyan

  • yellow

  • red

  • default

  • colorx

+foreground can optionally be prefixed with the +keyword bright to make the foreground color boldfaced +(e.g., brightred). +

+If your terminal supports it, the special keyword +default can be used as a transparent color. The +value brightdefault is also valid. If Mutt is +linked against the S-Lang library, you also need to +set the $COLORFGBG environment variable to the +default colors of your terminal for this to work; for example (for +Bourne-like shells):

 set COLORFGBG="green;black"
 export COLORFGBG
-

Note

-The S-Lang library requires you to use the lightgray -and brown keywords instead of white and yellow when -setting this variable. -

Note

-The uncolor command can be applied to the index, header and body objects only. It -removes entries from the list. You must specify the same pattern -specified in the color command for it to be removed. The pattern “*” is -a special token which means to clear the color list of all entries. +

Note

+The S-Lang library requires you to use the +lightgray and brown keywords +instead of white and yellow +when setting this variable. +

Note

+The uncolor command can be applied to the index, +header and body objects only. It removes entries from the list. You +must specify the same pattern specified in the +color command for it to be removed. The pattern +“*” is a special token which means to clear the color list +of all entries.

-Mutt also recognizes the keywords color0, color1, …, -colorN-1 (N being the number of colors supported -by your terminal). This is useful when you remap the colors for your -display (for example by changing the color associated with color2 -for your xterm), since color names may then lose their normal meaning. +Mutt also recognizes the keywords color0, +color1, ..., +colorN-1 +(N being the number of colors supported by your +terminal). This is useful when you remap the colors for your display +(for example by changing the color associated with +color2 for your xterm), since color names may then +lose their normal meaning.

-If your terminal does not support color, it is still possible change the video -attributes through the use of the “mono” command. Usage: +If your terminal does not support color, it is still possible change the +video attributes through the use of the “mono” +command. Usage:

mono object @@ -516,9 +578,15 @@ attributes through the use of the “mono” command. | pattern ... }

-For object, see the color command. attribute -can be one of the following: -

  • none

  • bold

  • underline

  • reverse

  • standout

10. Message Header Display

10.1. Selecting Headers

Usage:

ignore +For object, see the color +command. attribute can be one of the following: +

  • none

  • bold

  • underline

  • reverse

  • standout

10. Message Header Display

10.1. Header Display

+When displaying a message in the pager, Mutt folds long header lines at +$wrap columns. Though there're precise rules +about where to break and how, Mutt always folds headers using a tab for +readability. (Note that the sending side is not affected by this, Mutt +tries to implement standards compliant folding.) +

10.2. Selecting Headers

Usage:

ignore pattern [ pattern @@ -527,26 +595,30 @@ can be one of the following: | pattern ... }

-Messages often have many header fields added by automatic processing systems, -or which may not seem useful to display on the screen. This command allows -you to specify header fields which you don't normally want to see in the pager. +Messages often have many header fields added by automatic processing +systems, or which may not seem useful to display on the screen. This +command allows you to specify header fields which you don't normally +want to see in the pager.

You do not need to specify the full header field name. For example, -“ignore content-” will ignore all header fields that begin with the pattern -“content-”. “ignore *” will ignore all headers. +“ignore content-” will ignore all header fields that begin +with the pattern “content-”. “ignore *” will +ignore all headers.

-To remove a previously added token from the list, use the “unignore” command. -The “unignore” command will make Mutt display headers with the given pattern. -For example, if you do “ignore x-” it is possible to “unignore x-mailer”. +To remove a previously added token from the list, use the +“unignore” command. The “unignore” command +will make Mutt display headers with the given pattern. For example, if +you do “ignore x-” it is possible to “unignore +x-mailer”.

-“unignore *” will remove all tokens from the ignore list. +“unignore *” will remove all tokens from the ignore list.

Example 3.9. Header weeding

-# Sven's draconian header weeding
+# Sven's draconian header weeding
 ignore *
 unignore from date subject to cc
 unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
 unignore posted-to:
-

10.2. Ordering Displayed Headers

Usage:

hdr_order +


10.3. Ordering Displayed Headers

Usage:

hdr_order header [ header @@ -555,14 +627,16 @@ unignore posted-to: | header ... }

-With the hdr_order command you can specify an order in -which Mutt will attempt to present these headers to you when viewing messages. +With the hdr_order command you can specify an order +in which Mutt will attempt to present these headers to you when viewing +messages.

-“unhdr_order *” will clear all previous headers from the order list, -thus removing the header order effects set by the system-wide startup file. +“unhdr_order *” will clear all previous +headers from the order list, thus removing the header order effects set +by the system-wide startup file.

Example 3.10. Configuring header display order

 hdr_order From Date: From: To: Cc: Subject:
-

11. Alternative Addresses

Usage:

alternates [ +


11. Alternative Addresses

Usage:

alternates [ -group name ...] @@ -577,17 +651,17 @@ hdr_order From Date: From: To: Cc: Subject: | regexp ... }

-With various functions, Mutt will treat messages differently, -depending on whether you sent them or whether you received them from -someone else. For instance, when replying to a message that you -sent to a different party, Mutt will automatically suggest to send -the response to the original message's recipients — responding to -yourself won't make much sense in many cases. (See $reply_to.) +With various functions, Mutt will treat messages differently, depending +on whether you sent them or whether you received them from someone else. +For instance, when replying to a message that you sent to a different +party, Mutt will automatically suggest to send the response to the +original message's recipients — responding to yourself won't make +much sense in many cases. (See $reply_to.)

Many users receive e-mail under a number of different addresses. To -fully use Mutt's features here, the program must be able to -recognize what e-mail addresses you receive mail under. That's the -purpose of the alternates command: It takes a list of regular +fully use Mutt's features here, the program must be able to recognize +what e-mail addresses you receive mail under. That's the purpose of the +alternates command: It takes a list of regular expressions, each of which can identify an address under which you receive e-mail.

@@ -597,38 +671,38 @@ as possible to avoid mismatches. For example, if you specify:

 alternates user@example
 

-Mutt will consider “some-user@example” as -being your address, too which may not be desired. As a solution, in such -cases addresses should be specified as: +Mutt will consider “some-user@example” +as being your address, too which may not be desired. As a solution, in +such cases addresses should be specified as:

 alternates '^user@example$'
 

-The -group flag causes all of the subsequent regular expressions -to be added to the named group. -

-The unalternates command can be used to write exceptions to -alternates patterns. If an address matches something in an -alternates command, but you nonetheless do not think it is -from you, you can list a more precise pattern under an unalternates -command. -

-To remove a regular expression from the alternates list, use the -unalternates command with exactly the same regexp. -Likewise, if the regexp for an alternates command matches -an entry on the unalternates list, that unalternates -entry will be removed. If the regexp for unalternates -is “*”, all entries on alternates will be removed. -

12. Mailing Lists

Usage:

lists [ +The -group flag causes all of the subsequent regular +expressions to be added to the named group. +

+The unalternates command can be used to write +exceptions to alternates patterns. If an address +matches something in an alternates command, but you +nonetheless do not think it is from you, you can list a more precise +pattern under an unalternates command. +

+To remove a regular expression from the alternates +list, use the unalternates command with exactly the +same regexp. Likewise, if the +regexp for an alternates command +matches an entry on the unalternates list, that +unalternates entry will be removed. If the +regexp for unalternates is +“*”, all entries on +alternates will be removed. +

12. Mailing Lists

Usage:

lists [ -group name ...] regexp [ regexp -...]
unlists [ --group -name -...] { +...]
unlists { * | regexp @@ -639,84 +713,84 @@ is “*”, all entriesregexp [ regexp -...]
unsubscribe [ --group -name -...] { +...]
unsubscribe { * | regexp ... }

-Mutt has a few nice features for handling mailing lists. In order to take advantage of them, you must -specify which addresses belong to mailing lists, and which mailing -lists you are subscribed to. Mutt also has limited support for -auto-detecting mailing lists: it supports parsing -mailto: links in the common -List-Post: header which has the same effect as -specifying the list address via the lists command -(except the group feature). Once you have done this, the -<list-reply> -function will work for all known lists. -Additionally, when you send a message to a subscribed list, Mutt will -add a Mail-Followup-To header to tell other users' mail user agents -not to send copies of replies to your personal address. -

Note

+Mutt has a few nice features for handling +mailing lists. In order to take advantage of them, you must +specify which addresses belong to mailing lists, and which mailing lists +you are subscribed to. Mutt also has limited support for auto-detecting +mailing lists: it supports parsing mailto: links in +the common List-Post: header which has the same +effect as specifying the list address via the lists +command (except the group feature). Once you have done this, the <list-reply> +function will work for all known lists. Additionally, when you send a +message to a subscribed list, Mutt will add a Mail-Followup-To header to +tell other users' mail user agents not to send copies of replies to your +personal address. +

Note

The Mail-Followup-To header is a non-standard extension which is not -supported by all mail user agents. Adding it is not bullet-proof against -receiving personal CCs of list messages. Also note that the generation -of the Mail-Followup-To header is controlled by the -$followup_to -configuration variable since it's common practice on some mailing lists -to send Cc upons replies (which is more a group- than a list-reply). +supported by all mail user agents. Adding it is not bullet-proof +against receiving personal CCs of list messages. Also note that the +generation of the Mail-Followup-To header is controlled by the $followup_to configuration variable since +it's common practice on some mailing lists to send Cc upon replies +(which is more a group- than a list-reply).

-More precisely, Mutt maintains lists of patterns for the addresses -of known and subscribed mailing lists. Every subscribed mailing -list is known. To mark a mailing list as known, use the list +More precisely, Mutt maintains lists of patterns for the addresses of +known and subscribed mailing lists. Every subscribed mailing list is +known. To mark a mailing list as known, use the list command. To mark it as subscribed, use subscribe.

-You can use regular expressions with both commands. To mark all -messages sent to a specific bug report's address on Debian's bug -tracking system as list mail, for instance, you could say +You can use regular expressions with both commands. To mark all messages +sent to a specific bug report's address on Debian's bug tracking system +as list mail, for instance, you could say

 subscribe [0-9]*.*@bugs.debian.org

-as it's often, it's sufficient to just give a portion of the list's e-mail address. +as it's often sufficient to just give a portion of the list's e-mail +address.

Specify as much of the address as you need to to remove ambiguity. For -example, if you've subscribed to the Mutt mailing list, you will receive mail -addressed to mutt-users@mutt.org. So, to tell Mutt -that this is a mailing list, you could add lists mutt-users@ to your -initialization file. To tell Mutt that you are subscribed to it, -add subscribe mutt-users to your initialization file instead. -If you also happen to get mail from someone whose address is +example, if you've subscribed to the Mutt mailing list, you will receive +mail addressed to mutt-users@mutt.org. So, to tell +Mutt that this is a mailing list, you could add lists +mutt-users@ to your initialization file. To tell Mutt that +you are subscribed to it, add subscribe +mutt-users to your initialization file instead. If you also +happen to get mail from someone whose address is mutt-users@example.com, you could use -lists ^mutt-users@mutt\\.org$ -or subscribe ^mutt-users@mutt\\.org$ to -match only mail from the actual list. -

-The -group flag adds all of the subsequent regular expressions -to the named group. -

-The “unlists” command is used to remove a token from the list of -known and subscribed mailing-lists. Use “unlists *” to remove all -tokens. -

-To remove a mailing list from the list of subscribed mailing lists, -but keep it on the list of known mailing lists, use unsubscribe. -

13. Using Multiple Spool Mailboxes

Usage:

mbox-hook +lists ^mutt-users@mutt\\.org$ or +subscribe ^mutt-users@mutt\\.org$ +to match only mail from the actual list. +

+The -group flag adds all of the subsequent regular +expressions to the named address group +in addition to adding to the specified address list. +

+The “unlists” command is used to remove a token from the +list of known and subscribed mailing-lists. Use “unlists *” +to remove all tokens. +

+To remove a mailing list from the list of subscribed mailing lists, but +keep it on the list of known mailing lists, use +unsubscribe. +

13. Using Multiple Spool Mailboxes

Usage:

mbox-hook [!]pattern mailbox

This command is used to move read messages from a specified mailbox to a different mailbox automatically when you quit or change folders. -pattern is a regular expression specifying the mailbox to treat as a -“spool” mailbox and mailbox specifies where mail should be saved when +pattern is a regular expression specifying the +mailbox to treat as a “spool” mailbox and +mailbox specifies where mail should be saved when read.

-Unlike some of the other hook commands, only the first matching -pattern is used (it is not possible to save read mail in more than a single -mailbox). -

14. Monitoring Incoming Mail

Usage:

mailboxes +Unlike some of the other hook commands, only the +first matching pattern is used (it is not possible +to save read mail in more than a single mailbox). +

14. Monitoring Incoming Mail

Usage:

mailboxes mailbox [ mailbox @@ -725,132 +799,119 @@ mailbox). | mailbox ... }

-This command specifies folders which can receive mail and -which will be checked for new messages periodically. +This command specifies folders which can receive mail and which will be +checked for new messages periodically.

folder can either be a local file or directory (Mbox/Mmdf or Maildir/Mh). If Mutt was built with POP and/or IMAP support, folder can also be a POP/IMAP folder -URL. The URL syntax is described in Section 1.2, “URL Syntax”, -POP and IMAP are described in Section 3, “POP3 Support” and Section 4, “IMAP Support” -respectively. +URL. The URL syntax is described in Section 1.2, “URL Syntax”, POP +and IMAP are described in Section 3, “POP3 Support” and Section 4, “IMAP Support” respectively.

Mutt provides a number of advanced features for handling (possibly many) -folders and new mail within them, please refer to -Section 9, “Handling multiple folders” for details (including in what -situations and how often Mutt checks for new mail). -

-The “unmailboxes” command is used to remove a token from the list -of folders which receive mail. Use “unmailboxes *” to remove all -tokens. -

Note

-The folders in the mailboxes command are resolved when -the command is executed, so if these names contain shortcut characters (such as “=” and “!”), any variable -definition that affects these characters (like $folder and $spoolfile) -should be set before the mailboxes command. If -none of these shorcuts are used, a local path should be absolute as -otherwise Mutt tries to find it relative to the directory -from where Mutt was started which may not always be desired. -

-For Mbox and Mmdf folders, new mail is detected by comparing access and/or -modification times of files: Mutt assumes a folder has new mail if it wasn't -accessed after it was last modified. Utilities like biff or -frm or any other program which accesses the mailbox might cause -Mutt to never detect new mail for that mailbox if they do not properly reset the -access time. Other possible causes of Mutt not detecting new mail in these folders -are backup tools (updating access times) or filesystems mounted without -access time update support. -

-In cases where new mail detection for Mbox or Mmdf folders appears to be -unreliable, the -$check_mbox_size -option can be used to make Mutt track and consult file sizes for new -mail detection instead which won't work for size-neutral changes. -

15. User-Defined Headers

Usage:

my_hdr +folders and new mail within them, please refer to Section 10, “New Mail Detection” for details (including in what situations and how +often Mutt checks for new mail). +

+The “unmailboxes” command is used to remove a token from +the list of folders which receive mail. Use “unmailboxes *” +to remove all tokens. +

Note

+The folders in the mailboxes command are resolved +when the command is executed, so if these names contain shortcut characters (such as “=” +and “!”), any variable definition that affects these +characters (like $folder and $spoolfile) should be set before the +mailboxes command. If none of these shortcuts are +used, a local path should be absolute as otherwise Mutt tries to find it +relative to the directory from where Mutt was started which may not +always be desired. +

15. User-Defined Headers

Usage:

my_hdr string
unmy_hdr { * | field ... }

-The my_hdr command allows you to create your own header -fields which will be added to every message you send and appear in the -editor if $edit_headers is set. -

-For example, if you would like to add an “Organization:” header field to -all of your outgoing messages, you can put the command something like -shown in Example 3.11, “Defining custom headers” in your .muttrc. +The my_hdr command allows you to create your own +header fields which will be added to every message you send and appear +in the editor if $edit_headers is +set. +

+For example, if you would like to add an “Organization:” +header field to all of your outgoing messages, you can put the command +something like shown in Example 3.11, “Defining custom headers” in your +.muttrc.

Example 3.11. Defining custom headers

 my_hdr Organization: A Really Big Company, Anytown, USA
-

Note

-Space characters are not allowed between the keyword and -the colon (“:”). The standard for electronic mail (RFC2822) says that -space is illegal there, so Mutt enforces the rule. +


Note

+Space characters are not allowed between the +keyword and the colon (“:”). The standard for electronic +mail (RFC2822) says that space is illegal there, so Mutt enforces the +rule.

If you would like to add a header field to a single message, you should -either set the $edit_headers variable, -or use the <edit-headers> function (default: “E”) in the compose menu so -that you can edit the header of your message along with the body. -

-To remove user defined header fields, use the unmy_hdr -command. You may specify an asterisk (“*”) to remove all header -fields, or the fields to remove. For example, to remove all “To” and -“Cc” header fields, you could use: +either set the $edit_headers +variable, or use the <edit-headers> function +(default: “E”) in the compose menu so that you can edit the +header of your message along with the body. +

+To remove user defined header fields, use the +unmy_hdr command. You may specify an asterisk +(“*”) to remove all header fields, or the fields to +remove. For example, to remove all “To” and +“Cc” header fields, you could use:

 unmy_hdr to cc
-

16. Specify Default Save Mailbox

Usage:

save-hook +

16. Specify Default Save Mailbox

Usage:

save-hook [!]pattern mailbox

This command is used to override the default mailbox used when saving -messages. mailbox will be used as the default if the message -matches pattern, see Message Matching in Hooks for information -on the exact format. +messages. mailbox will be used as the default if +the message matches pattern, see Message Matching in Hooks for information on the exact format.

-To provide more flexibility and good defaults, Mutt applies the -expandos of $index_format to +To provide more flexibility and good defaults, Mutt applies the expandos +of $index_format to mailbox after it was expanded.

Example 3.12. Using %-expandos in save-hook

-# default: save all to ~/Mail/<author name>
+# default: save all to ~/Mail/<author name>
 save-hook . ~/Mail/%F
 
-# save from me@turing.cs.hmc.edu and me@cs.hmc.edu to $folder/elkins
+# save from me@turing.cs.hmc.edu and me@cs.hmc.edu to $folder/elkins
 save-hook me@(turing\\.)?cs\\.hmc\\.edu$ +elkins
 
-# save from aol.com to $folder/spam
+# save from aol.com to $folder/spam
 save-hook aol\\.com$ +spam
 

Also see the fcc-save-hook command. -

17. Specify Default Fcc: Mailbox When Composing

Usage:

fcc-hook +

17. Specify Default Fcc: Mailbox When Composing

Usage:

fcc-hook [!]pattern mailbox

-This command is used to save outgoing mail in a mailbox other than -$record. Mutt searches the initial list of -message recipients for the first matching regexp and uses mailbox -as the default Fcc: mailbox. If no match is found the message will be saved -to $record mailbox. +This command is used to save outgoing mail in a mailbox other than $record. Mutt searches the initial list of +message recipients for the first matching regexp +and uses mailbox as the default Fcc: mailbox. If +no match is found the message will be saved to $record mailbox.

To provide more flexibility and good defaults, Mutt applies the expandos of $index_format to mailbox after it was expanded.

-See Message Matching in Hooks for information on the exact format of pattern. +See Message Matching in Hooks for information on the exact format +of pattern.

fcc-hook [@.]aol\\.com$ +spammers

-...will save a copy of all messages going to the aol.com domain to -the `+spammers' mailbox by default. Also see the fcc-save-hook command. -

18. Specify Default Save Filename and Default Fcc: Mailbox at Once

Usage:

fcc-save-hook +...will save a copy of all messages going to the aol.com domain to the +`+spammers' mailbox by default. Also see the fcc-save-hook command. +

18. Specify Default Save Filename and Default Fcc: Mailbox at Once

Usage:

fcc-save-hook [!]pattern mailbox

-This command is a shortcut, equivalent to doing both a fcc-hook -and a save-hook with its arguments, -including %-expansion on mailbox according -to $index_format. -

19. Change Settings Based Upon Message Recipients

Usage:

reply-hook +This command is a shortcut, equivalent to doing both a fcc-hook and a save-hook with its +arguments, including %-expansion on mailbox +according to $index_format. +

19. Change Settings Based Upon Message Recipients

Usage:

reply-hook [!]pattern command @@ -863,99 +924,124 @@ to command

-These commands can be used to execute arbitrary configuration commands based -upon recipients of the message. pattern is used to match -the message, see Message Matching in Hooks for details. command -is executed when pattern matches. -

-reply-hook is matched against the message you are replying to, -instead of the message you are sending. send-hook is -matched against all messages, both new -and replies. -

Note

-reply-hooks are matched before the send-hook, regardless -of the order specified in the user's configuration file. +These commands can be used to execute arbitrary configuration commands +based upon recipients of the message. pattern is +used to match the message, see Message Matching in Hooks for +details. command is executed when +pattern matches. +

+reply-hook is matched against the message you are +replying to, instead of the message you are +sending. send-hook is matched +against all messages, both new and +replies. +

Note

+reply-hooks are matched before +the send-hook, regardless of the +order specified in the user's configuration file.

-send2-hook is matched every time a message is changed, either -by editing it, or by using the compose menu to change its recipients -or subject. send2-hook is executed after send-hook, and -can, e.g., be used to set parameters such as the $sendmail variable depending on the message's sender -address. +send2-hook is matched every time a message is +changed, either by editing it, or by using the compose menu to change +its recipients or subject. send2-hook is executed +after send-hook, and can, e.g., be used to set +parameters such as the $sendmail +variable depending on the message's sender address.

-For each type of send-hook or reply-hook, when multiple matches -occur, commands are executed in the order they are specified in the .muttrc -(for that type of hook). +For each type of send-hook or +reply-hook, when multiple matches occur, commands are +executed in the order they are specified in the +.muttrc (for that type of hook).

-Example: send-hook mutt "set mime_forward signature=''" +Example: send-hook mutt +"set mime_forward signature=''"

Another typical use for this command is to change the values of the -$attribution, $signature and $locale -variables in order to change the language of the attributions and -signatures based upon the recipients. -

Note

+$attribution, $signature and $locale variables in order to change the +language of the attributions and signatures based upon the recipients. +

Note

send-hook's are only executed once after getting the initial list of recipients. Adding a recipient after replying or -editing the message will not cause any send-hook to be executed, -similarily if $autoedit is set -(as then the initial list of recipients is empty). Also note that my_hdr commands which +editing the message will not cause any send-hook to +be executed, similarly if $autoedit is +set (as then the initial list of recipients is empty). Also note that +my_hdr commands which modify recipient headers, or the message's subject, don't have any effect on the current message when executed from a send-hook. -

20. Change Settings Before Formatting a Message

Usage:

message-hook +

20. Change Settings Before Formatting a Message

Usage:

message-hook [!]pattern command

This command can be used to execute arbitrary configuration commands -before viewing or formatting a message based upon information about the message. -command is executed if the pattern matches the message to be -displayed. When multiple matches occur, commands are executed in the order -they are specified in the .muttrc. +before viewing or formatting a message based upon information about the +message. command is executed if the +pattern matches the message to be displayed. When +multiple matches occur, commands are executed in the order they are +specified in the .muttrc.

-See Message Matching in Hooks for -information on the exact format of pattern. +See Message Matching in Hooks for information on the exact format +of pattern.

Example:

 message-hook ~A 'set pager=builtin'
 message-hook '~f freshmeat-news' 'set pager="less \"+/^  subject: .*\""'
-

21. Choosing the Cryptographic Key of the Recipient

Usage:

crypt-hook +

21. Choosing the Cryptographic Key of the Recipient

Usage:

crypt-hook pattern keyid

-When encrypting messages with PGP/GnuPG or OpenSSL, you may want to associate a certain -key with a given e-mail address automatically, either because the -recipient's public key can't be deduced from the destination address, -or because, for some reasons, you need to override the key Mutt would -normally use. The crypt-hook command provides a -method by which you can specify the ID of the public key to be used -when encrypting messages to a certain recipient. -

-The meaning of keyid is to be taken broadly in this context: You -can either put a numerical key ID here, an e-mail address, or even -just a real name. -

22. Adding Key Sequences to the Keyboard Buffer

Usage:

push +When encrypting messages with PGP/GnuPG or OpenSSL, you may want to +associate a certain key with a given e-mail address automatically, +either because the recipient's public key can't be deduced from the +destination address, or because, for some reasons, you need to override +the key Mutt would normally use. The crypt-hook +command provides a method by which you can specify the ID of the public +key to be used when encrypting messages to a certain recipient. +

+The meaning of keyid is to be taken broadly in this +context: You can either put a numerical key ID here, an e-mail address, +or even just a real name. +

22. Adding Key Sequences to the Keyboard Buffer

Usage:

push string

-This command adds the named string to the keyboard buffer. The string may -contain control characters, key names and function names like the sequence -string in the macro command. You may use it to -automatically run a sequence of commands at startup, or when entering -certain folders. For example, Example 3.13, “Embedding push in folder-hook” -shows how to automatically collapse all threads when entering a folder. +This command adds the named string to the keyboard buffer. The string +may contain control characters, key names and function names like the +sequence string in the macro command. You +may use it to automatically run a sequence of commands at startup, or +when entering certain folders. For example, Example 3.13, “Embedding push in folder-hook” shows how to automatically collapse all +threads when entering a folder.

Example 3.13. Embedding push in folder-hook

 folder-hook . 'push <collapse-all>'
-

23. Executing Functions

Usage:

exec +


+For using functions like shown in the example, it's important to use +angle brackets (“<” and “>”) to make +Mutt recognize the input as a function name. Otherwise it will simulate +individual just keystrokes, i.e. “push +collapse-all” would be interpreted as if you had typed +“c”, followed by “o”, followed by +“l”, ..., which is not desired and may lead to very +unexpected behavior. +

+Keystrokes can be used, too, but are less portable because of +potentially changed key bindings. With default bindings, this is +equivalent to the above example: +

+folder-hook . 'push \eV'
+

+because it simulates that Esc+V was pressed (which is the default +binding of <collapse-all>). +

23. Executing Functions

Usage:

exec function [ function ...]

-This command can be used to execute any function. Functions are -listed in the function reference. -“execfunction” is equivalent to -“push <function>”. -

24. Message Scoring

Usage:

score +This command can be used to execute any function. Functions are listed +in the function reference. +“exec function” is +equivalent to “push <function>”. +

24. Message Scoring

Usage:

score pattern value @@ -964,20 +1050,25 @@ listed in the pattern ... }

-The score commands adds value to a message's score if pattern -matches it. pattern is a string in the format described in the patterns section (note: For efficiency reasons, patterns -which scan information not available in the index, such as ˜b, -˜B or ˜h, may not be used). value is a -positive or negative integer. A message's final score is the sum total of all -matching score entries. However, you may optionally prefix value with -an equal sign (“=”) to cause evaluation to stop at a particular entry if there is -a match. Negative final scores are rounded up to 0. -

-The unscore command removes score entries from the list. You must -specify the same pattern specified in the score command for it to be -removed. The pattern “*” is a special token which means to clear the list -of all score entries. -

25. Spam Detection

Usage:

spam +The score commands adds value to +a message's score if pattern matches it. +pattern is a string in the format described in the +patterns section (note: For efficiency +reasons, patterns which scan information not available in the index, +such as ~b, ~B or +~h, may not be used). value is +a positive or negative integer. A message's final score is the sum +total of all matching score entries. However, you +may optionally prefix value with an equal sign +(“=”) to cause evaluation to stop at a particular entry if +there is a match. Negative final scores are rounded up to 0. +

+The unscore command removes score entries from the +list. You must specify the same pattern specified +in the score command for it to be removed. The +pattern “*” is a special token which means to clear the +list of all score entries. +

25. Spam Detection

Usage:

spam pattern format @@ -986,39 +1077,43 @@ of all score entries. | pattern }

-Mutt has generalized support for external spam-scoring filters. -By defining your spam patterns with the spam and nospam -commands, you can limit, search, and sort your -mail based on its spam attributes, as determined by the external -filter. You also can display the spam attributes in your index -display using the %H selector in the $index_format variable. (Tip: try %?H?[%H] ? -to display spam tags only when they are defined for a given message.) +Mutt has generalized support for external spam-scoring filters. By +defining your spam patterns with the spam and +nospam commands, you can limit, +search, and sort your mail +based on its spam attributes, as determined by the external filter. You +also can display the spam attributes in your index display using the +%H selector in the $index_format variable. (Tip: try +%?H?[%H] ? to display spam tags only when they are +defined for a given message.)

Your first step is to define your external filter's spam patterns using -the spam command. pattern should be a regular expression -that matches a header in a mail message. If any message in the mailbox -matches this regular expression, it will receive a “spam tag” or -“spam attribute” (unless it also matches a nospam pattern — see -below.) The appearance of this attribute is entirely up to you, and is -governed by the format parameter. format can be any static -text, but it also can include back-references from the pattern -expression. (A regular expression “back-reference” refers to a -sub-expression contained within parentheses.) %1 is replaced with -the first back-reference in the regex, %2 with the second, etc. +the spam command. pattern should +be a regular expression that matches a header in a mail message. If any +message in the mailbox matches this regular expression, it will receive +a “spam tag” or “spam attribute” (unless it +also matches a nospam pattern — see below.) The +appearance of this attribute is entirely up to you, and is governed by +the format parameter. format +can be any static text, but it also can include back-references from the +pattern expression. (A regular expression +“back-reference” refers to a sub-expression contained +within parentheses.) %1 is replaced with the first +back-reference in the regex, %2 with the second, etc.

To match spam tags, mutt needs the corresponding header information which is always the case for local and POP folders but not for IMAP in the default configuration. Depending on the spam header to be analyzed, -$imap_headers may need -to be adjusted. +$imap_headers may need to be +adjusted.

-If you're using multiple spam filters, a message can have more than -one spam-related header. You can define spam patterns for each -filter you use. If a message matches two or more of these patterns, and -the $spam_separator variable is set to a string, then the -message's spam tag will consist of all the format strings joined -together, with the value of $spam_separator separating -them. +If you're using multiple spam filters, a message can have more than one +spam-related header. You can define spam patterns for +each filter you use. If a message matches two or more of these patterns, +and the $spam_separator variable +is set to a string, then the message's spam tag will consist of all the +format strings joined together, with the value of +$spam_separator separating them.

For example, suppose one uses DCC, SpamAssassin, and PureMessage, then the configuration might look like in Example 3.14, “Configuring spam detection”. @@ -1028,92 +1123,103 @@ spam "X-Spam-Status: Yes" "90+/SA" spam "X-PerlMX-Spam: .*Probability=([0-9]+)%" "%1/PM" set spam_separator=", "


-If then a message is received that DCC registered with “many” hits -under the “Fuz2” checksum, and that PureMessage registered with a -97% probability of being spam, that message's spam tag would read -90+/DCC-Fuz2, 97/PM. (The four characters before “=many” in a -DCC report indicate the checksum used — in this case, “Fuz2”.) -

-If the $spam_separator variable is unset, then each -spam pattern match supersedes the previous one. Instead of getting -joined format strings, you'll get only the last one to match. +If then a message is received that DCC registered with +“many” hits under the “Fuz2” checksum, and +that PureMessage registered with a 97% probability of being spam, that +message's spam tag would read 90+/DCC-Fuz2, +97/PM. (The four characters before “=many” in a +DCC report indicate the checksum used — in this case, +“Fuz2”.) +

+If the $spam_separator variable is +unset, then each spam pattern match supersedes the previous one. Instead +of getting joined format strings, you'll get only +the last one to match.

The spam tag is what will be displayed in the index when you use %H in the $index_format variable. It's also the -string that the ˜H pattern-matching expression matches against for -<search> and <limit> functions. And it's what sorting by spam -attribute will use as a sort key. +string that the ~H pattern-matching expression +matches against for <search> and +<limit> functions. And it's what sorting by +spam attribute will use as a sort key.

That's a pretty complicated example, and most people's actual environments will have only one spam filter. The simpler your configuration, the more effective Mutt can be, especially when it comes to sorting.

-Generally, when you sort by spam tag, Mutt will sort lexically — -that is, by ordering strings alphanumerically. However, if a spam tag -begins with a number, Mutt will sort numerically first, and lexically -only when two numbers are equal in value. (This is like UNIX's -sort -n.) A message with no spam attributes at all — that is, one -that didn't match any of your spam patterns — is sorted at -lowest priority. Numbers are sorted next, beginning with 0 and ranging -upward. Finally, non-numeric strings are sorted, with “a” taking lower -priority than “z”. Clearly, in general, sorting by spam tags is most -effective when you can coerce your filter to give you a raw number. But -in case you can't, Mutt can still do something useful. -

-The nospam command can be used to write exceptions to spam -patterns. If a header pattern matches something in a spam command, -but you nonetheless do not want it to receive a spam tag, you can list a -more precise pattern under a nospam command. -

-If the pattern given to nospam is exactly the same as the -pattern on an existing spam list entry, the effect will be to -remove the entry from the spam list, instead of adding an exception. -Likewise, if the pattern for a spam command matches an entry -on the nospam list, that nospam entry will be removed. If the -pattern for nospam is “*”, all entries on both lists -will be removed. This might be the default action if you use spam -and nospam in conjunction with a folder-hook. -

-You can have as many spam or nospam commands as you like. -You can even do your own primitive spam detection within Mutt — for -example, if you consider all mail from MAILER-DAEMON to be spam, -you can use a spam command like this: +Generally, when you sort by spam tag, Mutt will sort +lexically — that is, by ordering strings +alphanumerically. However, if a spam tag begins with a number, Mutt will +sort numerically first, and lexically only when two numbers are equal in +value. (This is like UNIX's sort -n.) A message with +no spam attributes at all — that is, one that didn't match +any of your spam patterns +— is sorted at lowest priority. Numbers are sorted next, beginning +with 0 and ranging upward. Finally, non-numeric strings are sorted, with +“a” taking lower priority than “z”. Clearly, +in general, sorting by spam tags is most effective when you can coerce +your filter to give you a raw number. But in case you can't, Mutt can +still do something useful. +

+The nospam command can be used to write exceptions to +spam patterns. If a header pattern matches something +in a spam command, but you nonetheless do not want it +to receive a spam tag, you can list a more precise pattern under a +nospam command. +

+If the pattern given to nospam +is exactly the same as the pattern on an existing +spam list entry, the effect will be to remove the +entry from the spam list, instead of adding an exception. Likewise, if +the pattern for a spam command +matches an entry on the nospam list, that nospam +entry will be removed. If the pattern for +nospam is “*”, all entries on +both lists will be removed. This might be the default action +if you use spam and nospam in +conjunction with a folder-hook. +

+You can have as many spam or +nospam commands as you like. You can even do your +own primitive spam detection within Mutt — for +example, if you consider all mail from MAILER-DAEMON +to be spam, you can use a spam command like this:

 spam "^From: .*MAILER-DAEMON"       "999"
-

26. Setting and Querying Variables

26.1. Variable Types

+

26. Setting and Querying Variables

26.1. Variable Types

Mutt supports these types of configuration variables:

boolean

-A boolean expression, either “yes” or “no”. +A boolean expression, either “yes” or “no”.

number

A signed integer number in the range -32768 to 32767.

string

Arbitrary text.

path

A specialized string for representing paths including support for -mailbox shortcuts (see Section 7, “Mailbox Shortcuts”) as well as tilde -(“˜”) for a user's home directory and more. +mailbox shortcuts (see Section 8, “Mailbox Shortcuts”) as well as tilde +(“~”) for a user's home directory and more.

quadoption

-Like a boolean but triggers a prompt when set to “ask-yes” -or “ask-no” with “yes” and “no” +Like a boolean but triggers a prompt when set to “ask-yes” +or “ask-no” with “yes” and “no” preselected respectively.

sort order

A specialized string allowing only particular words as values depending on the variable.

regular expression

-A regular expression, see Section 1, “Regular Expressions” for an introduction. +A regular expression, see Section 2, “Regular Expressions” for an introduction.

folder magic

Specifies the type of folder to use: mbox, -mmdf, mh -or maildir. -Currently only used to determine the type for newly created folders. +mmdf, mh or +maildir. Currently only used to determine the type +for newly created folders.

e-mail address

-An e-mail address either with or without -realname. The older “user@example.org (Joe User)” -form is supported but strongly deprecated. +An e-mail address either with or without realname. The older +“user@example.org (Joe User)” form is +supported but strongly deprecated.

user-defined

Arbitrary text, see Section 26.3, “User-Defined Variables” for details. -

26.2. Commands

+

26.2. Commands

The following commands are available to manipulate and query variables:

Usage:

set { [ no | inv ] @@ -1133,81 +1239,85 @@ The following commands are available to manipulate and query variables: [ variable ...]

-This command is used to set (and unset) configuration variables. There are four basic types of variables: -boolean, number, string and quadoption. boolean variables can be -set (true) or unset (false). number variables can be -assigned a positive integer value. -string variables consist of any number of printable characters and -must be enclosed in quotes if they contain spaces or tabs. You -may also use the escape sequences “\n” and “\t” for newline and tab, respectively. -quadoption variables are used to control whether or not to be prompted -for certain actions, or to specify a default action. A value of yes -will cause the action to be carried out automatically as if you had answered -yes to the question. Similarly, a value of no will cause the -action to be carried out as if you had answered “no.” A value of -ask-yes will cause a prompt with a default answer of “yes” and -ask-no will provide a default answer of “no.” -

-Prefixing a variable with “no” will unset it. Example: set noaskbcc. -

-For boolean variables, you may optionally prefix the variable name with -inv to toggle the value (on or off). This is useful when writing -macros. Example: set invsmart_wrap. -

-The toggle command automatically prepends the inv prefix to all -specified variables. -

-The unset command automatically prepends the no prefix to all -specified variables. -

-Using the <enter-command> function in the index menu, you can query the -value of a variable by prefixing the name of the variable with a question -mark: +This command is used to set (and unset) configuration variables. There are four +basic types of variables: boolean, number, string and quadoption. +boolean variables can be set +(true) or unset (false). +number variables can be assigned a positive integer +value. string variables consist of any number of +printable characters and must be enclosed in quotes if they contain +spaces or tabs. You may also use the escape sequences “\n” +and “\t” for newline and tab, respectively. +quadoption variables are used to control whether or +not to be prompted for certain actions, or to specify a default action. +A value of yes will cause the action to be carried +out automatically as if you had answered yes to the question. +Similarly, a value of no will cause the action to +be carried out as if you had answered “no.” A value of +ask-yes will cause a prompt with a default answer +of “yes” and ask-no will provide a +default answer of “no.” +

+Prefixing a variable with “no” will unset it. Example: +set noaskbcc. +

+For boolean variables, you may optionally prefix +the variable name with inv to toggle the value (on or +off). This is useful when writing macros. Example: +set invsmart_wrap. +

+The toggle command automatically prepends the +inv prefix to all specified variables. +

+The unset command automatically prepends the +no prefix to all specified variables. +

+Using the <enter-command> function in the +index menu, you can query the value of a variable +by prefixing the name of the variable with a question mark:

 set ?allow_8bit
 

The question mark is actually only required for boolean and quadoption variables.

-The reset command resets all given variables to the compile time -defaults (hopefully mentioned in this manual). If you use the command -set and prefix the variable with “&” this has the same -behavior as the reset command. -

-With the reset command there exists the special variable “all”, -which allows you to reset all variables to their system defaults. -

26.3. User-Defined Variables

26.3.1. Introduction

-Along with the variables listed in the -Configuration variables section, Mutt -supports user-defined variables with names starting -with my_ as in, for -example, my_cfgdir. -

-The set command either creates a -custom my_ variable or changes its -value if it does exist already. The unset and reset +The reset command resets all given variables to the +compile time defaults (hopefully mentioned in this manual). If you use +the command set and prefix the variable with +“&” this has the same behavior as the +reset command. +

+With the reset command there exists the special +variable “all”, which allows you to reset all variables to +their system defaults. +

26.3. User-Defined Variables

26.3.1. Introduction

+Along with the variables listed in the Configuration variables section, Mutt +supports user-defined variables with names starting with +my_ as in, for example, my_cfgdir. +

+The set command either creates a custom +my_ variable or changes its value if it does exist +already. The unset and reset commands remove the variable entirely.

Since user-defined variables are expanded in the same way that -environment variables are (except for -the shell-escape command and -backtick expansion), this feature can be used to make configuration -files more readable. -

26.3.2. Examples

-The following example defines and uses the variable my_cfgdir -to abbreviate the calls of the source command: +environment variables are (except for the shell-escape command and backtick +expansion), this feature can be used to make configuration files more +readable. +

26.3.2. Examples

+The following example defines and uses the variable +my_cfgdir to abbreviate the calls of the source command:

Example 3.15. Using user-defined variables for config file readability

 set my_cfgdir = $HOME/mutt/config
 
 source $my_cfgdir/hooks
 source $my_cfgdir/macros
-# more source commands...
+# more source commands...
 

A custom variable can also be used in macros to backup the current value -of another variable. In the following example, the value of the -$delete is changed temporarily -while its original value is saved as my_delete. -After the macro has executed all commands, the original value of $delete is restored. +of another variable. In the following example, the value of the $delete is changed temporarily while its +original value is saved as my_delete. After the +macro has executed all commands, the original value of $delete is restored.

Example 3.16. Using user-defined variables for backing up other config option values

 macro pager ,x '\
 <enter-command>set my_delete=$delete<enter>\
@@ -1231,81 +1341,123 @@ macro pager <PageDown> "\
 <enter-command> set pager_stop=\$my_old_pager_stop<Enter>\
 <enter-command> unset my_old_pager_stop<Enter>"
 

-Note that there is a space -between <enter-command> and -the set configuration command, preventing Mutt from -recording the macro's commands into its history. -

27. Reading Initialization Commands From Another File

Usage:

source +Note that there is a space between +<enter-command> and the set +configuration command, preventing Mutt from recording the +macro's commands into its history. +

26.4. Type Conversions

+Variables are always assigned string values which Mutt parses into its +internal representation according to the type of the variable, for +example an integer number for numeric types. For all queries (including +$-expansion) the value is converted from its internal type back into +string. As a result, any variable can be assigned any value given that +its content is valid for the target. This also counts for custom +variables which are of type string. In case of parsing errors, Mutt will +print error messages. Example 3.18, “Type conversions using variables” demonstrates type +conversions. +

Example 3.18. Type conversions using variables

+set my_lines = "5"                # value is string "5"
+set pager_index_lines = $my_lines # value is integer 5
+
+set my_sort = "date-received"     # value is string "date-received"
+set sort = "last-$my_sort"        # value is sort last-date-received
+
+set my_inc = $read_inc            # value is string "10" (default of $read_inc)
+set my_foo = $my_inc              # value is string "10"
+

+These assignments are all valid. If, however, the value of +$my_lines would have been +“five” (or something else that cannot be parsed into a +number), the assignment to +$pager_index_lines would have +produced an error message. +

+Type conversion applies to all configuration commands which take +arguments. But please note that every expanded value of a variable is +considered just a single token. A working example is: +

+set my_pattern = "~A"
+set my_number = "10"
+
+# same as: score ~A +10
+score $my_pattern +$my_number

+What does not work is: +

+set my_mx = "+mailbox1 +mailbox2"
+mailboxes $my_mx +mailbox3

+because the value of $my_mx is interpreted as a +single mailbox named “+mailbox1 +mailbox2” and not two +distinct mailboxes. +

27. Reading Initialization Commands From Another File

Usage:

source filename

-This command allows the inclusion of initialization commands -from other files. For example, I place all of my aliases in -˜/.mail_aliases so that I can make my -˜/.muttrc readable and keep my aliases private. -

-If the filename begins with a tilde (“˜”), it will be expanded to the -path of your home directory. -

-If the filename ends with a vertical bar (“|”), then filename is -considered to be an executable program from which to read input (eg. -source ˜/bin/myscript|). -

28. Removing Hooks

Usage:

unhook { +This command allows the inclusion of initialization commands from other +files. For example, I place all of my aliases in +~/.mail_aliases so that I can make my +~/.muttrc readable and keep my aliases private. +

+If the filename begins with a tilde (“~”), it will be +expanded to the path of your home directory. +

+If the filename ends with a vertical bar (“|”), then +filename is considered to be an executable program +from which to read input (e.g. source +~/bin/myscript|). +

28. Removing Hooks

Usage:

unhook { * | hook-type }

This command permits you to flush hooks you have previously defined. -You can either remove all hooks by giving the “*” character as an -argument, or you can remove all hooks of a specific type by saying +You can either remove all hooks by giving the “*” character +as an argument, or you can remove all hooks of a specific type by saying something like unhook send-hook. -

29. Format Strings

29.1. Basic usage

+

29. Format Strings

29.1. Basic usage

Format strings are a general concept you'll find in several locations -through the Mutt configuration, especially in the -$index_format, -$pager_format, -$status_format, -and other related variables. These can be very straightforward, -and it's quite possible you already know how to use them. -

-The most basic format string element is a percent symbol followed -by another character. For example, %s -represents a message's Subject: header in the $index_format variable. The -“expandos” available are documented with each format variable, but -there are general modifiers available with all formatting expandos, -too. Those are our concern here. -

-Some of the modifiers are borrowed right out of C (though you might -know them from Perl, Python, shell, or another language). These are -the [-]m.n modifiers, as in %-12.12s. As with -such programming languages, these modifiers allow you to specify the -minimum and maximum size of the resulting string, as well as its -justification. If the “-” sign follows the percent, the string will -be left-justified instead of right-justified. If there's a number -immediately following that, it's the minimum amount of space the -formatted string will occupy — if it's naturally smaller than that, it -will be padded out with spaces. If a decimal point and another number -follow, that's the maximum space allowable — the string will not be -permitted to exceed that width, no matter its natural size. Each of -these three elements is optional, so that all these are legal format -strings: %-12s, %4c, -%.15F and %-12.15L. +through the Mutt configuration, especially in the $index_format, $pager_format, $status_format, and other related +variables. These can be very straightforward, and it's quite possible +you already know how to use them. +

+The most basic format string element is a percent symbol followed by +another character. For example, %s represents a +message's Subject: header in the $index_format variable. The +“expandos” available are documented with each format +variable, but there are general modifiers available with all formatting +expandos, too. Those are our concern here. +

+Some of the modifiers are borrowed right out of C (though you might know +them from Perl, Python, shell, or another language). These are the +[-]m.n modifiers, as in +%-12.12s. As with such programming languages, these +modifiers allow you to specify the minimum and maximum size of the +resulting string, as well as its justification. If the “-” +sign follows the percent, the string will be left-justified instead of +right-justified. If there's a number immediately following that, it's +the minimum amount of space the formatted string will occupy — if +it's naturally smaller than that, it will be padded out with spaces. If +a decimal point and another number follow, that's the maximum space +allowable — the string will not be permitted to exceed that width, +no matter its natural size. Each of these three elements is optional, so +that all these are legal format strings: %-12s, +%4c, %.15F and +%-12.15L.

Mutt adds some other modifiers to format strings. If you use an equals symbol (=) as a numeric prefix (like the minus -above), it will force the string to be centered within its minimum -space range. For example, %=14y will reserve 14 -characters for the %y expansion — that's the X-Label: header, in -$index_format. If the expansion -results in a string less than 14 characters, it will be centered in a -14-character space. If the X-Label for a message were “test”, that -expansion would look like “     test     ”. +above), it will force the string to be centered within its minimum space +range. For example, %=14y will reserve 14 characters +for the %y expansion — that's the X-Label: header, in $index_format. If the expansion results in +a string less than 14 characters, it will be centered in a 14-character +space. If the X-Label for a message were “test”, that +expansion would look like +“     test     ”.

There are two very little-known modifiers that affect the way that an -expando is replaced. If there is an underline (“_”) character -between any format modifiers (as above) and the expando letter, it will -expands in all lower case. And if you use a colon (“:”), it will -replace all decimal points with underlines. -

29.2. Conditionals

+expando is replaced. If there is an underline (“_”) +character between any format modifiers (as above) and the expando +letter, it will expands in all lower case. And if you use a colon +(“:”), it will replace all decimal points with underlines. +

29.2. Conditionals

Depending on the format string variable, some of its sequences can be used to optionally print a string if their value is nonzero. For example, you may only want to see the number of flagged messages if such @@ -1315,55 +1467,50 @@ construct is used:

 %?<sequence_char>?<optional_string>?

where sequence_char is an expando, and -optional_string is the string you would like printed if -sequence_char is nonzero. -optional_string may contain other -sequences as well as normal text, but you may not nest optional -strings. +optional_string is the string you would like +printed if sequence_char is nonzero. +optional_string may contain other sequences as well +as normal text, but you may not nest optional strings.

Here is an example illustrating how to optionally print the number of -new messages in a mailbox in -$status_format: +new messages in a mailbox in $status_format:

 %?n?%n new messages.?

You can also switch between two strings using the following construct:

 %?<sequence_char>?<if_string>&<else_string>?

-If the value of sequence_char is -non-zero, if_string will be expanded, -otherwise else_string will be expanded. -

29.3. Filters

-Any format string ending in a vertical bar (“|”) will be -expanded and piped through the first word in the string, using spaces -as separator. The string returned will be used for display. -If the returned string ends in %, it will be passed through -the formatter a second time. This allows the filter to generate a -replacement format string including % expandos. -

-All % expandos in a format string are expanded before the script -is called so that: -

Example 3.18. Using external filters in format strings

+If the value of sequence_char is non-zero,
+if_string will be expanded, otherwise
+else_string will be expanded.
+

29.3. Filters

+Any format string ending in a vertical bar (“|”) will be +expanded and piped through the first word in the string, using spaces as +separator. The string returned will be used for display. If the +returned string ends in %, it will be passed through the formatter a +second time. This allows the filter to generate a replacement format +string including % expandos. +

+All % expandos in a format string are expanded before the script is +called so that: +

Example 3.19. Using external filters in format strings

 set status_format="script.sh '%r %f (%L)'|"
 

-will make Mutt expand %r, -%f and %L -before calling the script. The example also shows that arguments can be -quoted: the script will receive the expanded string between the single quotes -as the only argument. -

-A practical example is the mutt_xtitle -script installed in the samples -subdirectory of the Mutt documentation: it can be used as filter for -$status_format to set the current +will make Mutt expand %r, %f and +%L before calling the script. The example also shows +that arguments can be quoted: the script will receive the expanded +string between the single quotes as the only argument. +

+A practical example is the mutt_xtitle script +installed in the samples subdirectory of the Mutt +documentation: it can be used as filter for $status_format to set the current terminal's title, if supported. -

29.4. Padding

+

29.4. Padding

In most format strings, Mutt supports different types of padding using special %-expandos:

%|X

-When this occurs, Mutt will fill the rest of the -line with the character X. For -example, filling the rest of the line with dashes is -done by setting: +When this occurs, Mutt will fill the rest of the line with the character +X. For example, filling the rest of the line with +dashes is done by setting:

 set status_format = "%v on %h: %B: %?n?%n&no? new messages %|-"
%>X @@ -1380,13 +1527,13 @@ set status_format = "%B: %?n?%n&no? new messages %> (%v on %h)"

Normal right-justification will print everything to the left of the %>, displaying padding and whatever lies to the -right only if there's room. By contrast, “soft-fill” gives +right only if there's room. By contrast, “soft-fill” gives priority to the right-hand side, guaranteeing space to display it and showing padding only if there's still room. If necessary, soft-fill will eat text leftwards to make room for rightward text. For example, to right-justify the subject making sure as much as possible of it fits on -screen, one might use (note two spaces after %* -: the second ensures there's a space between the truncated -right-hand side and the subject): +screen, one might use (note two spaces after %* : the +second ensures there's a space between the truncated right-hand side and +the subject):

 set index_format="%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?)%*  %s"
diff --git a/doc/devel-notes.txt b/doc/devel-notes.txt index 8b7b610..31db35e 100644 --- a/doc/devel-notes.txt +++ b/doc/devel-notes.txt @@ -157,9 +157,11 @@ submission to the mutt-dev mailing list for discussion and review. In order to ease later bisecting in case of bugs and code history, changes should be grouped logically, feature by feature or bugfix by -bugfix. Escpecially a single patch fixing several problems at once +bugfix. Especially a single patch fixing several problems at once should be avoided. +Before submitting patches, please make sure the check_sec.sh script +in the top-level source directory reports no errors/warnings. A word about warnings --------------------- diff --git a/doc/gen-map-doc b/doc/gen-map-doc index 1a99cf8..ad7dd68 100644 --- a/doc/gen-map-doc +++ b/doc/gen-map-doc @@ -55,13 +55,15 @@ while () { warn "map $map undefined"; next; } + my $title = $map; + $title =~ s/(.)(.+)/\U$1\E$2/; print < $maptitle Menu $DOC{$map} - -Default $map Function Bindings +
+Default $title Menu Bindings FunctionDefault keyDescription diff --git a/doc/gettingstarted.html b/doc/gettingstarted.html index 2d022ac..d0dac07 100644 --- a/doc/gettingstarted.html +++ b/doc/gettingstarted.html @@ -1,6 +1,6 @@ -Chapter 2. Getting Started
Chapter 2. Getting Started
Prev   Next

Chapter 2. Getting Started

-This section is intended as a brief overview of how to use Mutt. There are -many other features which are described elsewhere in the manual. There -is even more information available in the Mutt FAQ and various web -pages. See the Mutt homepage for more details. -

-The keybindings described in this section are the defaults as distributed. -Your local system administrator may have altered the defaults for your site. -You can always type “?” in any menu to display the current bindings. -

-The first thing you need to do is invoke Mutt, simply by typing mutt -at the command line. There are various command-line options, see -either the Mutt man page or the reference. -

1. Core Concepts

+

Chapter 2. Getting Started

+This section is intended as a brief overview of how to use Mutt. There +are many other features which are described elsewhere in the manual. +There is even more information available in the Mutt FAQ and various web +pages. See the Mutt homepage +for more details. +

+The keybindings described in this section are the defaults as +distributed. Your local system administrator may have altered the +defaults for your site. You can always type “?” in any +menu to display the current bindings. +

+The first thing you need to do is invoke Mutt, simply by typing +mutt at the command line. There are various +command-line options, see either the Mutt man page or the reference. +

1. Core Concepts

Mutt is a text-based application which interacts with users through different menus which are mostly line-/entry-based or page-based. A -line-based menu is the so-called “index” menu (listing all messages of -the currently opened folder) or the “alias” menu (allowing you to -select recipients from a list). Examples for page-based menus are the -“pager” (showing one message at a time) or the “help” menu listing -all available key bindings. +line-based menu is the so-called “index” menu (listing all +messages of the currently opened folder) or the “alias” +menu (allowing you to select recipients from a list). Examples for +page-based menus are the “pager” (showing one message at a +time) or the “help” menu listing all available key +bindings.

The user interface consists of a context sensitive help line at the top, the menu's contents followed by a context sensitive status line and @@ -59,26 +64,26 @@ files. Mutt supports a rich config file syntax to make even complex configuration files readable and commentable.

Because Mutt allows for customizing almost all key bindings, there are -so-called “functions” which can be executed manually (using the -command line) or in macros. Macros allow the user to bind a sequence of -commands to a single key or a short key sequence instead of repeating a -sequence of actions over and over. +so-called “functions” which can be executed manually (using +the command line) or in macros. Macros allow the user to bind a sequence +of commands to a single key or a short key sequence instead of repeating +a sequence of actions over and over.

Many commands (such as saving or copying a message to another folder) can be applied to a single message or a set of messages (so-called -“tagged” messages). To help selecting messages, Mutt provides a rich -set of message patterns (such as recipients, sender, body contents, date -sent/received, etc.) which can be combined into complex expressions -using the boolean and and or -operations as well as negating. These patterns can also be used to (for -example) search for messages or to limit the index to show only matching -messages. -

-Mutt supports a “hook” concept which allows the user to execute -arbitrary configuration commands and functions in certain situations -such as entering a folder, starting a new message or replying to an -existing one. These hooks can be used to highly customize Mutt's -behaviour including managing multiple identities, customizing the +“tagged” messages). To help selecting messages, Mutt +provides a rich set of message patterns (such as recipients, sender, +body contents, date sent/received, etc.) which can be combined into +complex expressions using the boolean and and +or operations as well as negating. These patterns +can also be used to (for example) search for messages or to limit the +index to show only matching messages. +

+Mutt supports a “hook” concept which allows the user to +execute arbitrary configuration commands and functions in certain +situations such as entering a folder, starting a new message or replying +to an existing one. These hooks can be used to highly customize Mutt's +behavior including managing multiple identities, customizing the display for a folder or even implementing auto-archiving based on a per-folder basis and much more.

@@ -86,7 +91,7 @@ Besides an interactive mode, Mutt can also be used as a command-line tool only send messages. It also supports a mailx(1)-compatible interface, see Table 9.1, “Command line options” for a complete list of command-line options. -

2. Screens and Menus

2.1. Index

+

2. Screens and Menus

2.1. Index

The index is the screen that you usually see first when you start Mutt. It gives an overview over your emails in the currently opened mailbox. By default, this is your system mailbox. The information you @@ -95,10 +100,10 @@ its flags (new email, important email, email that has been forwarded or replied to, tagged email, ...), the date when email was sent, its sender, the email size, and the subject. Additionally, the index also shows thread hierarchies: when you reply to an email, and the other -person replies back, you can see the other's person email in a +person replies back, you can see the other person's email in a "sub-tree" below. This is especially useful for personal email between a group of people or when you've subscribed to mailing lists. -

2.2. Pager

+

2.2. Pager

The pager is responsible for showing the email content. On the top of the pager you have an overview over the most important email headers like the sender, the recipient, the subject, and much more @@ -114,20 +119,20 @@ To give the user a good overview, it is possible to configure Mutt to show different things in the pager with different colors. Virtually everything that can be described with a regular expression can be colored, e.g. URLs, email addresses or smileys. -

2.3. File Browser

+

2.3. File Browser

The file browser is the interface to the local or remote file system. When selecting a mailbox to open, the browser allows custom sorting of items, limiting the items shown by a regular expression and a freely adjustable format of what to display in which way. It also allows for easy navigation through the file system when selecting file(s) to attach to a message, select multiple files to attach and many more. -

2.4. Help

+

2.4. Help

The help screen is meant to offer a quick help to the user. It lists the current configuration of key bindings and their associated commands including a short description, and currently unbound functions that still need to be associated with a key binding (or alternatively, they can be called via the Mutt command prompt). -

2.5. Compose Menu

+

2.5. Compose Menu

The compose menu features a split screen containing the information which really matter before actually sending a message by mail: who gets the message as what (recipients and who gets what kind of @@ -135,14 +140,14 @@ copy). Additionally, users may set security options like deciding whether to sign, encrypt or sign and encrypt a message with/for what keys. Also, it's used to attach messages, to re-edit any attachment including the message itself. -

2.6. Alias Menu

+

2.6. Alias Menu

The alias menu is used to help users finding the recipients of messages. For users who need to contact many people, there's no need to remember addresses or names completely because it allows for searching, too. The alias mechanism and thus the alias menu also features grouping several addresses by a shorter nickname, the actual alias, so that users don't have to select each single recipient manually. -

2.7. Attachment Menu

+

2.7. Attachment Menu

As will be later discussed in detail, Mutt features a good and stable MIME implementation, that is, it supports sending and receiving messages of arbitrary MIME types. The attachment menu displays a message's @@ -150,86 +155,81 @@ structure in detail: what content parts are attached to which parent part (which gives a true tree structure), which type is of what type and what size. Single parts may saved, deleted or modified to offer great and easy access to message's internals. -

3. Moving Around in Menus

+

3. Moving Around in Menus

The most important navigation keys common to line- or entry-based menus -are shown in Table 2.1, “Most common navigation keys in entry-based menus” and in -Table 2.2, “Most common navigation keys in page-based menus” for page-based menus. -

Table 2.1. Most common navigation keys in entry-based menus

KeyFunctionDescription
j or <Down><next-entry>move to the next entry
k or <Up><previous-entry>move to the previous entry
z or <PageDn><page-down>go to the next page
Z or <PageUp><page-up>go to the previous page
= or <Home><first-entry>jump to the first entry
* or <End><last-entry>jump to the last entry
q<quit>exit the current menu
?<help>list all keybindings for the current menu

Table 2.2. Most common navigation keys in page-based menus

KeyFunctionDescription
J or <Return><next-line>scroll down one line
<Backspace><previous-line>sroll up one line
K, <Space> or <PageDn><next-page>move to the next page
- or <PageUp><previous-page>move the previous page
<Home><top>move to the top
<End><bottom>move to the bottom

4. Editing Input Fields

4.1. Introduction

-Mutt has a built-in line editor for inputting text, e.g. email -addresses or filenames. The keys used to manipulate text input are -very similar to those of Emacs. See Table 2.3, “Most common line editor keys” for a full -reference of available functions, their default key bindings, and -short descriptions. +are shown in Table 2.1, “Most common navigation keys in entry-based menus” and in Table 2.2, “Most common navigation keys in page-based menus” for page-based menus. +

Table 2.1. Most common navigation keys in entry-based menus

KeyFunctionDescription
j or <Down><next-entry>move to the next entry
k or <Up><previous-entry>move to the previous entry
z or <PageDn><page-down>go to the next page
Z or <PageUp><page-up>go to the previous page
= or <Home><first-entry>jump to the first entry
* or <End><last-entry>jump to the last entry
q<quit>exit the current menu
?<help>list all keybindings for the current menu

Table 2.2. Most common navigation keys in page-based menus

KeyFunctionDescription
J or <Return><next-line>scroll down one line
<Backspace><previous-line>scroll up one line
K, <Space> or <PageDn><next-page>move to the next page
- or <PageUp><previous-page>move the previous page
<Home><top>move to the top
<End><bottom>move to the bottom

4. Editing Input Fields

4.1. Introduction

+Mutt has a built-in line editor for inputting text, e.g. email addresses +or filenames. The keys used to manipulate text input are very similar to +those of Emacs. See Table 2.3, “Most common line editor keys” for a full +reference of available functions, their default key bindings, and short +descriptions.

Table 2.3. Most common line editor keys

KeyFunctionDescription
^A or <Home><bol>move to the start of the line
^B or <Left><backward-char>move back one char
Esc B<backward-word>move back one word
^D or <Delete><delete-char>delete the char under the cursor
^E or <End><eol>move to the end of the line
^F or <Right><forward-char>move forward one char
Esc F<forward-word>move forward one word
<Tab><complete>complete filename or alias
^T<complete-query>complete address with query
^K<kill-eol>delete to the end of the line
Esc d<kill-eow>delete to the end of the word
^W<kill-word>kill the word in front of the cursor
^U<kill-line>delete entire line
^V<quote-char>quote the next typed key
<Up><history-up>recall previous string from history
<Down><history-down>recall next string from history
<BackSpace><backspace>kill the char in front of the cursor
Esc u<upcase-word>convert word to upper case
Esc l<downcase-word>convert word to lower case
Esc c<capitalize-word>capitalize the word
^Gn/aabort
<Return>n/afinish editing

-You can remap the editor functions using the -bind command. For example, to make -the <Delete> key delete the character in front of -the cursor rather than under, you could use: +You can remap the editor functions using the bind command. For example, to +make the <Delete> key delete the character in front of the cursor +rather than under, you could use:

 bind editor <delete> backspace
-

4.2. History

+

4.2. History

Mutt maintains a history for the built-in editor. The number of items -is controlled by the $history -variable and can be made persistent using an external file specified -using $history_file. -You may cycle through them at an editor prompt by using the -<history-up> and/or -<history-down> commands. But notice that Mutt -does not remember the currently entered text, it only cycles through -history and wraps around at the end or beginning. +is controlled by the $history variable +and can be made persistent using an external file specified using $history_file. You may cycle through them +at an editor prompt by using the <history-up> +and/or <history-down> commands. But notice that +Mutt does not remember the currently entered text, it only cycles +through history and wraps around at the end or beginning.

Mutt maintains several distinct history lists, one for each of the following categories: -

  • .muttrc commands

  • addresses and aliases

  • shell commands

  • filenames

  • patterns

  • everything else

-Mutt automatically filters out consecutively repeated items from the history. It -also mimics the behavior of some shells by ignoring items starting -with a space. The latter feature can be useful in macros to not clobber -the history's valuable entries with unwanted entries. -

5. Reading Mail

+

  • .muttrc commands

  • addresses and aliases

  • shell commands

  • filenames

  • patterns

  • everything else

+Mutt automatically filters out consecutively repeated items from the +history. It also mimics the behavior of some shells by ignoring items +starting with a space. The latter feature can be useful in macros to not +clobber the history's valuable entries with unwanted entries. +

5. Reading Mail

Similar to many other mail clients, there are two modes in which mail is read in Mutt. The first is a list of messages in the mailbox, which is -called the “index” menu in Mutt. The second mode is the display of the -message contents. This is called the “pager.” +called the “index” menu in Mutt. The second mode is the +display of the message contents. This is called the +“pager.”

The next few sections describe the functions provided in each of these modes. -

5.1. The Message Index

+

5.1. The Message Index

Common keys used to navigate through and manage messages in the index are shown in Table 2.4, “Most common message index keys”. How messages are presented -in the index menu can be customized using the -$index_format variable. +in the index menu can be customized using the $index_format variable.

Table 2.4. Most common message index keys

KeyDescription
cchange to a different mailbox
Esc cchange to a folder in read-only mode
Ccopy the current message to another mailbox
Esc Cdecode a message and copy it to a folder
Esc sdecode a message and save it to a folder
Ddelete messages matching a pattern
ddelete the current message
Fmark as important
lshow messages matching a pattern
Nmark message as new
ochange the current sort method
Oreverse sort the mailbox
qsave changes and exit
ssave-message
Ttag messages matching a pattern
ttoggle the tag on a message
Esc ttoggle tag on entire message thread
Uundelete messages matching a pattern
uundelete-message
vview-attachments
xabort changes and exit
<Return>display-message
<Tab>jump to the next new or unread message
@show the author's full e-mail address
$save changes to mailbox
/search
Esc /search-reverse
^Lclear and redraw the screen
^Tuntag messages matching a pattern

In addition to who sent the message and the subject, a short summary of the disposition of each message is printed beside the message number. -Zero or more of the “flags” in Table 2.5, “Message status flags” -may appear, some of which can be turned on or off using these functions: -<set-flag> and -<clear-flag> -bound by default to “w” and “W” respectively. +Zero or more of the “flags” in Table 2.5, “Message status flags” may appear, some of which can be turned +on or off using these functions: <set-flag> and +<clear-flag> bound by default to +“w” and “W” respectively.

Furthermore, the flags in Table 2.6, “Message recipient flags” reflect -who the message is addressed to. They can be customized with the -$to_chars variable. -

Table 2.5. Message status flags

FlagDescription
Dmessage is deleted (is marked for deletion)
dmessage has attachments marked for deletion
Kcontains a PGP public key
Nmessage is new
Omessage is old
Pmessage is PGP encrypted
rmessage has been replied to
Smessage is signed, and the signature is successfully verified
smessage is signed
!message is flagged
*message is tagged

Table 2.6. Message recipient flags

FlagDescription
+message is to you and you only
Tmessage is to you, but also to or cc'ed to others
Cmessage is cc'ed to you
Fmessage is from you
Lmessage is sent to a subscribed mailing list

5.2. The Pager

-By default, Mutt uses its builtin pager to display the contents of +who the message is addressed to. They can be customized with the $to_chars variable. +

Table 2.5. Message status flags

FlagDescription
Dmessage is deleted (is marked for deletion)
dmessage has attachments marked for deletion
Kcontains a PGP public key
Nmessage is new
Omessage is old
Pmessage is PGP encrypted
rmessage has been replied to
Smessage is signed, and the signature is successfully verified
smessage is signed
!message is flagged
*message is tagged
nthread contains new messages (only if collapsed)
othread contains old messages (only if collapsed)

Table 2.6. Message recipient flags

FlagDescription
+message is to you and you only
Tmessage is to you, but also to or CC'ed to others
Cmessage is CC'ed to you
Fmessage is from you
Lmessage is sent to a subscribed mailing list

5.2. The Pager

+By default, Mutt uses its built-in pager to display the contents of messages (an external pager such as less(1) can be -configured, see $pager variable). -The pager is very similar to the Unix program less(1) +configured, see $pager variable). The +pager is very similar to the Unix program less(1) though not nearly as featureful.

Table 2.7. Most common pager keys

KeyDescription
<Return>go down one line
<Space>display the next page (or next message if at the end of a message)
-go back to the previous page
nsearch for next match
Sskip beyond quoted text
Ttoggle display of quoted text
?show keybindings
/regular expression search
Esc /backward regular expression search
\toggle highlighting of search matches
^jump to the top of the message

-In addition to key bindings in Table 2.7, “Most common pager keys”, -many of the functions from the index menu are also available in -the pager, such as <delete-message> or <copy-message> -(this is one advantage over using an external pager to view messages). +In addition to key bindings in Table 2.7, “Most common pager keys”, many of +the functions from the index menu are also available in the pager, such +as <delete-message> or +<copy-message> (this is one advantage over +using an external pager to view messages).

Also, the internal pager supports a couple other advanced features. For -one, it will accept and translate the “standard” nroff sequences for -bold and underline. These sequences are a series of either the letter, -backspace (“^H”), the letter again for bold or the letter, backspace, -“_” for denoting underline. Mutt will attempt to display these -in bold and underline respectively if your terminal supports them. If -not, you can use the bold and underline color -objects to specify a color or mono attribute for them. +one, it will accept and translate the “standard” nroff +sequences for bold and underline. These sequences are a series of either +the letter, backspace (“^H”), the letter again for bold or +the letter, backspace, “_” for denoting underline. Mutt +will attempt to display these in bold and underline respectively if your +terminal supports them. If not, you can use the bold and underline color objects to specify a +color or mono attribute for them.

Additionally, the internal pager supports the ANSI escape sequences for character attributes. Mutt translates them into the correct color and @@ -237,187 +237,181 @@ character settings. The sequences Mutt supports are:

 \e[Ps;Ps;..Ps;m
 

-where Ps can be one of the codes shown in -Table 2.8, “ANSI escape sequences”. +where Ps can be one of the codes shown in Table 2.8, “ANSI escape sequences”.

Table 2.8. ANSI escape sequences

Escape codeDescription
0All attributes off
1Bold on
4Underline on
5Blink on
7Reverse video on
3<color>Foreground color is <color> (see Table 2.9, “Color sequences”)
4<color>Background color is <color> (see Table 2.9, “Color sequences”)

Table 2.9. Color sequences

Color codeColor
0Black
1Red
2Green
3Yellow
4Blue
5Magenta
6Cyan
7White

Mutt uses these attributes for handling text/enriched -messages, and they can also be used by an external -autoview script for highlighting -purposes. -

Note

-If you change the colors for your -display, for example by changing the color associated with color2 for -your xterm, then that color will be used instead of green. -

Note

+messages, and they can also be used by an external autoview script for highlighting purposes. +

Note

+If you change the colors for your display, for example by changing the +color associated with color2 for your xterm, then that color will be +used instead of green. +

Note

Note that the search commands in the pager take regular expressions, -which are not quite the same as the more -complex patterns used by the search -command in the index. This is because patterns are used to select messages by -criteria whereas the pager already displays a selected message. -

5.3. Threaded Mode

-So-called “threads” provide a hierarchy of messages where +which are not quite the same as the more complex patterns used by the search command in the +index. This is because patterns are used to select messages by criteria +whereas the pager already displays a selected message. +

5.3. Threaded Mode

+So-called “threads” provide a hierarchy of messages where replies are linked to their parent message(s). This organizational form is extremely useful in mailing lists where different parts of the discussion diverge. Mutt displays threads as a tree structure.

-In Mutt, when a mailbox is sorted +In Mutt, when a mailbox is sorted by threads, there are a few additional functions available in the index and pager modes as shown in Table 2.10, “Most common thread mode keys”.

Table 2.10. Most common thread mode keys

KeyFunctionDescription
^D<delete-thread>delete all messages in the current thread
^U<undelete-thread>undelete all messages in the current thread
^N<next-thread>jump to the start of the next thread
^P<previous-thread>jump to the start of the previous thread
^R<read-thread>mark the current thread as read
Esc d<delete-subthread>delete all messages in the current subthread
Esc u<undelete-subthread>undelete all messages in the current subthread
Esc n<next-subthread>jump to the start of the next subthread
Esc p<previous-subthread>jump to the start of the previous subthread
Esc r<read-subthread>mark the current subthread as read
Esc t<tag-thread>toggle the tag on the current thread
Esc v<collapse-thread>toggle collapse for the current thread
Esc V<collapse-all>toggle collapse for all threads
P<parent-message>jump to parent message in thread

-Collapsing a thread displays only the first message -in the thread and hides the others. This is useful when threads -contain so many messages that you can only see a handful of threads on -the screen. See %M in $index_format. -For example, you could use “%?M?(#%03M)&(%4l)?” in $index_format to optionally -display the number of hidden messages if the thread is -collapsed. The %?<char>?<if-part>&<else-part>? -syntax is explained in detail in -format string conditionals. +Collapsing a thread displays only the first message in the thread and +hides the others. This is useful when threads contain so many messages +that you can only see a handful of threads on the screen. See %M in +$index_format. For example, you +could use “%?M?(#%03M)&(%4l)?” in $index_format to optionally display the +number of hidden messages if the thread is collapsed. The +%?<char>?<if-part>&<else-part>? +syntax is explained in detail in format string conditionals.

Technically, every reply should contain a list of its parent messages in the thread tree, but not all do. In these cases, Mutt groups them by -subject which can be controlled using the -$strict_threads variable. -

5.4. Miscellaneous Functions

-In addition, the index and pager -menus have these interesting functions: +subject which can be controlled using the $strict_threads variable. +

5.4. Miscellaneous Functions

+In addition, the index and +pager menus have these interesting functions:

-<create-alias> (default: a) +<create-alias> +(default: a)

-Creates a new alias based upon the current message (or prompts for a -new one). Once editing is complete, an alias -command is added to the file specified by -the $alias_file variable -for future use -

Note

+Creates a new alias based upon the current message (or prompts for a new +one). Once editing is complete, an alias command is added to the +file specified by the $alias_file +variable for future use +

Note

Mutt does not read the $alias_file upon startup so you must explicitly source the file.

<check-traditional-pgp> (default: Esc P)

This function will search the current message for content signed or -encrypted with PGP the “traditional” way, that is, without proper -MIME tagging. Technically, this function will temporarily change -the MIME content types of the body parts containing PGP data; this -is similar to the <edit-type> function's -effect. +encrypted with PGP the “traditional” way, that is, without +proper MIME tagging. Technically, this function will temporarily change +the MIME content types of the body parts containing PGP data; this is +similar to the <edit-type> +function's effect.

<edit> (default: e)

-This command (available in the index and pager) allows you to -edit the raw current message as it's present in the mail folder. -After you have finished editing, the changed message will be -appended to the current folder, and the original message will be -marked for deletion; if the message is unchanged it won't be replaced. +This command (available in the index and pager) allows you to edit the +raw current message as it's present in the mail folder. After you have +finished editing, the changed message will be appended to the current +folder, and the original message will be marked for deletion; if the +message is unchanged it won't be replaced.

<edit-type> (default: -^E on the attachment menu, and in the pager and index menus; -^T on the compose menu) +^E on the attachment menu, and in the pager and index menus; ^T on the +compose menu)

-This command is used to temporarily edit an attachment's content -type to fix, for instance, bogus character set parameters. When -invoked from the index or from the pager, you'll have the -opportunity to edit the top-level attachment's content type. On the -attachment menu, you can change any +This command is used to temporarily edit an attachment's content type to +fix, for instance, bogus character set parameters. When invoked from +the index or from the pager, you'll have the opportunity to edit the +top-level attachment's content type. On the attachment menu, you can change any attachment's content type. These changes are not persistent, and get lost upon changing folders.

-Note that this command is also available on the compose -menu. There, it's used to fine-tune the properties of attachments you are going -to send. +Note that this command is also available on the compose menu. There, it's used to +fine-tune the properties of attachments you are going to send.

-<enter-command> (default: “:”) +<enter-command> +(default: “:”)

This command is used to execute any command you would normally put in a -configuration file. A common use is to check the settings of variables, or -in conjunction with macros to change settings on the -fly. +configuration file. A common use is to check the settings of variables, +or in conjunction with macros to change +settings on the fly.

-<extract-keys> (default: ^K) +<extract-keys> +(default: ^K)

This command extracts PGP public keys from the current or tagged message(s) and adds them to your PGP public key ring.

-<forget-passphrase> (default: -^F) +<forget-passphrase> (default: ^F)

-This command wipes the passphrase(s) from memory. It is useful, if -you misspelled the passphrase. +This command wipes the passphrase(s) from memory. It is useful, if you +misspelled the passphrase.

-<list-reply> (default: L) +<list-reply> (default: +L)

-Reply to the current or tagged message(s) by extracting any addresses which -match the regular expressions given by the lists or subscribe -commands, but also honor any Mail-Followup-To header(s) if the -$honor_followup_to -configuration variable is set. Using this when replying to messages posted -to mailing lists helps avoid duplicate copies being sent to the author of -the message you are replying to. +Reply to the current or tagged message(s) by extracting any addresses +which match the regular expressions given by the lists or +subscribe commands, but also honor any +Mail-Followup-To header(s) if the $honor_followup_to configuration +variable is set. Using this when replying to messages posted to mailing +lists helps avoid duplicate copies being sent to the author of the +message you are replying to.

-<pipe-message> (default: |) +<pipe-message> +(default: |)

-Asks for an external Unix command and pipes the current or -tagged message(s) to it. The variables $pipe_decode, $pipe_split, -$pipe_sep and $wait_key control the exact behavior of this function. +Asks for an external Unix command and pipes the current or tagged +message(s) to it. The variables $pipe_decode, $pipe_split, $pipe_sep and $wait_key control the exact behavior of this +function.

-<resend-message> (default: Esc e) +<resend-message> +(default: Esc e)

-Mutt takes the current message as a template for a -new message. This function is best described as "recall from arbitrary -folders". It can conveniently be used to forward MIME messages while -preserving the original mail structure. Note that the amount of headers -included here depends on the value of the $weed -variable. -

-This function is also available from the attachment menu. You can use this -to easily resend a message which was included with a bounce message +Mutt takes the current message as a template for a new message. This +function is best described as "recall from arbitrary folders". It can +conveniently be used to forward MIME messages while preserving the +original mail structure. Note that the amount of headers included here +depends on the value of the $weed variable. +

+This function is also available from the attachment menu. You can use +this to easily resend a message which was included with a bounce message as a message/rfc822 body part.

-<shell-escape> (default: !) +<shell-escape> +(default: !)

-Asks for an external Unix command and executes it. The $wait_key can be used to control -whether Mutt will wait for a key to be pressed when the command returns -(presumably to let the user read the output of the command), based on -the return status of the named command. If no command is given, an -interactive shell is executed. +Asks for an external Unix command and executes it. The $wait_key can be used to control whether Mutt +will wait for a key to be pressed when the command returns (presumably +to let the user read the output of the command), based on the return +status of the named command. If no command is given, an interactive +shell is executed.

-<toggle-quoted> (default: T) +<toggle-quoted> +(default: T)

-The pager uses the $quote_regexp variable to detect quoted text when -displaying the body of the message. This function toggles the display -of the quoted material in the message. It is particularly useful when -being interested in just the response and there is a large amount of -quoted text in the way. +The pager uses the $quote_regexp +variable to detect quoted text when displaying the body of the message. +This function toggles the display of the quoted material in the message. +It is particularly useful when being interested in just the response and +there is a large amount of quoted text in the way.

-<skip-quoted> (default: S) +<skip-quoted> +(default: S)

This function will go to the next line of non-quoted text which comes after a line of quoted text in the internal pager. -

6. Sending Mail

6.1. Introduction

-The bindings shown in Table 2.11, “Most common mail sending keys” are available in the -index and pager to start a new message. +

6. Sending Mail

6.1. Introduction

+The bindings shown in Table 2.11, “Most common mail sending keys” are available in +the index and pager to start a +new message.

Table 2.11. Most common mail sending keys

KeyFunctionDescription
m<compose>compose a new message
r<reply>reply to sender
g<group-reply>reply to all recipients
L<list-reply>reply to mailing list address
f<forward>forward message
b<bounce>bounce (remail) message
Esc k<mail-key>mail a PGP public key to someone

-Bouncing a message sends the message as-is to the recipient you -specify. Forwarding a message allows you to add comments or -modify the message you are forwarding. These items are discussed -in greater detail in the next section “Forwarding -and Bouncing Mail.” -

-Mutt will then enter the compose menu and prompt you for the -recipients to place on the “To:” header field when you hit m to start a new message. Next, it will ask -you for the “Subject:” field for the message, providing a default if -you are replying to or forwarding a message. You again -have the chance to adjust recipients, subject, and security settings -right before actually sending the message. See also -$askcc, -$askbcc, -$autoedit, -$bounce, -$fast_reply, -and $include -for changing how and if Mutt asks these questions. +Bouncing a message sends the message as-is to the +recipient you specify. Forwarding a message allows +you to add comments or modify the message you are forwarding. These +items are discussed in greater detail in the next section “Forwarding and Bouncing Mail.” +

+Mutt will then enter the compose menu and prompt +you for the recipients to place on the “To:” header field +when you hit m to start a new message. Next, it will +ask you for the “Subject:” field for the message, providing +a default if you are replying to or forwarding a message. You again have +the chance to adjust recipients, subject, and security settings right +before actually sending the message. See also $askcc, $askbcc, +$autoedit, $bounce, $fast_reply, and $include for changing how and if Mutt asks +these questions.

When replying, Mutt fills these fields with proper values depending on the reply type. The types of replying supported are: @@ -432,149 +426,160 @@ configuration or auto-detected. See $editor on the message body. If the $edit_headers variable is -set, the headers will be at the top of the message in your editor. Any -messages you are replying to will be added in sort order to the message, -with appropriate $attribution, -$indent_string and -$post_indent_string. -When forwarding a message, if the $mime_forward variable is -unset, a copy of the forwarded message will be included. If you have -specified a $signature, it will -be appended to the message. +will then automatically start your $editor +on the message body. If the $edit_headers variable is set, the headers +will be at the top of the message in your editor. Any messages you are +replying to will be added in sort order to the message, with appropriate +$attribution, $indent_string and $post_indent_string. When +forwarding a message, if the $mime_forward variable is unset, a copy of +the forwarded message will be included. If you have specified a $signature, it will be appended to the +message.

Once you have finished editing the body of your mail message, you are -returned to the compose menu providing the functions -shown in Table 2.12, “Most common compose menu keys” to modify, send or postpone the -message. -

Table 2.12. Most common compose menu keys

KeyFunctionDescription
a<attach-file>attach a file
A<attach-message>attach message(s) to the message
Esc k<attach-key>attach a PGP public key
d<edit-description>edit description on attachment
D<detach-file>detach a file
t<edit-to>edit the To field
Esc f<edit-from>edit the From field
r<edit-reply-to>edit the Reply-To field
c<edit-cc>edit the Cc field
b<edit-bcc>edit the Bcc field
y<send-message>send the message
s<edit-subject>edit the Subject
S<smime-menu>select S/MIME options
f<edit-fcc>specify an “Fcc” mailbox
p<pgp-menu>select PGP options
P<postpone-message>postpone this message until later
q<quit>quit (abort) sending the message
w<write-fcc>write the message to a folder
i<ispell>check spelling (if available on your system)
^F<forget-passphrase>wipe passphrase(s) from memory

-The compose menu is also used to edit the attachments for a message which can be either files -or other messages. The <attach-message> function to will prompt you for a folder to -attach messages from. You can now tag messages in that folder and they -will be attached to the message you are sending. -

Note

-Note that certain -operations like composing a new mail, replying, forwarding, etc. are -not permitted when you are in that folder. The %r in -$status_format will change to -a “A” to indicate that you are in attach-message mode. -

6.2. Editing the Message Header

-When editing the header because of $edit_headers -being set, there are a several pseudo headers available which -will not be included in sent messages but trigger special Mutt behavior. -

6.2.1. Fcc: Pseudo Header

+returned to the compose menu providing the +functions shown in Table 2.12, “Most common compose menu keys” to modify, send or +postpone the message. +

Table 2.12. Most common compose menu keys

KeyFunctionDescription
a<attach-file>attach a file
A<attach-message>attach message(s) to the message
Esc k<attach-key>attach a PGP public key
d<edit-description>edit description on attachment
D<detach-file>detach a file
t<edit-to>edit the To field
Esc f<edit-from>edit the From field
r<edit-reply-to>edit the Reply-To field
c<edit-cc>edit the Cc field
b<edit-bcc>edit the Bcc field
y<send-message>send the message
s<edit-subject>edit the Subject
S<smime-menu>select S/MIME options
f<edit-fcc>specify an “Fcc” mailbox
p<pgp-menu>select PGP options
P<postpone-message>postpone this message until later
q<quit>quit (abort) sending the message
w<write-fcc>write the message to a folder
i<ispell>check spelling (if available on your system)
^F<forget-passphrase>wipe passphrase(s) from memory

+The compose menu is also used to edit the attachments for a message +which can be either files or other messages. The +<attach-message> function to will prompt you +for a folder to attach messages from. You can now tag messages in that +folder and they will be attached to the message you are sending. +

Note

+Note that certain operations like composing a new mail, replying, +forwarding, etc. are not permitted when you are in that folder. The %r +in $status_format will change to a +“A” to indicate that you are in attach-message mode. +

6.2. Editing the Message Header

+When editing the header because of $edit_headers being set, there are a +several pseudo headers available which will not be included in sent +messages but trigger special Mutt behavior. +

6.2.1. Fcc: Pseudo Header

If you specify

Fcc: filename

-as a header, Mutt will pick up filename -just as if you had used the <edit-fcc> function in the compose menu. -It can later be changed from the compose menu. -

6.2.2. Attach: Pseudo Header

+as a header, Mutt will pick up filename just as if +you had used the <edit-fcc> function in the +compose menu. It can later be changed from the +compose menu. +

6.2.2. Attach: Pseudo Header

You can also attach files to your message by specifying

Attach: filename [ description ]

-where filename is the file to attach and description is an -optional string to use as the description of the attached file. Spaces -in filenames have to be escaped using backslash (“\”). -The file can be removed as well as more added from the compose menu. -

6.2.3. Pgp: Pseudo Header

+where filename is the file to attach and +description is an optional string to use as the +description of the attached file. Spaces in filenames have to be escaped +using backslash (“\”). The file can be removed as well as +more added from the compose menu. +

6.2.3. Pgp: Pseudo Header

If you want to use PGP, you can specify

Pgp: [ E | S | S<id> ]

-“E” selects encryption, “S” selects signing and -“S<id>” selects signing with the given key, setting -$pgp_sign_as -permanently. The selection can later be changed in the compose menu. -

6.2.4. In-Reply-To: Header

-When replying to messages, the In-Reply-To: header contains the -Message-Id of the message(s) you reply to. If you remove or modify its value, Mutt will not generate a -References: field, which allows you to create a new message thread, for example -to create a new message to a mailing list without having to enter the mailing list's address. -

6.3. Sending Cryptographically Signed/Encrypted Messages

-If you have told Mutt to PGP or S/MIME encrypt a message, it will guide you -through a key selection process when you try to send the message. -Mutt will not ask you any questions about keys which have a -certified user ID matching one of the message recipients' mail -addresses. However, there may be situations in which there are -several keys, weakly certified user ID fields, or where no matching -keys can be found. +“E” selects encryption, “S” selects signing +and “S<id>” selects signing with the given key, +setting $pgp_sign_as permanently. The +selection can later be changed in the compose menu. +

6.2.4. In-Reply-To: Header

+When replying to messages, the In-Reply-To: header +contains the Message-Id of the message(s) you reply to. If you remove or +modify its value, Mutt will not generate a +References: field, which allows you to create a new +message thread, for example to create a new message to a mailing list +without having to enter the mailing list's address. +

+If you intend to start a new thread by replying, please make really sure +you remove the In-Reply-To: header in your +editor. Otherwise, though you'll produce a technically valid reply, some +netiquette guardians will be annoyed by this so-called “thread +hijacking”. +

6.3. Sending Cryptographically Signed/Encrypted Messages

+If you have told Mutt to PGP or S/MIME encrypt a message, it will guide +you through a key selection process when you try to send the message. +Mutt will not ask you any questions about keys which have a certified +user ID matching one of the message recipients' mail addresses. +However, there may be situations in which there are several keys, weakly +certified user ID fields, or where no matching keys can be found.

In these cases, you are dropped into a menu with a list of keys from -which you can select one. When you quit this menu, or Mutt can't -find any matching keys, you are prompted for a user ID. You can, as -usually, abort this prompt using ^G. When you do so, Mutt will -return to the compose screen. +which you can select one. When you quit this menu, or Mutt can't find +any matching keys, you are prompted for a user ID. You can, as usually, +abort this prompt using ^G. When you do so, Mutt +will return to the compose screen.

-Once you have successfully finished the key selection, the message -will be encrypted using the selected public keys when sent out. +Once you have successfully finished the key selection, the message will +be encrypted using the selected public keys when sent out.

-Most fields of the entries in the key selection menu (see also $pgp_entry_format) -have obvious meanings. But some explanations on the capabilities, flags, -and validity fields are in order. +Most fields of the entries in the key selection menu (see also $pgp_entry_format) have obvious +meanings. But some explanations on the capabilities, flags, and +validity fields are in order.

-The flags sequence (“%f”) will expand to one of the flags in -Table 2.13, “PGP key menu flags”. +The flags sequence (“%f”) will expand to one of the flags +in Table 2.13, “PGP key menu flags”.

Table 2.13. PGP key menu flags

FlagDescription
RThe key has been revoked and can't be used.
XThe key is expired and can't be used.
dYou have marked the key as disabled.
cThere are unknown critical self-signature packets.

-The capabilities field (“%c”) expands to a two-character sequence -representing a key's capabilities. The first character gives -the key's encryption capabilities: A minus sign (“-”) means -that the key cannot be used for encryption. A dot (“.”) means that -it's marked as a signature key in one of the user IDs, but may -also be used for encryption. The letter “e” indicates that -this key can be used for encryption. +The capabilities field (“%c”) expands to a two-character +sequence representing a key's capabilities. The first character gives +the key's encryption capabilities: A minus sign (“-”) means +that the key cannot be used for encryption. A dot (“.”) +means that it's marked as a signature key in one of the user IDs, but +may also be used for encryption. The letter “e” indicates +that this key can be used for encryption.

The second character indicates the key's signing capabilities. Once -again, a “-” implies “not for signing”, “.” implies -that the key is marked as an encryption key in one of the user-ids, and -“s” denotes a key which can be used for signing. -

-Finally, the validity field (“%t”) indicates how well-certified a user-id -is. A question mark (“?”) indicates undefined validity, a minus -character (“-”) marks an untrusted association, a space character -means a partially trusted association, and a plus character (“+”) -indicates complete validity. -

6.4. Sending Format=Flowed Messages

6.4.1. Concept

-format=flowed-style messages (or f=f -for short) are text/plain messages that consist of paragraphs which a receiver's -mail client may reformat to its own needs which mostly means to -customize line lengths regardless of what the sender sent. Technically this is -achieved by letting lines of a “flowable” paragraph end in spaces +again, a “-” implies “not for signing”, +“.” implies that the key is marked as an encryption key in +one of the user-ids, and “s” denotes a key which can be +used for signing. +

+Finally, the validity field (“%t”) indicates how +well-certified a user-id is. A question mark (“?”) +indicates undefined validity, a minus character (“-”) marks +an untrusted association, a space character means a partially trusted +association, and a plus character (“+”) indicates complete +validity. +

6.4. Sending Format=Flowed Messages

6.4.1. Concept

+format=flowed-style messages (or +f=f for short) are text/plain +messages that consist of paragraphs which a receiver's mail client may +reformat to its own needs which mostly means to customize line lengths +regardless of what the sender sent. Technically this is achieved by +letting lines of a “flowable” paragraph end in spaces except for the last line.

While for text-mode clients like Mutt it's the best way to assume only a standard 80x25 character cell terminal, it may be desired to let the receiver decide completely how to view a message. -

6.4.2. Mutt Support

+

6.4.2. Mutt Support

Mutt only supports setting the required format=flowed -MIME parameter on outgoing messages if the $text_flowed -variable is set, specifically it does not add the -trailing spaces. +MIME parameter on outgoing messages if the $text_flowed variable is set, specifically +it does not add the trailing spaces.

-After editing the initial message text and before entering -the compose menu, Mutt properly space-stuffes the message. +After editing the initial message text and before entering the compose +menu, Mutt properly space-stuffs the message. Space-stuffing is required by RfC3676 defining format=flowed and means to prepend a space to: -

  • all lines starting with a space

  • lines starting with the word “From” -followed by space

  • all lines starting with “>” which -is not intended to be a quote character

Note

-Mutt only supports space-stuffing -for the first two types of lines but not for the third: It is impossible to -safely detect whether a leading > character starts a -quote or not. Furthermore, Mutt only applies space-stuffing -once after the initial edit is finished. +

  • all lines starting with a space

  • lines starting with the word +“From” followed by +space

  • all lines starting with +“>” which is not intended to be a +quote character

Note

+Mutt only supports space-stuffing for the first two types of lines but +not for the third: It is impossible to safely detect whether a leading +> character starts a quote or not. Furthermore, +Mutt only applies space-stuffing once after the +initial edit is finished.

-All leading spaces are to be removed by receiving clients to restore -the original message prior to further processing. -

6.4.3. Editor Considerations

-As Mutt provides no additional features to compose f=f -messages, it's completely up to the user and his editor to produce -proper messages. Please consider your editor's documentation if you -intend to send f=f messages. +All leading spaces are to be removed by receiving clients to restore the +original message prior to further processing. +

6.4.3. Editor Considerations

+As Mutt provides no additional features to compose +f=f messages, it's completely up to the user and his +editor to produce proper messages. Please consider your editor's +documentation if you intend to send f=f messages.

Please note that when editing messages from the compose menu several times before really sending a mail, it's up to the user to ensure that @@ -584,48 +589,51 @@ For example, vim provides the formatoptions setting to assist in creating f=f messages, see :help fo-table for details. -

7. Forwarding and Bouncing Mail

+

7. Forwarding and Bouncing Mail

Bouncing and forwarding let you send an existing message to recipients that you specify. Bouncing a message sends a verbatim copy of a message to alternative addresses as if they were the message's original -recipients specified in the Bcc header. -Forwarding a message, on the other hand, allows you to modify the message -before it is resent (for example, by adding your own comments). Bouncing -is done using the <bounce> function and forwarding -using the <forward> function bound to “b” and “f” -respectively. +recipients specified in the Bcc header. Forwarding a message, on the +other hand, allows you to modify the message before it is resent (for +example, by adding your own comments). Bouncing is done using the +<bounce> function and forwarding using the +<forward> function bound to “b” +and “f” respectively.

Forwarding can be done by including the original message in the new -message's body (surrounded by indicating lines) or including it as a MIME -attachment, depending on the value of the $mime_forward variable. Decoding of attachments, -like in the pager, can be controlled by the $forward_decode and $mime_forward_decode variables, +message's body (surrounded by indicating lines) or including it as a +MIME attachment, depending on the value of the $mime_forward variable. Decoding of +attachments, like in the pager, can be controlled by the $forward_decode and $mime_forward_decode variables, respectively. The desired forwarding format may depend on the content, -therefore $mime_forward is a quadoption which, for -example, can be set to “ask-no”. +therefore $mime_forward is a +quadoption which, for example, can be set to “ask-no”.

The inclusion of headers is controlled by the current setting of the -$weed variable, unless $mime_forward is set. +$weed variable, unless $mime_forward is set.

Editing the message to forward follows the same procedure as sending or replying to a message does. -

8. Postponing Mail

+

8. Postponing Mail

At times it is desirable to delay sending a message that you have -already begun to compose. When the <postpone-message> function is -used in the compose menu, the body of your message and attachments -are stored in the mailbox specified by the $postponed variable. This means that you can recall the -message even if you exit Mutt and then restart it at a later time. -

-Once a message is postponed, there are several ways to resume it. From the -command line you can use the “-p” option, or if you compose a new -message from the index or pager you will be prompted if postponed -messages exist. If multiple messages are currently postponed, the -postponed menu will pop up and you can select which message you would -like to resume. -

Note

-If you postpone a reply to a message, the reply setting of -the message is only updated when you actually finish the message and -send it. Also, you must be in the same folder with the message you -replied to for the status of the message to be updated. +already begun to compose. When the +<postpone-message> function is used in the +compose menu, the body of your message and +attachments are stored in the mailbox specified by the $postponed variable. This means that you can +recall the message even if you exit Mutt and then restart it at a later +time. +

+Once a message is postponed, there are several ways to resume it. From +the command line you can use the “-p” option, or if you +compose a new message from the index or +pager you will be prompted if postponed messages +exist. If multiple messages are currently postponed, the +postponed menu will pop up and you can select which +message you would like to resume. +

Note

+If you postpone a reply to a message, the reply setting of the message +is only updated when you actually finish the message and send it. Also, +you must be in the same folder with the message you replied to for the +status of the message to be updated.

-See also the $postpone quad-option. +See also the $postpone quad-option.

diff --git a/doc/index.html b/doc/index.html index 44423b7..8a1f6a2 100644 --- a/doc/index.html +++ b/doc/index.html @@ -1,6 +1,6 @@ -The Mutt E-Mail Client

The Mutt E-Mail Client

Michael Elkins

version 1.5.20 (2009-06-14)

Abstract

-“All mail clients suck. This one just sucks less.” — me, circa 1995 -


Table of Contents

1. Introduction
1. Mutt Home Page
2. Mailing Lists
3. Getting Mutt
4. Mutt Online Resources
5. Contributing to Mutt
6. Typograhical Conventions
7. Copyright
2. Getting Started
1. Core Concepts
2. Screens and Menus
2.1. Index
2.2. Pager
2.3. File Browser
2.4. Help
2.5. Compose Menu
2.6. Alias Menu
2.7. Attachment Menu
3. Moving Around in Menus
4. Editing Input Fields
4.1. Introduction
4.2. History
5. Reading Mail
5.1. The Message Index
5.2. The Pager
5.3. Threaded Mode
5.4. Miscellaneous Functions
6. Sending Mail
6.1. Introduction
6.2. Editing the Message Header
6.3. Sending Cryptographically Signed/Encrypted Messages
6.4. Sending Format=Flowed Messages
7. Forwarding and Bouncing Mail
8. Postponing Mail
3. Configuration
1. Location of Initialization Files
2. Syntax of Initialization Files
3. Address Groups
4. Defining/Using Aliases
5. Changing the Default Key Bindings
6. Defining Aliases for Character Sets
7. Setting Variables Based Upon Mailbox
8. Keyboard Macros
9. Using Color and Mono Video Attributes
10. Message Header Display
10.1. Selecting Headers
10.2. Ordering Displayed Headers
11. Alternative Addresses
12. Mailing Lists
13. Using Multiple Spool Mailboxes
14. Monitoring Incoming Mail
15. User-Defined Headers
16. Specify Default Save Mailbox
17. Specify Default Fcc: Mailbox When Composing
18. Specify Default Save Filename and Default Fcc: Mailbox at Once
19. Change Settings Based Upon Message Recipients
20. Change Settings Before Formatting a Message
21. Choosing the Cryptographic Key of the Recipient
22. Adding Key Sequences to the Keyboard Buffer
23. Executing Functions
24. Message Scoring
25. Spam Detection
26. Setting and Querying Variables
26.1. Variable Types
26.2. Commands
26.3. User-Defined Variables
27. Reading Initialization Commands From Another File
28. Removing Hooks
29. Format Strings
29.1. Basic usage
29.2. Conditionals
29.3. Filters
29.4. Padding
4. Advanced Usage
1. Regular Expressions
2. Patterns: Searching, Limiting and Tagging
2.1. Pattern Modifier
2.2. Simple Searches
2.3. Nesting and Boolean Operators
2.4. Searching by Date
3. Using Tags
4. Using Hooks
4.1. Message Matching in Hooks
5. External Address Queries
6. Mailbox Formats
7. Mailbox Shortcuts
8. Handling Mailing Lists
9. Handling multiple folders
10. Editing Threads
10.1. Linking Threads
10.2. Breaking Threads
11. Delivery Status Notification (DSN) Support
12. Start a WWW Browser on URLs
13. Miscellany
5. Mutt's MIME Support
1. Using MIME in Mutt
1.1. Viewing MIME Messages in the Pager
1.2. The Attachment Menu
1.3. The Compose Menu
2. MIME Type Configuration with mime.types
3. MIME Viewer Configuration with Mailcap
3.1. The Basics of the Mailcap File
3.2. Secure Use of Mailcap
3.3. Advanced Mailcap Usage
3.4. Example Mailcap Files
4. MIME Autoview
5. MIME Multipart/Alternative
6. Attachment Searching and Counting
7. MIME Lookup
6. Optional Features
1. General Notes
1.1. Enabling/Disabling Features
1.2. URL Syntax
2. SSL/TLS Support
3. POP3 Support
4. IMAP Support
4.1. The IMAP Folder Browser
4.2. Authentication
5. SMTP Support
6. Managing Multiple Accounts
7. Local Caching
7.1. Header Caching
7.2. Body Caching
7.3. Maintenance
8. Exact Address Generation
9. Sending Anonymous Messages via Mixmaster
7. Security Considerations
1. Passwords
2. Temporary Files
3. Information Leaks
3.1. Message-Id: headers
3.2. mailto:-style Links
4. External Applications
8. Performance Tuning
1. Reading and Writing Mailboxes
2. Reading Messages from Remote Folders
3. Searching and Limiting
9. Reference
1. Command-Line Options
2. Configuration Commands
3. Configuration Variables
3.1. abort_nosubject
3.2. abort_unmodified
3.3. alias_file
3.4. alias_format
3.5. allow_8bit
3.6. allow_ansi
3.7. arrow_cursor
3.8. ascii_chars
3.9. askbcc
3.10. askcc
3.11. assumed_charset
3.12. attach_charset
3.13. attach_format
3.14. attach_sep
3.15. attach_split
3.16. attribution
3.17. auto_tag
3.18. autoedit
3.19. beep
3.20. beep_new
3.21. bounce
3.22. bounce_delivered
3.23. braille_friendly
3.24. certificate_file
3.25. charset
3.26. check_mbox_size
3.27. check_new
3.28. collapse_unread
3.29. compose_format
3.30. config_charset
3.31. confirmappend
3.32. confirmcreate
3.33. connect_timeout
3.34. content_type
3.35. copy
3.36. crypt_autoencrypt
3.37. crypt_autopgp
3.38. crypt_autosign
3.39. crypt_autosmime
3.40. crypt_replyencrypt
3.41. crypt_replysign
3.42. crypt_replysignencrypted
3.43. crypt_timestamp
3.44. crypt_use_gpgme
3.45. crypt_use_pka
3.46. crypt_verify_sig
3.47. date_format
3.48. default_hook
3.49. delete
3.50. delete_untag
3.51. digest_collapse
3.52. display_filter
3.53. dotlock_program
3.54. dsn_notify
3.55. dsn_return
3.56. duplicate_threads
3.57. edit_headers
3.58. editor
3.59. encode_from
3.60. entropy_file
3.61. envelope_from_address
3.62. escape
3.63. fast_reply
3.64. fcc_attach
3.65. fcc_clear
3.66. folder
3.67. folder_format
3.68. followup_to
3.69. force_name
3.70. forward_decode
3.71. forward_decrypt
3.72. forward_edit
3.73. forward_format
3.74. forward_quote
3.75. from
3.76. gecos_mask
3.77. hdrs
3.78. header
3.79. header_cache
3.80. header_cache_compress
3.81. header_cache_pagesize
3.82. help
3.83. hidden_host
3.84. hide_limited
3.85. hide_missing
3.86. hide_thread_subject
3.87. hide_top_limited
3.88. hide_top_missing
3.89. history
3.90. history_file
3.91. honor_disposition
3.92. honor_followup_to
3.93. hostname
3.94. ignore_linear_white_space
3.95. ignore_list_reply_to
3.96. imap_authenticators
3.97. imap_check_subscribed
3.98. imap_delim_chars
3.99. imap_headers
3.100. imap_idle
3.101. imap_keepalive
3.102. imap_list_subscribed
3.103. imap_login
3.104. imap_pass
3.105. imap_passive
3.106. imap_peek
3.107. imap_pipeline_depth
3.108. imap_servernoise
3.109. imap_user
3.110. implicit_autoview
3.111. include
3.112. include_onlyfirst
3.113. indent_string
3.114. index_format
3.115. ispell
3.116. keep_flagged
3.117. locale
3.118. mail_check
3.119. mailcap_path
3.120. mailcap_sanitize
3.121. maildir_header_cache_verify
3.122. maildir_trash
3.123. mark_old
3.124. markers
3.125. mask
3.126. mbox
3.127. mbox_type
3.128. menu_context
3.129. menu_move_off
3.130. menu_scroll
3.131. message_cache_clean
3.132. message_cachedir
3.133. message_format
3.134. meta_key
3.135. metoo
3.136. mh_purge
3.137. mh_seq_flagged
3.138. mh_seq_replied
3.139. mh_seq_unseen
3.140. mime_forward
3.141. mime_forward_decode
3.142. mime_forward_rest
3.143. mix_entry_format
3.144. mixmaster
3.145. move
3.146. narrow_tree
3.147. net_inc
3.148. pager
3.149. pager_context
3.150. pager_format
3.151. pager_index_lines
3.152. pager_stop
3.153. pgp_auto_decode
3.154. pgp_autoinline
3.155. pgp_check_exit
3.156. pgp_clearsign_command
3.157. pgp_decode_command
3.158. pgp_decrypt_command
3.159. pgp_encrypt_only_command
3.160. pgp_encrypt_sign_command
3.161. pgp_entry_format
3.162. pgp_export_command
3.163. pgp_getkeys_command
3.164. pgp_good_sign
3.165. pgp_ignore_subkeys
3.166. pgp_import_command
3.167. pgp_list_pubring_command
3.168. pgp_list_secring_command
3.169. pgp_long_ids
3.170. pgp_mime_auto
3.171. pgp_replyinline
3.172. pgp_retainable_sigs
3.173. pgp_show_unusable
3.174. pgp_sign_as
3.175. pgp_sign_command
3.176. pgp_sort_keys
3.177. pgp_strict_enc
3.178. pgp_timeout
3.179. pgp_use_gpg_agent
3.180. pgp_verify_command
3.181. pgp_verify_key_command
3.182. pipe_decode
3.183. pipe_sep
3.184. pipe_split
3.185. pop_auth_try_all
3.186. pop_authenticators
3.187. pop_checkinterval
3.188. pop_delete
3.189. pop_host
3.190. pop_last
3.191. pop_pass
3.192. pop_reconnect
3.193. pop_user
3.194. post_indent_string
3.195. postpone
3.196. postponed
3.197. preconnect
3.198. print
3.199. print_command
3.200. print_decode
3.201. print_split
3.202. prompt_after
3.203. query_command
3.204. query_format
3.205. quit
3.206. quote_regexp
3.207. read_inc
3.208. read_only
3.209. realname
3.210. recall
3.211. record
3.212. reply_regexp
3.213. reply_self
3.214. reply_to
3.215. resolve
3.216. reverse_alias
3.217. reverse_name
3.218. reverse_realname
3.219. rfc2047_parameters
3.220. save_address
3.221. save_empty
3.222. save_history
3.223. save_name
3.224. score
3.225. score_threshold_delete
3.226. score_threshold_flag
3.227. score_threshold_read
3.228. search_context
3.229. send_charset
3.230. sendmail
3.231. sendmail_wait
3.232. shell
3.233. sig_dashes
3.234. sig_on_top
3.235. signature
3.236. simple_search
3.237. sleep_time
3.238. smart_wrap
3.239. smileys
3.240. smime_ask_cert_label
3.241. smime_ca_location
3.242. smime_certificates
3.243. smime_decrypt_command
3.244. smime_decrypt_use_default_key
3.245. smime_default_key
3.246. smime_encrypt_command
3.247. smime_encrypt_with
3.248. smime_get_cert_command
3.249. smime_get_cert_email_command
3.250. smime_get_signer_cert_command
3.251. smime_import_cert_command
3.252. smime_is_default
3.253. smime_keys
3.254. smime_pk7out_command
3.255. smime_sign_command
3.256. smime_sign_opaque_command
3.257. smime_timeout
3.258. smime_verify_command
3.259. smime_verify_opaque_command
3.260. smtp_authenticators
3.261. smtp_pass
3.262. smtp_url
3.263. sort
3.264. sort_alias
3.265. sort_aux
3.266. sort_browser
3.267. sort_re
3.268. spam_separator
3.269. spoolfile
3.270. ssl_ca_certificates_file
3.271. ssl_client_cert
3.272. ssl_force_tls
3.273. ssl_min_dh_prime_bits
3.274. ssl_starttls
3.275. ssl_use_sslv2
3.276. ssl_use_sslv3
3.277. ssl_use_tlsv1
3.278. ssl_usesystemcerts
3.279. ssl_verify_dates
3.280. ssl_verify_host
3.281. status_chars
3.282. status_format
3.283. status_on_top
3.284. strict_threads
3.285. suspend
3.286. text_flowed
3.287. thorough_search
3.288. thread_received
3.289. tilde
3.290. time_inc
3.291. timeout
3.292. tmpdir
3.293. to_chars
3.294. tunnel
3.295. uncollapse_jump
3.296. use_8bitmime
3.297. use_domain
3.298. use_envelope_from
3.299. use_from
3.300. use_idn
3.301. use_ipv6
3.302. user_agent
3.303. visual
3.304. wait_key
3.305. weed
3.306. wrap
3.307. wrap_search
3.308. wrapmargin
3.309. write_bcc
3.310. write_inc
4. Functions
4.1. Generic Menu
4.2. Index Menu
4.3. Pager Menu
4.4. Alias Menu
4.5. Query Menu
4.6. Attach Menu
4.7. Compose Menu
4.8. Postpone Menu
4.9. Browser Menu
4.10. Pgp Menu
4.11. Smime Menu
4.12. Mix Menu
4.13. Editor Menu
10. Miscellany
1. Acknowledgements
2. About This Document
+

The Mutt E-Mail Client

Michael Elkins

version 1.5.21 (2010-09-15)

Abstract

+“All mail clients suck. This one just sucks less.” — +me, circa 1995 +


Table of Contents

1. Introduction
1. Mutt Home Page
2. Mailing Lists
3. Getting Mutt
4. Mutt Online Resources
5. Contributing to Mutt
6. Typographical Conventions
7. Copyright
2. Getting Started
1. Core Concepts
2. Screens and Menus
2.1. Index
2.2. Pager
2.3. File Browser
2.4. Help
2.5. Compose Menu
2.6. Alias Menu
2.7. Attachment Menu
3. Moving Around in Menus
4. Editing Input Fields
4.1. Introduction
4.2. History
5. Reading Mail
5.1. The Message Index
5.2. The Pager
5.3. Threaded Mode
5.4. Miscellaneous Functions
6. Sending Mail
6.1. Introduction
6.2. Editing the Message Header
6.3. Sending Cryptographically Signed/Encrypted Messages
6.4. Sending Format=Flowed Messages
7. Forwarding and Bouncing Mail
8. Postponing Mail
3. Configuration
1. Location of Initialization Files
2. Syntax of Initialization Files
3. Address Groups
4. Defining/Using Aliases
5. Changing the Default Key Bindings
6. Defining Aliases for Character Sets
7. Setting Variables Based Upon Mailbox
8. Keyboard Macros
9. Using Color and Mono Video Attributes
10. Message Header Display
10.1. Header Display
10.2. Selecting Headers
10.3. Ordering Displayed Headers
11. Alternative Addresses
12. Mailing Lists
13. Using Multiple Spool Mailboxes
14. Monitoring Incoming Mail
15. User-Defined Headers
16. Specify Default Save Mailbox
17. Specify Default Fcc: Mailbox When Composing
18. Specify Default Save Filename and Default Fcc: Mailbox at Once
19. Change Settings Based Upon Message Recipients
20. Change Settings Before Formatting a Message
21. Choosing the Cryptographic Key of the Recipient
22. Adding Key Sequences to the Keyboard Buffer
23. Executing Functions
24. Message Scoring
25. Spam Detection
26. Setting and Querying Variables
26.1. Variable Types
26.2. Commands
26.3. User-Defined Variables
26.4. Type Conversions
27. Reading Initialization Commands From Another File
28. Removing Hooks
29. Format Strings
29.1. Basic usage
29.2. Conditionals
29.3. Filters
29.4. Padding
4. Advanced Usage
1. Character Set Handling
2. Regular Expressions
3. Patterns: Searching, Limiting and Tagging
3.1. Pattern Modifier
3.2. Simple Searches
3.3. Nesting and Boolean Operators
3.4. Searching by Date
4. Using Tags
5. Using Hooks
5.1. Message Matching in Hooks
6. External Address Queries
7. Mailbox Formats
8. Mailbox Shortcuts
9. Handling Mailing Lists
10. New Mail Detection
10.1. How New Mail Detection Works
10.2. Polling For New Mail
11. Editing Threads
11.1. Linking Threads
11.2. Breaking Threads
12. Delivery Status Notification (DSN) Support
13. Start a WWW Browser on URLs
14. Miscellany
5. Mutt's MIME Support
1. Using MIME in Mutt
1.1. MIME Overview
1.2. Viewing MIME Messages in the Pager
1.3. The Attachment Menu
1.4. The Compose Menu
2. MIME Type Configuration with mime.types
3. MIME Viewer Configuration with Mailcap
3.1. The Basics of the Mailcap File
3.2. Secure Use of Mailcap
3.3. Advanced Mailcap Usage
3.4. Example Mailcap Files
4. MIME Autoview
5. MIME Multipart/Alternative
6. Attachment Searching and Counting
7. MIME Lookup
6. Optional Features
1. General Notes
1.1. Enabling/Disabling Features
1.2. URL Syntax
2. SSL/TLS Support
3. POP3 Support
4. IMAP Support
4.1. The IMAP Folder Browser
4.2. Authentication
5. SMTP Support
6. Managing Multiple Accounts
7. Local Caching
7.1. Header Caching
7.2. Body Caching
7.3. Cache Directories
7.4. Maintenance
8. Exact Address Generation
9. Sending Anonymous Messages via Mixmaster
7. Security Considerations
1. Passwords
2. Temporary Files
3. Information Leaks
3.1. Message-Id: headers
3.2. mailto:-style Links
4. External Applications
8. Performance Tuning
1. Reading and Writing Mailboxes
2. Reading Messages from Remote Folders
3. Searching and Limiting
9. Reference
1. Command-Line Options
2. Configuration Commands
3. Configuration Variables
3.1. abort_nosubject
3.2. abort_unmodified
3.3. alias_file
3.4. alias_format
3.5. allow_8bit
3.6. allow_ansi
3.7. arrow_cursor
3.8. ascii_chars
3.9. askbcc
3.10. askcc
3.11. assumed_charset
3.12. attach_charset
3.13. attach_format
3.14. attach_sep
3.15. attach_split
3.16. attribution
3.17. auto_tag
3.18. autoedit
3.19. beep
3.20. beep_new
3.21. bounce
3.22. bounce_delivered
3.23. braille_friendly
3.24. certificate_file
3.25. charset
3.26. check_mbox_size
3.27. check_new
3.28. collapse_unread
3.29. compose_format
3.30. config_charset
3.31. confirmappend
3.32. confirmcreate
3.33. connect_timeout
3.34. content_type
3.35. copy
3.36. crypt_autoencrypt
3.37. crypt_autopgp
3.38. crypt_autosign
3.39. crypt_autosmime
3.40. crypt_replyencrypt
3.41. crypt_replysign
3.42. crypt_replysignencrypted
3.43. crypt_timestamp
3.44. crypt_use_gpgme
3.45. crypt_use_pka
3.46. crypt_verify_sig
3.47. date_format
3.48. default_hook
3.49. delete
3.50. delete_untag
3.51. digest_collapse
3.52. display_filter
3.53. dotlock_program
3.54. dsn_notify
3.55. dsn_return
3.56. duplicate_threads
3.57. edit_headers
3.58. editor
3.59. encode_from
3.60. entropy_file
3.61. envelope_from_address
3.62. escape
3.63. fast_reply
3.64. fcc_attach
3.65. fcc_clear
3.66. folder
3.67. folder_format
3.68. followup_to
3.69. force_name
3.70. forward_decode
3.71. forward_decrypt
3.72. forward_edit
3.73. forward_format
3.74. forward_quote
3.75. from
3.76. gecos_mask
3.77. hdrs
3.78. header
3.79. header_cache
3.80. header_cache_compress
3.81. header_cache_pagesize
3.82. help
3.83. hidden_host
3.84. hide_limited
3.85. hide_missing
3.86. hide_thread_subject
3.87. hide_top_limited
3.88. hide_top_missing
3.89. history
3.90. history_file
3.91. honor_disposition
3.92. honor_followup_to
3.93. hostname
3.94. ignore_linear_white_space
3.95. ignore_list_reply_to
3.96. imap_authenticators
3.97. imap_check_subscribed
3.98. imap_delim_chars
3.99. imap_headers
3.100. imap_idle
3.101. imap_keepalive
3.102. imap_list_subscribed
3.103. imap_login
3.104. imap_pass
3.105. imap_passive
3.106. imap_peek
3.107. imap_pipeline_depth
3.108. imap_servernoise
3.109. imap_user
3.110. implicit_autoview
3.111. include
3.112. include_onlyfirst
3.113. indent_string
3.114. index_format
3.115. ispell
3.116. keep_flagged
3.117. locale
3.118. mail_check
3.119. mail_check_recent
3.120. mailcap_path
3.121. mailcap_sanitize
3.122. maildir_header_cache_verify
3.123. maildir_trash
3.124. mark_old
3.125. markers
3.126. mask
3.127. mbox
3.128. mbox_type
3.129. menu_context
3.130. menu_move_off
3.131. menu_scroll
3.132. message_cache_clean
3.133. message_cachedir
3.134. message_format
3.135. meta_key
3.136. metoo
3.137. mh_purge
3.138. mh_seq_flagged
3.139. mh_seq_replied
3.140. mh_seq_unseen
3.141. mime_forward
3.142. mime_forward_decode
3.143. mime_forward_rest
3.144. mix_entry_format
3.145. mixmaster
3.146. move
3.147. narrow_tree
3.148. net_inc
3.149. pager
3.150. pager_context
3.151. pager_format
3.152. pager_index_lines
3.153. pager_stop
3.154. pgp_auto_decode
3.155. pgp_autoinline
3.156. pgp_check_exit
3.157. pgp_clearsign_command
3.158. pgp_decode_command
3.159. pgp_decrypt_command
3.160. pgp_encrypt_only_command
3.161. pgp_encrypt_sign_command
3.162. pgp_entry_format
3.163. pgp_export_command
3.164. pgp_getkeys_command
3.165. pgp_good_sign
3.166. pgp_ignore_subkeys
3.167. pgp_import_command
3.168. pgp_list_pubring_command
3.169. pgp_list_secring_command
3.170. pgp_long_ids
3.171. pgp_mime_auto
3.172. pgp_replyinline
3.173. pgp_retainable_sigs
3.174. pgp_show_unusable
3.175. pgp_sign_as
3.176. pgp_sign_command
3.177. pgp_sort_keys
3.178. pgp_strict_enc
3.179. pgp_timeout
3.180. pgp_use_gpg_agent
3.181. pgp_verify_command
3.182. pgp_verify_key_command
3.183. pipe_decode
3.184. pipe_sep
3.185. pipe_split
3.186. pop_auth_try_all
3.187. pop_authenticators
3.188. pop_checkinterval
3.189. pop_delete
3.190. pop_host
3.191. pop_last
3.192. pop_pass
3.193. pop_reconnect
3.194. pop_user
3.195. post_indent_string
3.196. postpone
3.197. postponed
3.198. preconnect
3.199. print
3.200. print_command
3.201. print_decode
3.202. print_split
3.203. prompt_after
3.204. query_command
3.205. query_format
3.206. quit
3.207. quote_regexp
3.208. read_inc
3.209. read_only
3.210. realname
3.211. recall
3.212. record
3.213. reply_regexp
3.214. reply_self
3.215. reply_to
3.216. resolve
3.217. reverse_alias
3.218. reverse_name
3.219. reverse_realname
3.220. rfc2047_parameters
3.221. save_address
3.222. save_empty
3.223. save_history
3.224. save_name
3.225. score
3.226. score_threshold_delete
3.227. score_threshold_flag
3.228. score_threshold_read
3.229. search_context
3.230. send_charset
3.231. sendmail
3.232. sendmail_wait
3.233. shell
3.234. sig_dashes
3.235. sig_on_top
3.236. signature
3.237. simple_search
3.238. sleep_time
3.239. smart_wrap
3.240. smileys
3.241. smime_ask_cert_label
3.242. smime_ca_location
3.243. smime_certificates
3.244. smime_decrypt_command
3.245. smime_decrypt_use_default_key
3.246. smime_default_key
3.247. smime_encrypt_command
3.248. smime_encrypt_with
3.249. smime_get_cert_command
3.250. smime_get_cert_email_command
3.251. smime_get_signer_cert_command
3.252. smime_import_cert_command
3.253. smime_is_default
3.254. smime_keys
3.255. smime_pk7out_command
3.256. smime_sign_command
3.257. smime_sign_opaque_command
3.258. smime_timeout
3.259. smime_verify_command
3.260. smime_verify_opaque_command
3.261. smtp_authenticators
3.262. smtp_pass
3.263. smtp_url
3.264. sort
3.265. sort_alias
3.266. sort_aux
3.267. sort_browser
3.268. sort_re
3.269. spam_separator
3.270. spoolfile
3.271. ssl_ca_certificates_file
3.272. ssl_client_cert
3.273. ssl_force_tls
3.274. ssl_min_dh_prime_bits
3.275. ssl_starttls
3.276. ssl_use_sslv2
3.277. ssl_use_sslv3
3.278. ssl_use_tlsv1
3.279. ssl_usesystemcerts
3.280. ssl_verify_dates
3.281. ssl_verify_host
3.282. status_chars
3.283. status_format
3.284. status_on_top
3.285. strict_threads
3.286. suspend
3.287. text_flowed
3.288. thorough_search
3.289. thread_received
3.290. tilde
3.291. time_inc
3.292. timeout
3.293. tmpdir
3.294. to_chars
3.295. tunnel
3.296. uncollapse_jump
3.297. use_8bitmime
3.298. use_domain
3.299. use_envelope_from
3.300. use_from
3.301. use_idn
3.302. use_ipv6
3.303. user_agent
3.304. visual
3.305. wait_key
3.306. weed
3.307. wrap
3.308. wrap_headers
3.309. wrap_search
3.310. wrapmargin
3.311. write_bcc
3.312. write_inc
4. Functions
4.1. Generic Menu
4.2. Index Menu
4.3. Pager Menu
4.4. Alias Menu
4.5. Query Menu
4.6. Attachment Menu
4.7. Compose Menu
4.8. Postpone Menu
4.9. Browser Menu
4.10. Pgp Menu
4.11. Smime Menu
4.12. Mixmaster Menu
4.13. Editor Menu
10. Miscellany
1. Acknowledgements
2. About This Document
diff --git a/doc/intro.html b/doc/intro.html index 7e5afc7..acb4bea 100644 --- a/doc/intro.html +++ b/doc/intro.html @@ -1,6 +1,6 @@ -Chapter 1. Introduction

Chapter 1. Introduction

-Mutt is a small but very powerful text-based MIME mail client. Mutt is -highly configurable, and is well suited to the mail power user with advanced -features like key bindings, keyboard macros, mail threading, regular -expression searches and a powerful pattern matching language for selecting -groups of messages. -

1. Mutt Home Page

+

Chapter 1. Introduction

+Mutt is a small but very powerful +text-based MIME mail client. Mutt is highly configurable, and is well +suited to the mail power user with advanced features like key bindings, +keyboard macros, mail threading, regular expression searches and a +powerful pattern matching language for selecting groups of messages. +

1. Mutt Home Page

The official homepage can be found at http://www.mutt.org/. -

2. Mailing Lists

-To subscribe to one of the following mailing lists, send a message with the -word subscribe in the body to -list-name-request@mutt.org. -

Note

-All messages posted to -mutt-announce are automatically forwarded to -mutt-users, so you do not need to be subscribed to -both lists. -

3. Getting Mutt

-Mutt releases can be downloaded from -ftp://ftp.mutt.org/mutt/. -For a list of mirror sites, please refer to -http://www.mutt.org/download.html. +

2. Mailing Lists

+To subscribe to one of the following mailing lists, send a message with +the word subscribe in the body to +list-name-request@mutt.org. +

+All messages posted to mutt-announce are +automatically forwarded to mutt-users, so you do +not need to be subscribed to both lists. +

3. Getting Mutt

+Mutt releases can be downloaded from ftp://ftp.mutt.org/mutt/. For a +list of mirror sites, please refer to http://www.mutt.org/download.html.

For nightly tarballs and version control access, please refer to the Mutt development site. -

4. Mutt Online Resources

Bug Tracking System

+

4. Mutt Online Resources

Bug Tracking System

The official Mutt bug tracking system can be found at http://bugs.mutt.org/

Wiki

@@ -68,7 +69,7 @@ For the IRC user community, visit channel #mutt< irc.freenode.net.

USENET

For USENET, see the newsgroup comp.mail.mutt. -

5. Contributing to Mutt

+

5. Contributing to Mutt

There are various ways to contribute to the Mutt project.

Especially for new users it may be helpful to meet other new and @@ -82,7 +83,7 @@ improve and continue to maintain stale translations. For contributing code patches for new features and bug fixes, please refer to the developer pages at http://dev.mutt.org/ for more details. -

6. Typograhical Conventions

+

6. Typographical Conventions

This section lists typographical conventions followed throughout this manual. See table Table 1.1, “Typographical conventions for special terms” for typographical conventions for special terms. @@ -91,25 +92,25 @@ Examples are presented as:

 mutt -v
 

-Within command synopsis, curly brackets (“{}”) denote a set +Within command synopsis, curly brackets (“{}”) denote a set of options of which one is mandatory, square brackets -(“[]”) denote optional arguments, three dots +(“[]”) denote optional arguments, three dots denote that the argument may be repeated arbitrary times. -

7. Copyright

+

7. Copyright

Mutt is Copyright © 1996-2009 Michael R. Elkins and others.

-This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2 of the License, or (at your +option) any later version.

-This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details.

-You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +You should have received a copy of the GNU General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

diff --git a/doc/makedoc.c b/doc/makedoc.c index 07d3405..5112809 100644 --- a/doc/makedoc.c +++ b/doc/makedoc.c @@ -117,8 +117,8 @@ static void print_confline (const char *, int, const char *, FILE *); static void handle_confline (char *, FILE *); static void makedoc (FILE *, FILE *); static void pretty_default (char *, size_t, const char *, int); -static int sgml_fputc (int, FILE *, int); -static int sgml_fputs (const char *, FILE *, int); +static int sgml_fputc (int, FILE *); +static int sgml_fputs (const char *, FILE *); static int sgml_id_fputs (const char *, FILE *); int main (int argc, char *argv[]) @@ -591,14 +591,14 @@ static void sgml_print_strval (const char *v, FILE *out) if (*v < ' ' || *v & 0x80) { char_to_escape (buff, (unsigned int) *v); - sgml_fputs (buff, out, 1); + sgml_fputs (buff, out); continue; } - sgml_fputc ((unsigned int) *v, out, 1); + sgml_fputc ((unsigned int) *v, out); } } -static int sgml_fputc (int c, FILE *out, int full) +static int sgml_fputc (int c, FILE *out) { switch (c) { @@ -606,25 +606,14 @@ static int sgml_fputc (int c, FILE *out, int full) case '<': return fputs ("<", out); case '>': return fputs (">", out); case '&': return fputs ("&", out); - /* map to entities, fall-through to raw if !full */ - case '$': if (full) return fputs ("$", out); - case '_': if (full) return fputs ("_", out); - case '%': if (full) return fputs ("%", out); - case '\\': if (full) return fputs ("\", out); - case '"': if (full) return fputs (""", out); - case '[': if (full) return fputs ("[", out); - case ']': if (full) return fputs ("]", out); - case '~': if (full) return fputs ("˜", out); - case '|': if (full) return fputs ("|", out); - case '^': if (full) return fputs ("ˆ", out); default: return fputc (c, out); } } -static int sgml_fputs (const char *s, FILE *out, int full) +static int sgml_fputs (const char *s, FILE *out) { for (; *s; s++) - if (sgml_fputc ((unsigned int) *s, out, full) == EOF) + if (sgml_fputc ((unsigned int) *s, out) == EOF) return EOF; return 0; @@ -716,7 +705,7 @@ static void print_confline (const char *varname, int type, const char *val, FILE fputs ("\n\n", out); - sgml_fputs (varname, out, 1); + sgml_fputs (varname, out); fprintf (out, "\nType: %s", type2human (type)); @@ -1220,7 +1209,7 @@ static int print_it (int special, char *str, FILE *out, int docstat) case SP_STR: { if (docstat & D_TAB) - sgml_fputs (str, out, 0); + sgml_fputs (str, out); else { while (*str) @@ -1238,7 +1227,7 @@ static int print_it (int special, char *str, FILE *out, int docstat) str++; } else - sgml_fputc (*str, out, 1); + sgml_fputc (*str, out); } } } @@ -1271,8 +1260,8 @@ void print_ref (FILE *out, int output_dollar, const char *ref) sgml_id_fputs (ref, out); fputs ("\">", out); if (output_dollar) - fputs ("$", out); - sgml_fputs (ref, out, 1); + fputc ('$', out); + sgml_fputs (ref, out); fputs ("", out); break; diff --git a/doc/manual.html b/doc/manual.html index 767669e..23c31b6 100644 --- a/doc/manual.html +++ b/doc/manual.html @@ -1,6 +1,6 @@ -The Mutt E-Mail Client

The Mutt E-Mail Client

Michael Elkins

version 1.5.20 (2009-06-14)

Abstract

-“All mail clients suck. This one just sucks less.” — me, circa 1995 -


Table of Contents

1. Introduction
1. Mutt Home Page
2. Mailing Lists
3. Getting Mutt
4. Mutt Online Resources
5. Contributing to Mutt
6. Typograhical Conventions
7. Copyright
2. Getting Started
1. Core Concepts
2. Screens and Menus
2.1. Index
2.2. Pager
2.3. File Browser
2.4. Help
2.5. Compose Menu
2.6. Alias Menu
2.7. Attachment Menu
3. Moving Around in Menus
4. Editing Input Fields
4.1. Introduction
4.2. History
5. Reading Mail
5.1. The Message Index
5.2. The Pager
5.3. Threaded Mode
5.4. Miscellaneous Functions
6. Sending Mail
6.1. Introduction
6.2. Editing the Message Header
6.3. Sending Cryptographically Signed/Encrypted Messages
6.4. Sending Format=Flowed Messages
7. Forwarding and Bouncing Mail
8. Postponing Mail
3. Configuration
1. Location of Initialization Files
2. Syntax of Initialization Files
3. Address Groups
4. Defining/Using Aliases
5. Changing the Default Key Bindings
6. Defining Aliases for Character Sets
7. Setting Variables Based Upon Mailbox
8. Keyboard Macros
9. Using Color and Mono Video Attributes
10. Message Header Display
10.1. Selecting Headers
10.2. Ordering Displayed Headers
11. Alternative Addresses
12. Mailing Lists
13. Using Multiple Spool Mailboxes
14. Monitoring Incoming Mail
15. User-Defined Headers
16. Specify Default Save Mailbox
17. Specify Default Fcc: Mailbox When Composing
18. Specify Default Save Filename and Default Fcc: Mailbox at Once
19. Change Settings Based Upon Message Recipients
20. Change Settings Before Formatting a Message
21. Choosing the Cryptographic Key of the Recipient
22. Adding Key Sequences to the Keyboard Buffer
23. Executing Functions
24. Message Scoring
25. Spam Detection
26. Setting and Querying Variables
26.1. Variable Types
26.2. Commands
26.3. User-Defined Variables
27. Reading Initialization Commands From Another File
28. Removing Hooks
29. Format Strings
29.1. Basic usage
29.2. Conditionals
29.3. Filters
29.4. Padding
4. Advanced Usage
1. Regular Expressions
2. Patterns: Searching, Limiting and Tagging
2.1. Pattern Modifier
2.2. Simple Searches
2.3. Nesting and Boolean Operators
2.4. Searching by Date
3. Using Tags
4. Using Hooks
4.1. Message Matching in Hooks
5. External Address Queries
6. Mailbox Formats
7. Mailbox Shortcuts
8. Handling Mailing Lists
9. Handling multiple folders
10. Editing Threads
10.1. Linking Threads
10.2. Breaking Threads
11. Delivery Status Notification (DSN) Support
12. Start a WWW Browser on URLs
13. Miscellany
5. Mutt's MIME Support
1. Using MIME in Mutt
1.1. Viewing MIME Messages in the Pager
1.2. The Attachment Menu
1.3. The Compose Menu
2. MIME Type Configuration with mime.types
3. MIME Viewer Configuration with Mailcap
3.1. The Basics of the Mailcap File
3.2. Secure Use of Mailcap
3.3. Advanced Mailcap Usage
3.4. Example Mailcap Files
4. MIME Autoview
5. MIME Multipart/Alternative
6. Attachment Searching and Counting
7. MIME Lookup
6. Optional Features
1. General Notes
1.1. Enabling/Disabling Features
1.2. URL Syntax
2. SSL/TLS Support
3. POP3 Support
4. IMAP Support
4.1. The IMAP Folder Browser
4.2. Authentication
5. SMTP Support
6. Managing Multiple Accounts
7. Local Caching
7.1. Header Caching
7.2. Body Caching
7.3. Maintenance
8. Exact Address Generation
9. Sending Anonymous Messages via Mixmaster
7. Security Considerations
1. Passwords
2. Temporary Files
3. Information Leaks
3.1. Message-Id: headers
3.2. mailto:-style Links
4. External Applications
8. Performance Tuning
1. Reading and Writing Mailboxes
2. Reading Messages from Remote Folders
3. Searching and Limiting
9. Reference
1. Command-Line Options
2. Configuration Commands
3. Configuration Variables
3.1. abort_nosubject
3.2. abort_unmodified
3.3. alias_file
3.4. alias_format
3.5. allow_8bit
3.6. allow_ansi
3.7. arrow_cursor
3.8. ascii_chars
3.9. askbcc
3.10. askcc
3.11. assumed_charset
3.12. attach_charset
3.13. attach_format
3.14. attach_sep
3.15. attach_split
3.16. attribution
3.17. auto_tag
3.18. autoedit
3.19. beep
3.20. beep_new
3.21. bounce
3.22. bounce_delivered
3.23. braille_friendly
3.24. certificate_file
3.25. charset
3.26. check_mbox_size
3.27. check_new
3.28. collapse_unread
3.29. compose_format
3.30. config_charset
3.31. confirmappend
3.32. confirmcreate
3.33. connect_timeout
3.34. content_type
3.35. copy
3.36. crypt_autoencrypt
3.37. crypt_autopgp
3.38. crypt_autosign
3.39. crypt_autosmime
3.40. crypt_replyencrypt
3.41. crypt_replysign
3.42. crypt_replysignencrypted
3.43. crypt_timestamp
3.44. crypt_use_gpgme
3.45. crypt_use_pka
3.46. crypt_verify_sig
3.47. date_format
3.48. default_hook
3.49. delete
3.50. delete_untag
3.51. digest_collapse
3.52. display_filter
3.53. dotlock_program
3.54. dsn_notify
3.55. dsn_return
3.56. duplicate_threads
3.57. edit_headers
3.58. editor
3.59. encode_from
3.60. entropy_file
3.61. envelope_from_address
3.62. escape
3.63. fast_reply
3.64. fcc_attach
3.65. fcc_clear
3.66. folder
3.67. folder_format
3.68. followup_to
3.69. force_name
3.70. forward_decode
3.71. forward_decrypt
3.72. forward_edit
3.73. forward_format
3.74. forward_quote
3.75. from
3.76. gecos_mask
3.77. hdrs
3.78. header
3.79. header_cache
3.80. header_cache_compress
3.81. header_cache_pagesize
3.82. help
3.83. hidden_host
3.84. hide_limited
3.85. hide_missing
3.86. hide_thread_subject
3.87. hide_top_limited
3.88. hide_top_missing
3.89. history
3.90. history_file
3.91. honor_disposition
3.92. honor_followup_to
3.93. hostname
3.94. ignore_linear_white_space
3.95. ignore_list_reply_to
3.96. imap_authenticators
3.97. imap_check_subscribed
3.98. imap_delim_chars
3.99. imap_headers
3.100. imap_idle
3.101. imap_keepalive
3.102. imap_list_subscribed
3.103. imap_login
3.104. imap_pass
3.105. imap_passive
3.106. imap_peek
3.107. imap_pipeline_depth
3.108. imap_servernoise
3.109. imap_user
3.110. implicit_autoview
3.111. include
3.112. include_onlyfirst
3.113. indent_string
3.114. index_format
3.115. ispell
3.116. keep_flagged
3.117. locale
3.118. mail_check
3.119. mailcap_path
3.120. mailcap_sanitize
3.121. maildir_header_cache_verify
3.122. maildir_trash
3.123. mark_old
3.124. markers
3.125. mask
3.126. mbox
3.127. mbox_type
3.128. menu_context
3.129. menu_move_off
3.130. menu_scroll
3.131. message_cache_clean
3.132. message_cachedir
3.133. message_format
3.134. meta_key
3.135. metoo
3.136. mh_purge
3.137. mh_seq_flagged
3.138. mh_seq_replied
3.139. mh_seq_unseen
3.140. mime_forward
3.141. mime_forward_decode
3.142. mime_forward_rest
3.143. mix_entry_format
3.144. mixmaster
3.145. move
3.146. narrow_tree
3.147. net_inc
3.148. pager
3.149. pager_context
3.150. pager_format
3.151. pager_index_lines
3.152. pager_stop
3.153. pgp_auto_decode
3.154. pgp_autoinline
3.155. pgp_check_exit
3.156. pgp_clearsign_command
3.157. pgp_decode_command
3.158. pgp_decrypt_command
3.159. pgp_encrypt_only_command
3.160. pgp_encrypt_sign_command
3.161. pgp_entry_format
3.162. pgp_export_command
3.163. pgp_getkeys_command
3.164. pgp_good_sign
3.165. pgp_ignore_subkeys
3.166. pgp_import_command
3.167. pgp_list_pubring_command
3.168. pgp_list_secring_command
3.169. pgp_long_ids
3.170. pgp_mime_auto
3.171. pgp_replyinline
3.172. pgp_retainable_sigs
3.173. pgp_show_unusable
3.174. pgp_sign_as
3.175. pgp_sign_command
3.176. pgp_sort_keys
3.177. pgp_strict_enc
3.178. pgp_timeout
3.179. pgp_use_gpg_agent
3.180. pgp_verify_command
3.181. pgp_verify_key_command
3.182. pipe_decode
3.183. pipe_sep
3.184. pipe_split
3.185. pop_auth_try_all
3.186. pop_authenticators
3.187. pop_checkinterval
3.188. pop_delete
3.189. pop_host
3.190. pop_last
3.191. pop_pass
3.192. pop_reconnect
3.193. pop_user
3.194. post_indent_string
3.195. postpone
3.196. postponed
3.197. preconnect
3.198. print
3.199. print_command
3.200. print_decode
3.201. print_split
3.202. prompt_after
3.203. query_command
3.204. query_format
3.205. quit
3.206. quote_regexp
3.207. read_inc
3.208. read_only
3.209. realname
3.210. recall
3.211. record
3.212. reply_regexp
3.213. reply_self
3.214. reply_to
3.215. resolve
3.216. reverse_alias
3.217. reverse_name
3.218. reverse_realname
3.219. rfc2047_parameters
3.220. save_address
3.221. save_empty
3.222. save_history
3.223. save_name
3.224. score
3.225. score_threshold_delete
3.226. score_threshold_flag
3.227. score_threshold_read
3.228. search_context
3.229. send_charset
3.230. sendmail
3.231. sendmail_wait
3.232. shell
3.233. sig_dashes
3.234. sig_on_top
3.235. signature
3.236. simple_search
3.237. sleep_time
3.238. smart_wrap
3.239. smileys
3.240. smime_ask_cert_label
3.241. smime_ca_location
3.242. smime_certificates
3.243. smime_decrypt_command
3.244. smime_decrypt_use_default_key
3.245. smime_default_key
3.246. smime_encrypt_command
3.247. smime_encrypt_with
3.248. smime_get_cert_command
3.249. smime_get_cert_email_command
3.250. smime_get_signer_cert_command
3.251. smime_import_cert_command
3.252. smime_is_default
3.253. smime_keys
3.254. smime_pk7out_command
3.255. smime_sign_command
3.256. smime_sign_opaque_command
3.257. smime_timeout
3.258. smime_verify_command
3.259. smime_verify_opaque_command
3.260. smtp_authenticators
3.261. smtp_pass
3.262. smtp_url
3.263. sort
3.264. sort_alias
3.265. sort_aux
3.266. sort_browser
3.267. sort_re
3.268. spam_separator
3.269. spoolfile
3.270. ssl_ca_certificates_file
3.271. ssl_client_cert
3.272. ssl_force_tls
3.273. ssl_min_dh_prime_bits
3.274. ssl_starttls
3.275. ssl_use_sslv2
3.276. ssl_use_sslv3
3.277. ssl_use_tlsv1
3.278. ssl_usesystemcerts
3.279. ssl_verify_dates
3.280. ssl_verify_host
3.281. status_chars
3.282. status_format
3.283. status_on_top
3.284. strict_threads
3.285. suspend
3.286. text_flowed
3.287. thorough_search
3.288. thread_received
3.289. tilde
3.290. time_inc
3.291. timeout
3.292. tmpdir
3.293. to_chars
3.294. tunnel
3.295. uncollapse_jump
3.296. use_8bitmime
3.297. use_domain
3.298. use_envelope_from
3.299. use_from
3.300. use_idn
3.301. use_ipv6
3.302. user_agent
3.303. visual
3.304. wait_key
3.305. weed
3.306. wrap
3.307. wrap_search
3.308. wrapmargin
3.309. write_bcc
3.310. write_inc
4. Functions
4.1. Generic Menu
4.2. Index Menu
4.3. Pager Menu
4.4. Alias Menu
4.5. Query Menu
4.6. Attach Menu
4.7. Compose Menu
4.8. Postpone Menu
4.9. Browser Menu
4.10. Pgp Menu
4.11. Smime Menu
4.12. Mix Menu
4.13. Editor Menu
10. Miscellany
1. Acknowledgements
2. About This Document

Chapter 1. Introduction

-Mutt is a small but very powerful text-based MIME mail client. Mutt is -highly configurable, and is well suited to the mail power user with advanced -features like key bindings, keyboard macros, mail threading, regular -expression searches and a powerful pattern matching language for selecting -groups of messages. -

1. Mutt Home Page

+

The Mutt E-Mail Client

Michael Elkins

version 1.5.21 (2010-09-15)

Abstract

+“All mail clients suck. This one just sucks less.” — +me, circa 1995 +


Table of Contents

1. Introduction
1. Mutt Home Page
2. Mailing Lists
3. Getting Mutt
4. Mutt Online Resources
5. Contributing to Mutt
6. Typographical Conventions
7. Copyright
2. Getting Started
1. Core Concepts
2. Screens and Menus
2.1. Index
2.2. Pager
2.3. File Browser
2.4. Help
2.5. Compose Menu
2.6. Alias Menu
2.7. Attachment Menu
3. Moving Around in Menus
4. Editing Input Fields
4.1. Introduction
4.2. History
5. Reading Mail
5.1. The Message Index
5.2. The Pager
5.3. Threaded Mode
5.4. Miscellaneous Functions
6. Sending Mail
6.1. Introduction
6.2. Editing the Message Header
6.3. Sending Cryptographically Signed/Encrypted Messages
6.4. Sending Format=Flowed Messages
7. Forwarding and Bouncing Mail
8. Postponing Mail
3. Configuration
1. Location of Initialization Files
2. Syntax of Initialization Files
3. Address Groups
4. Defining/Using Aliases
5. Changing the Default Key Bindings
6. Defining Aliases for Character Sets
7. Setting Variables Based Upon Mailbox
8. Keyboard Macros
9. Using Color and Mono Video Attributes
10. Message Header Display
10.1. Header Display
10.2. Selecting Headers
10.3. Ordering Displayed Headers
11. Alternative Addresses
12. Mailing Lists
13. Using Multiple Spool Mailboxes
14. Monitoring Incoming Mail
15. User-Defined Headers
16. Specify Default Save Mailbox
17. Specify Default Fcc: Mailbox When Composing
18. Specify Default Save Filename and Default Fcc: Mailbox at Once
19. Change Settings Based Upon Message Recipients
20. Change Settings Before Formatting a Message
21. Choosing the Cryptographic Key of the Recipient
22. Adding Key Sequences to the Keyboard Buffer
23. Executing Functions
24. Message Scoring
25. Spam Detection
26. Setting and Querying Variables
26.1. Variable Types
26.2. Commands
26.3. User-Defined Variables
26.4. Type Conversions
27. Reading Initialization Commands From Another File
28. Removing Hooks
29. Format Strings
29.1. Basic usage
29.2. Conditionals
29.3. Filters
29.4. Padding
4. Advanced Usage
1. Character Set Handling
2. Regular Expressions
3. Patterns: Searching, Limiting and Tagging
3.1. Pattern Modifier
3.2. Simple Searches
3.3. Nesting and Boolean Operators
3.4. Searching by Date
4. Using Tags
5. Using Hooks
5.1. Message Matching in Hooks
6. External Address Queries
7. Mailbox Formats
8. Mailbox Shortcuts
9. Handling Mailing Lists
10. New Mail Detection
10.1. How New Mail Detection Works
10.2. Polling For New Mail
11. Editing Threads
11.1. Linking Threads
11.2. Breaking Threads
12. Delivery Status Notification (DSN) Support
13. Start a WWW Browser on URLs
14. Miscellany
5. Mutt's MIME Support
1. Using MIME in Mutt
1.1. MIME Overview
1.2. Viewing MIME Messages in the Pager
1.3. The Attachment Menu
1.4. The Compose Menu
2. MIME Type Configuration with mime.types
3. MIME Viewer Configuration with Mailcap
3.1. The Basics of the Mailcap File
3.2. Secure Use of Mailcap
3.3. Advanced Mailcap Usage
3.4. Example Mailcap Files
4. MIME Autoview
5. MIME Multipart/Alternative
6. Attachment Searching and Counting
7. MIME Lookup
6. Optional Features
1. General Notes
1.1. Enabling/Disabling Features
1.2. URL Syntax
2. SSL/TLS Support
3. POP3 Support
4. IMAP Support
4.1. The IMAP Folder Browser
4.2. Authentication
5. SMTP Support
6. Managing Multiple Accounts
7. Local Caching
7.1. Header Caching
7.2. Body Caching
7.3. Cache Directories
7.4. Maintenance
8. Exact Address Generation
9. Sending Anonymous Messages via Mixmaster
7. Security Considerations
1. Passwords
2. Temporary Files
3. Information Leaks
3.1. Message-Id: headers
3.2. mailto:-style Links
4. External Applications
8. Performance Tuning
1. Reading and Writing Mailboxes
2. Reading Messages from Remote Folders
3. Searching and Limiting
9. Reference
1. Command-Line Options
2. Configuration Commands
3. Configuration Variables
3.1. abort_nosubject
3.2. abort_unmodified
3.3. alias_file
3.4. alias_format
3.5. allow_8bit
3.6. allow_ansi
3.7. arrow_cursor
3.8. ascii_chars
3.9. askbcc
3.10. askcc
3.11. assumed_charset
3.12. attach_charset
3.13. attach_format
3.14. attach_sep
3.15. attach_split
3.16. attribution
3.17. auto_tag
3.18. autoedit
3.19. beep
3.20. beep_new
3.21. bounce
3.22. bounce_delivered
3.23. braille_friendly
3.24. certificate_file
3.25. charset
3.26. check_mbox_size
3.27. check_new
3.28. collapse_unread
3.29. compose_format
3.30. config_charset
3.31. confirmappend
3.32. confirmcreate
3.33. connect_timeout
3.34. content_type
3.35. copy
3.36. crypt_autoencrypt
3.37. crypt_autopgp
3.38. crypt_autosign
3.39. crypt_autosmime
3.40. crypt_replyencrypt
3.41. crypt_replysign
3.42. crypt_replysignencrypted
3.43. crypt_timestamp
3.44. crypt_use_gpgme
3.45. crypt_use_pka
3.46. crypt_verify_sig
3.47. date_format
3.48. default_hook
3.49. delete
3.50. delete_untag
3.51. digest_collapse
3.52. display_filter
3.53. dotlock_program
3.54. dsn_notify
3.55. dsn_return
3.56. duplicate_threads
3.57. edit_headers
3.58. editor
3.59. encode_from
3.60. entropy_file
3.61. envelope_from_address
3.62. escape
3.63. fast_reply
3.64. fcc_attach
3.65. fcc_clear
3.66. folder
3.67. folder_format
3.68. followup_to
3.69. force_name
3.70. forward_decode
3.71. forward_decrypt
3.72. forward_edit
3.73. forward_format
3.74. forward_quote
3.75. from
3.76. gecos_mask
3.77. hdrs
3.78. header
3.79. header_cache
3.80. header_cache_compress
3.81. header_cache_pagesize
3.82. help
3.83. hidden_host
3.84. hide_limited
3.85. hide_missing
3.86. hide_thread_subject
3.87. hide_top_limited
3.88. hide_top_missing
3.89. history
3.90. history_file
3.91. honor_disposition
3.92. honor_followup_to
3.93. hostname
3.94. ignore_linear_white_space
3.95. ignore_list_reply_to
3.96. imap_authenticators
3.97. imap_check_subscribed
3.98. imap_delim_chars
3.99. imap_headers
3.100. imap_idle
3.101. imap_keepalive
3.102. imap_list_subscribed
3.103. imap_login
3.104. imap_pass
3.105. imap_passive
3.106. imap_peek
3.107. imap_pipeline_depth
3.108. imap_servernoise
3.109. imap_user
3.110. implicit_autoview
3.111. include
3.112. include_onlyfirst
3.113. indent_string
3.114. index_format
3.115. ispell
3.116. keep_flagged
3.117. locale
3.118. mail_check
3.119. mail_check_recent
3.120. mailcap_path
3.121. mailcap_sanitize
3.122. maildir_header_cache_verify
3.123. maildir_trash
3.124. mark_old
3.125. markers
3.126. mask
3.127. mbox
3.128. mbox_type
3.129. menu_context
3.130. menu_move_off
3.131. menu_scroll
3.132. message_cache_clean
3.133. message_cachedir
3.134. message_format
3.135. meta_key
3.136. metoo
3.137. mh_purge
3.138. mh_seq_flagged
3.139. mh_seq_replied
3.140. mh_seq_unseen
3.141. mime_forward
3.142. mime_forward_decode
3.143. mime_forward_rest
3.144. mix_entry_format
3.145. mixmaster
3.146. move
3.147. narrow_tree
3.148. net_inc
3.149. pager
3.150. pager_context
3.151. pager_format
3.152. pager_index_lines
3.153. pager_stop
3.154. pgp_auto_decode
3.155. pgp_autoinline
3.156. pgp_check_exit
3.157. pgp_clearsign_command
3.158. pgp_decode_command
3.159. pgp_decrypt_command
3.160. pgp_encrypt_only_command
3.161. pgp_encrypt_sign_command
3.162. pgp_entry_format
3.163. pgp_export_command
3.164. pgp_getkeys_command
3.165. pgp_good_sign
3.166. pgp_ignore_subkeys
3.167. pgp_import_command
3.168. pgp_list_pubring_command
3.169. pgp_list_secring_command
3.170. pgp_long_ids
3.171. pgp_mime_auto
3.172. pgp_replyinline
3.173. pgp_retainable_sigs
3.174. pgp_show_unusable
3.175. pgp_sign_as
3.176. pgp_sign_command
3.177. pgp_sort_keys
3.178. pgp_strict_enc
3.179. pgp_timeout
3.180. pgp_use_gpg_agent
3.181. pgp_verify_command
3.182. pgp_verify_key_command
3.183. pipe_decode
3.184. pipe_sep
3.185. pipe_split
3.186. pop_auth_try_all
3.187. pop_authenticators
3.188. pop_checkinterval
3.189. pop_delete
3.190. pop_host
3.191. pop_last
3.192. pop_pass
3.193. pop_reconnect
3.194. pop_user
3.195. post_indent_string
3.196. postpone
3.197. postponed
3.198. preconnect
3.199. print
3.200. print_command
3.201. print_decode
3.202. print_split
3.203. prompt_after
3.204. query_command
3.205. query_format
3.206. quit
3.207. quote_regexp
3.208. read_inc
3.209. read_only
3.210. realname
3.211. recall
3.212. record
3.213. reply_regexp
3.214. reply_self
3.215. reply_to
3.216. resolve
3.217. reverse_alias
3.218. reverse_name
3.219. reverse_realname
3.220. rfc2047_parameters
3.221. save_address
3.222. save_empty
3.223. save_history
3.224. save_name
3.225. score
3.226. score_threshold_delete
3.227. score_threshold_flag
3.228. score_threshold_read
3.229. search_context
3.230. send_charset
3.231. sendmail
3.232. sendmail_wait
3.233. shell
3.234. sig_dashes
3.235. sig_on_top
3.236. signature
3.237. simple_search
3.238. sleep_time
3.239. smart_wrap
3.240. smileys
3.241. smime_ask_cert_label
3.242. smime_ca_location
3.243. smime_certificates
3.244. smime_decrypt_command
3.245. smime_decrypt_use_default_key
3.246. smime_default_key
3.247. smime_encrypt_command
3.248. smime_encrypt_with
3.249. smime_get_cert_command
3.250. smime_get_cert_email_command
3.251. smime_get_signer_cert_command
3.252. smime_import_cert_command
3.253. smime_is_default
3.254. smime_keys
3.255. smime_pk7out_command
3.256. smime_sign_command
3.257. smime_sign_opaque_command
3.258. smime_timeout
3.259. smime_verify_command
3.260. smime_verify_opaque_command
3.261. smtp_authenticators
3.262. smtp_pass
3.263. smtp_url
3.264. sort
3.265. sort_alias
3.266. sort_aux
3.267. sort_browser
3.268. sort_re
3.269. spam_separator
3.270. spoolfile
3.271. ssl_ca_certificates_file
3.272. ssl_client_cert
3.273. ssl_force_tls
3.274. ssl_min_dh_prime_bits
3.275. ssl_starttls
3.276. ssl_use_sslv2
3.277. ssl_use_sslv3
3.278. ssl_use_tlsv1
3.279. ssl_usesystemcerts
3.280. ssl_verify_dates
3.281. ssl_verify_host
3.282. status_chars
3.283. status_format
3.284. status_on_top
3.285. strict_threads
3.286. suspend
3.287. text_flowed
3.288. thorough_search
3.289. thread_received
3.290. tilde
3.291. time_inc
3.292. timeout
3.293. tmpdir
3.294. to_chars
3.295. tunnel
3.296. uncollapse_jump
3.297. use_8bitmime
3.298. use_domain
3.299. use_envelope_from
3.300. use_from
3.301. use_idn
3.302. use_ipv6
3.303. user_agent
3.304. visual
3.305. wait_key
3.306. weed
3.307. wrap
3.308. wrap_headers
3.309. wrap_search
3.310. wrapmargin
3.311. write_bcc
3.312. write_inc
4. Functions
4.1. Generic Menu
4.2. Index Menu
4.3. Pager Menu
4.4. Alias Menu
4.5. Query Menu
4.6. Attachment Menu
4.7. Compose Menu
4.8. Postpone Menu
4.9. Browser Menu
4.10. Pgp Menu
4.11. Smime Menu
4.12. Mixmaster Menu
4.13. Editor Menu
10. Miscellany
1. Acknowledgements
2. About This Document

Chapter 1. Introduction

+Mutt is a small but very powerful +text-based MIME mail client. Mutt is highly configurable, and is well +suited to the mail power user with advanced features like key bindings, +keyboard macros, mail threading, regular expression searches and a +powerful pattern matching language for selecting groups of messages. +

1. Mutt Home Page

The official homepage can be found at http://www.mutt.org/. -

2. Mailing Lists

-To subscribe to one of the following mailing lists, send a message with the -word subscribe in the body to -list-name-request@mutt.org. -

Note

-All messages posted to -mutt-announce are automatically forwarded to -mutt-users, so you do not need to be subscribed to -both lists. -

3. Getting Mutt

-Mutt releases can be downloaded from -ftp://ftp.mutt.org/mutt/. -For a list of mirror sites, please refer to -http://www.mutt.org/download.html. +

2. Mailing Lists

+To subscribe to one of the following mailing lists, send a message with +the word subscribe in the body to +list-name-request@mutt.org. +

+All messages posted to mutt-announce are +automatically forwarded to mutt-users, so you do +not need to be subscribed to both lists. +

3. Getting Mutt

+Mutt releases can be downloaded from ftp://ftp.mutt.org/mutt/. For a +list of mirror sites, please refer to http://www.mutt.org/download.html.

For nightly tarballs and version control access, please refer to the Mutt development site. -

4. Mutt Online Resources

Bug Tracking System

+

4. Mutt Online Resources

Bug Tracking System

The official Mutt bug tracking system can be found at http://bugs.mutt.org/

Wiki

@@ -70,7 +72,7 @@ For the IRC user community, visit channel #mutt< irc.freenode.net.

USENET

For USENET, see the newsgroup comp.mail.mutt. -

5. Contributing to Mutt

+

5. Contributing to Mutt

There are various ways to contribute to the Mutt project.

Especially for new users it may be helpful to meet other new and @@ -84,57 +86,60 @@ improve and continue to maintain stale translations. For contributing code patches for new features and bug fixes, please refer to the developer pages at http://dev.mutt.org/ for more details. -

6. Typograhical Conventions

+

6. Typographical Conventions

This section lists typographical conventions followed throughout this -manual. See table Table 1.1, “Typographical conventions for special terms” for typographical +manual. See table Table 1.1, “Typographical conventions for special terms” for typographical conventions for special terms.

Table 1.1. Typographical conventions for special terms

ItemRefers to...
printf(3)UNIX manual pages, execute man 3 printf
<PageUp>named keys
<create-alias>named Mutt function
^GControl+G key combination
$mail_checkMutt configuration option
$HOMEenvironment variable

Examples are presented as:

 mutt -v
 

-Within command synopsis, curly brackets (“{}”) denote a set +Within command synopsis, curly brackets (“{}”) denote a set of options of which one is mandatory, square brackets -(“[]”) denote optional arguments, three dots +(“[]”) denote optional arguments, three dots denote that the argument may be repeated arbitrary times. -

7. Copyright

+

7. Copyright

Mutt is Copyright © 1996-2009 Michael R. Elkins and others.

-This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. -

-This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. -

-You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -

Chapter 2. Getting Started

-This section is intended as a brief overview of how to use Mutt. There are -many other features which are described elsewhere in the manual. There -is even more information available in the Mutt FAQ and various web -pages. See the Mutt homepage for more details. -

-The keybindings described in this section are the defaults as distributed. -Your local system administrator may have altered the defaults for your site. -You can always type “?” in any menu to display the current bindings. -

-The first thing you need to do is invoke Mutt, simply by typing mutt -at the command line. There are various command-line options, see -either the Mutt man page or the reference. -

1. Core Concepts

+This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2 of the License, or (at your +option) any later version. +

+This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. +

+You should have received a copy of the GNU General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +

Chapter 2. Getting Started

+This section is intended as a brief overview of how to use Mutt. There +are many other features which are described elsewhere in the manual. +There is even more information available in the Mutt FAQ and various web +pages. See the Mutt homepage +for more details. +

+The keybindings described in this section are the defaults as +distributed. Your local system administrator may have altered the +defaults for your site. You can always type “?” in any +menu to display the current bindings. +

+The first thing you need to do is invoke Mutt, simply by typing +mutt at the command line. There are various +command-line options, see either the Mutt man page or the reference. +

1. Core Concepts

Mutt is a text-based application which interacts with users through different menus which are mostly line-/entry-based or page-based. A -line-based menu is the so-called “index” menu (listing all messages of -the currently opened folder) or the “alias” menu (allowing you to -select recipients from a list). Examples for page-based menus are the -“pager” (showing one message at a time) or the “help” menu listing -all available key bindings. +line-based menu is the so-called “index” menu (listing all +messages of the currently opened folder) or the “alias” +menu (allowing you to select recipients from a list). Examples for +page-based menus are the “pager” (showing one message at a +time) or the “help” menu listing all available key +bindings.

The user interface consists of a context sensitive help line at the top, the menu's contents followed by a context sensitive status line and @@ -148,34 +153,34 @@ files. Mutt supports a rich config file syntax to make even complex configuration files readable and commentable.

Because Mutt allows for customizing almost all key bindings, there are -so-called “functions” which can be executed manually (using the -command line) or in macros. Macros allow the user to bind a sequence of -commands to a single key or a short key sequence instead of repeating a -sequence of actions over and over. +so-called “functions” which can be executed manually (using +the command line) or in macros. Macros allow the user to bind a sequence +of commands to a single key or a short key sequence instead of repeating +a sequence of actions over and over.

Many commands (such as saving or copying a message to another folder) can be applied to a single message or a set of messages (so-called -“tagged” messages). To help selecting messages, Mutt provides a rich -set of message patterns (such as recipients, sender, body contents, date -sent/received, etc.) which can be combined into complex expressions -using the boolean and and or -operations as well as negating. These patterns can also be used to (for -example) search for messages or to limit the index to show only matching -messages. -

-Mutt supports a “hook” concept which allows the user to execute -arbitrary configuration commands and functions in certain situations -such as entering a folder, starting a new message or replying to an -existing one. These hooks can be used to highly customize Mutt's -behaviour including managing multiple identities, customizing the +“tagged” messages). To help selecting messages, Mutt +provides a rich set of message patterns (such as recipients, sender, +body contents, date sent/received, etc.) which can be combined into +complex expressions using the boolean and and +or operations as well as negating. These patterns +can also be used to (for example) search for messages or to limit the +index to show only matching messages. +

+Mutt supports a “hook” concept which allows the user to +execute arbitrary configuration commands and functions in certain +situations such as entering a folder, starting a new message or replying +to an existing one. These hooks can be used to highly customize Mutt's +behavior including managing multiple identities, customizing the display for a folder or even implementing auto-archiving based on a per-folder basis and much more.

Besides an interactive mode, Mutt can also be used as a command-line tool only send messages. It also supports a -mailx(1)-compatible interface, see Table 9.1, “Command line options” for a complete list of command-line +mailx(1)-compatible interface, see Table 9.1, “Command line options” for a complete list of command-line options. -

2. Screens and Menus

2.1. Index

+

2. Screens and Menus

2.1. Index

The index is the screen that you usually see first when you start Mutt. It gives an overview over your emails in the currently opened mailbox. By default, this is your system mailbox. The information you @@ -184,10 +189,10 @@ its flags (new email, important email, email that has been forwarded or replied to, tagged email, ...), the date when email was sent, its sender, the email size, and the subject. Additionally, the index also shows thread hierarchies: when you reply to an email, and the other -person replies back, you can see the other's person email in a +person replies back, you can see the other person's email in a "sub-tree" below. This is especially useful for personal email between a group of people or when you've subscribed to mailing lists. -

2.2. Pager

+

2.2. Pager

The pager is responsible for showing the email content. On the top of the pager you have an overview over the most important email headers like the sender, the recipient, the subject, and much more @@ -203,20 +208,20 @@ To give the user a good overview, it is possible to configure Mutt to show different things in the pager with different colors. Virtually everything that can be described with a regular expression can be colored, e.g. URLs, email addresses or smileys. -

2.3. File Browser

+

2.3. File Browser

The file browser is the interface to the local or remote file system. When selecting a mailbox to open, the browser allows custom sorting of items, limiting the items shown by a regular expression and a freely adjustable format of what to display in which way. It also allows for easy navigation through the file system when selecting file(s) to attach to a message, select multiple files to attach and many more. -

2.4. Help

+

2.4. Help

The help screen is meant to offer a quick help to the user. It lists the current configuration of key bindings and their associated commands including a short description, and currently unbound functions that still need to be associated with a key binding (or alternatively, they can be called via the Mutt command prompt). -

2.5. Compose Menu

+

2.5. Compose Menu

The compose menu features a split screen containing the information which really matter before actually sending a message by mail: who gets the message as what (recipients and who gets what kind of @@ -224,14 +229,14 @@ copy). Additionally, users may set security options like deciding whether to sign, encrypt or sign and encrypt a message with/for what keys. Also, it's used to attach messages, to re-edit any attachment including the message itself. -

2.6. Alias Menu

+

2.6. Alias Menu

The alias menu is used to help users finding the recipients of messages. For users who need to contact many people, there's no need to remember addresses or names completely because it allows for searching, too. The alias mechanism and thus the alias menu also features grouping several addresses by a shorter nickname, the actual alias, so that users don't have to select each single recipient manually. -

2.7. Attachment Menu

+

2.7. Attachment Menu

As will be later discussed in detail, Mutt features a good and stable MIME implementation, that is, it supports sending and receiving messages of arbitrary MIME types. The attachment menu displays a message's @@ -239,86 +244,81 @@ structure in detail: what content parts are attached to which parent part (which gives a true tree structure), which type is of what type and what size. Single parts may saved, deleted or modified to offer great and easy access to message's internals. -

3. Moving Around in Menus

+

3. Moving Around in Menus

The most important navigation keys common to line- or entry-based menus -are shown in Table 2.1, “Most common navigation keys in entry-based menus” and in -Table 2.2, “Most common navigation keys in page-based menus” for page-based menus. -

Table 2.1. Most common navigation keys in entry-based menus

KeyFunctionDescription
j or <Down><next-entry>move to the next entry
k or <Up><previous-entry>move to the previous entry
z or <PageDn><page-down>go to the next page
Z or <PageUp><page-up>go to the previous page
= or <Home><first-entry>jump to the first entry
* or <End><last-entry>jump to the last entry
q<quit>exit the current menu
?<help>list all keybindings for the current menu

Table 2.2. Most common navigation keys in page-based menus

KeyFunctionDescription
J or <Return><next-line>scroll down one line
<Backspace><previous-line>sroll up one line
K, <Space> or <PageDn><next-page>move to the next page
- or <PageUp><previous-page>move the previous page
<Home><top>move to the top
<End><bottom>move to the bottom

4. Editing Input Fields

4.1. Introduction

-Mutt has a built-in line editor for inputting text, e.g. email -addresses or filenames. The keys used to manipulate text input are -very similar to those of Emacs. See Table 2.3, “Most common line editor keys” for a full -reference of available functions, their default key bindings, and -short descriptions. +are shown in Table 2.1, “Most common navigation keys in entry-based menus” and in Table 2.2, “Most common navigation keys in page-based menus” for page-based menus. +

Table 2.1. Most common navigation keys in entry-based menus

KeyFunctionDescription
j or <Down><next-entry>move to the next entry
k or <Up><previous-entry>move to the previous entry
z or <PageDn><page-down>go to the next page
Z or <PageUp><page-up>go to the previous page
= or <Home><first-entry>jump to the first entry
* or <End><last-entry>jump to the last entry
q<quit>exit the current menu
?<help>list all keybindings for the current menu

Table 2.2. Most common navigation keys in page-based menus

KeyFunctionDescription
J or <Return><next-line>scroll down one line
<Backspace><previous-line>scroll up one line
K, <Space> or <PageDn><next-page>move to the next page
- or <PageUp><previous-page>move the previous page
<Home><top>move to the top
<End><bottom>move to the bottom

4. Editing Input Fields

4.1. Introduction

+Mutt has a built-in line editor for inputting text, e.g. email addresses +or filenames. The keys used to manipulate text input are very similar to +those of Emacs. See Table 2.3, “Most common line editor keys” for a full +reference of available functions, their default key bindings, and short +descriptions.

Table 2.3. Most common line editor keys

KeyFunctionDescription
^A or <Home><bol>move to the start of the line
^B or <Left><backward-char>move back one char
Esc B<backward-word>move back one word
^D or <Delete><delete-char>delete the char under the cursor
^E or <End><eol>move to the end of the line
^F or <Right><forward-char>move forward one char
Esc F<forward-word>move forward one word
<Tab><complete>complete filename or alias
^T<complete-query>complete address with query
^K<kill-eol>delete to the end of the line
Esc d<kill-eow>delete to the end of the word
^W<kill-word>kill the word in front of the cursor
^U<kill-line>delete entire line
^V<quote-char>quote the next typed key
<Up><history-up>recall previous string from history
<Down><history-down>recall next string from history
<BackSpace><backspace>kill the char in front of the cursor
Esc u<upcase-word>convert word to upper case
Esc l<downcase-word>convert word to lower case
Esc c<capitalize-word>capitalize the word
^Gn/aabort
<Return>n/afinish editing

-You can remap the editor functions using the -bind command. For example, to make -the <Delete> key delete the character in front of -the cursor rather than under, you could use: +You can remap the editor functions using the bind command. For example, to +make the <Delete> key delete the character in front of the cursor +rather than under, you could use:

 bind editor <delete> backspace
-

4.2. History

+

4.2. History

Mutt maintains a history for the built-in editor. The number of items -is controlled by the $history -variable and can be made persistent using an external file specified -using $history_file. -You may cycle through them at an editor prompt by using the -<history-up> and/or -<history-down> commands. But notice that Mutt -does not remember the currently entered text, it only cycles through -history and wraps around at the end or beginning. +is controlled by the $history variable +and can be made persistent using an external file specified using $history_file. You may cycle through them +at an editor prompt by using the <history-up> +and/or <history-down> commands. But notice that +Mutt does not remember the currently entered text, it only cycles +through history and wraps around at the end or beginning.

Mutt maintains several distinct history lists, one for each of the following categories: -

  • .muttrc commands

  • addresses and aliases

  • shell commands

  • filenames

  • patterns

  • everything else

-Mutt automatically filters out consecutively repeated items from the history. It -also mimics the behavior of some shells by ignoring items starting -with a space. The latter feature can be useful in macros to not clobber -the history's valuable entries with unwanted entries. -

5. Reading Mail

+

  • .muttrc commands

  • addresses and aliases

  • shell commands

  • filenames

  • patterns

  • everything else

+Mutt automatically filters out consecutively repeated items from the +history. It also mimics the behavior of some shells by ignoring items +starting with a space. The latter feature can be useful in macros to not +clobber the history's valuable entries with unwanted entries. +

5. Reading Mail

Similar to many other mail clients, there are two modes in which mail is read in Mutt. The first is a list of messages in the mailbox, which is -called the “index” menu in Mutt. The second mode is the display of the -message contents. This is called the “pager.” +called the “index” menu in Mutt. The second mode is the +display of the message contents. This is called the +“pager.”

The next few sections describe the functions provided in each of these modes. -

5.1. The Message Index

+

5.1. The Message Index

Common keys used to navigate through and manage messages in the index -are shown in Table 2.4, “Most common message index keys”. How messages are presented -in the index menu can be customized using the -$index_format variable. +are shown in Table 2.4, “Most common message index keys”. How messages are presented +in the index menu can be customized using the $index_format variable.

Table 2.4. Most common message index keys

KeyDescription
cchange to a different mailbox
Esc cchange to a folder in read-only mode
Ccopy the current message to another mailbox
Esc Cdecode a message and copy it to a folder
Esc sdecode a message and save it to a folder
Ddelete messages matching a pattern
ddelete the current message
Fmark as important
lshow messages matching a pattern
Nmark message as new
ochange the current sort method
Oreverse sort the mailbox
qsave changes and exit
ssave-message
Ttag messages matching a pattern
ttoggle the tag on a message
Esc ttoggle tag on entire message thread
Uundelete messages matching a pattern
uundelete-message
vview-attachments
xabort changes and exit
<Return>display-message
<Tab>jump to the next new or unread message
@show the author's full e-mail address
$save changes to mailbox
/search
Esc /search-reverse
^Lclear and redraw the screen
^Tuntag messages matching a pattern

In addition to who sent the message and the subject, a short summary of the disposition of each message is printed beside the message number. -Zero or more of the “flags” in Table 2.5, “Message status flags” -may appear, some of which can be turned on or off using these functions: -<set-flag> and -<clear-flag> -bound by default to “w” and “W” respectively. -

-Furthermore, the flags in Table 2.6, “Message recipient flags” reflect -who the message is addressed to. They can be customized with the -$to_chars variable. -

Table 2.5. Message status flags

FlagDescription
Dmessage is deleted (is marked for deletion)
dmessage has attachments marked for deletion
Kcontains a PGP public key
Nmessage is new
Omessage is old
Pmessage is PGP encrypted
rmessage has been replied to
Smessage is signed, and the signature is successfully verified
smessage is signed
!message is flagged
*message is tagged

Table 2.6. Message recipient flags

FlagDescription
+message is to you and you only
Tmessage is to you, but also to or cc'ed to others
Cmessage is cc'ed to you
Fmessage is from you
Lmessage is sent to a subscribed mailing list

5.2. The Pager

-By default, Mutt uses its builtin pager to display the contents of +Zero or more of the “flags” in Table 2.5, “Message status flags” may appear, some of which can be turned +on or off using these functions: <set-flag> and +<clear-flag> bound by default to +“w” and “W” respectively. +

+Furthermore, the flags in Table 2.6, “Message recipient flags” reflect +who the message is addressed to. They can be customized with the $to_chars variable. +

Table 2.5. Message status flags

FlagDescription
Dmessage is deleted (is marked for deletion)
dmessage has attachments marked for deletion
Kcontains a PGP public key
Nmessage is new
Omessage is old
Pmessage is PGP encrypted
rmessage has been replied to
Smessage is signed, and the signature is successfully verified
smessage is signed
!message is flagged
*message is tagged
nthread contains new messages (only if collapsed)
othread contains old messages (only if collapsed)

Table 2.6. Message recipient flags

FlagDescription
+message is to you and you only
Tmessage is to you, but also to or CC'ed to others
Cmessage is CC'ed to you
Fmessage is from you
Lmessage is sent to a subscribed mailing list

5.2. The Pager

+By default, Mutt uses its built-in pager to display the contents of messages (an external pager such as less(1) can be -configured, see $pager variable). -The pager is very similar to the Unix program less(1) +configured, see $pager variable). The +pager is very similar to the Unix program less(1) though not nearly as featureful.

Table 2.7. Most common pager keys

KeyDescription
<Return>go down one line
<Space>display the next page (or next message if at the end of a message)
-go back to the previous page
nsearch for next match
Sskip beyond quoted text
Ttoggle display of quoted text
?show keybindings
/regular expression search
Esc /backward regular expression search
\toggle highlighting of search matches
^jump to the top of the message

-In addition to key bindings in Table 2.7, “Most common pager keys”, -many of the functions from the index menu are also available in -the pager, such as <delete-message> or <copy-message> -(this is one advantage over using an external pager to view messages). +In addition to key bindings in Table 2.7, “Most common pager keys”, many of +the functions from the index menu are also available in the pager, such +as <delete-message> or +<copy-message> (this is one advantage over +using an external pager to view messages).

Also, the internal pager supports a couple other advanced features. For -one, it will accept and translate the “standard” nroff sequences for -bold and underline. These sequences are a series of either the letter, -backspace (“^H”), the letter again for bold or the letter, backspace, -“_” for denoting underline. Mutt will attempt to display these -in bold and underline respectively if your terminal supports them. If -not, you can use the bold and underline color -objects to specify a color or mono attribute for them. +one, it will accept and translate the “standard” nroff +sequences for bold and underline. These sequences are a series of either +the letter, backspace (“^H”), the letter again for bold or +the letter, backspace, “_” for denoting underline. Mutt +will attempt to display these in bold and underline respectively if your +terminal supports them. If not, you can use the bold and underline color objects to specify a +color or mono attribute for them.

Additionally, the internal pager supports the ANSI escape sequences for character attributes. Mutt translates them into the correct color and @@ -326,187 +326,181 @@ character settings. The sequences Mutt supports are:

 \e[Ps;Ps;..Ps;m
 

-where Ps can be one of the codes shown in -Table 2.8, “ANSI escape sequences”. -

Table 2.8. ANSI escape sequences

Escape codeDescription
0All attributes off
1Bold on
4Underline on
5Blink on
7Reverse video on
3<color>Foreground color is <color> (see Table 2.9, “Color sequences”)
4<color>Background color is <color> (see Table 2.9, “Color sequences”)

Table 2.9. Color sequences

Color codeColor
0Black
1Red
2Green
3Yellow
4Blue
5Magenta
6Cyan
7White

+where Ps can be one of the codes shown in Table 2.8, “ANSI escape sequences”. +

Table 2.8. ANSI escape sequences

Escape codeDescription
0All attributes off
1Bold on
4Underline on
5Blink on
7Reverse video on
3<color>Foreground color is <color> (see Table 2.9, “Color sequences”)
4<color>Background color is <color> (see Table 2.9, “Color sequences”)

Table 2.9. Color sequences

Color codeColor
0Black
1Red
2Green
3Yellow
4Blue
5Magenta
6Cyan
7White

Mutt uses these attributes for handling text/enriched -messages, and they can also be used by an external -autoview script for highlighting -purposes. -

Note

-If you change the colors for your -display, for example by changing the color associated with color2 for -your xterm, then that color will be used instead of green. -

Note

+messages, and they can also be used by an external autoview script for highlighting purposes. +

Note

+If you change the colors for your display, for example by changing the +color associated with color2 for your xterm, then that color will be +used instead of green. +

Note

Note that the search commands in the pager take regular expressions, -which are not quite the same as the more -complex patterns used by the search -command in the index. This is because patterns are used to select messages by -criteria whereas the pager already displays a selected message. -

5.3. Threaded Mode

-So-called “threads” provide a hierarchy of messages where +which are not quite the same as the more complex patterns used by the search command in the +index. This is because patterns are used to select messages by criteria +whereas the pager already displays a selected message. +

5.3. Threaded Mode

+So-called “threads” provide a hierarchy of messages where replies are linked to their parent message(s). This organizational form is extremely useful in mailing lists where different parts of the discussion diverge. Mutt displays threads as a tree structure.

-In Mutt, when a mailbox is sorted +In Mutt, when a mailbox is sorted by threads, there are a few additional functions available in the index and pager modes as shown in -Table 2.10, “Most common thread mode keys”. +Table 2.10, “Most common thread mode keys”.

Table 2.10. Most common thread mode keys

KeyFunctionDescription
^D<delete-thread>delete all messages in the current thread
^U<undelete-thread>undelete all messages in the current thread
^N<next-thread>jump to the start of the next thread
^P<previous-thread>jump to the start of the previous thread
^R<read-thread>mark the current thread as read
Esc d<delete-subthread>delete all messages in the current subthread
Esc u<undelete-subthread>undelete all messages in the current subthread
Esc n<next-subthread>jump to the start of the next subthread
Esc p<previous-subthread>jump to the start of the previous subthread
Esc r<read-subthread>mark the current subthread as read
Esc t<tag-thread>toggle the tag on the current thread
Esc v<collapse-thread>toggle collapse for the current thread
Esc V<collapse-all>toggle collapse for all threads
P<parent-message>jump to parent message in thread

-Collapsing a thread displays only the first message -in the thread and hides the others. This is useful when threads -contain so many messages that you can only see a handful of threads on -the screen. See %M in $index_format. -For example, you could use “%?M?(#%03M)&(%4l)?” in $index_format to optionally -display the number of hidden messages if the thread is -collapsed. The %?<char>?<if-part>&<else-part>? -syntax is explained in detail in -format string conditionals. +Collapsing a thread displays only the first message in the thread and +hides the others. This is useful when threads contain so many messages +that you can only see a handful of threads on the screen. See %M in +$index_format. For example, you +could use “%?M?(#%03M)&(%4l)?” in $index_format to optionally display the +number of hidden messages if the thread is collapsed. The +%?<char>?<if-part>&<else-part>? +syntax is explained in detail in format string conditionals.

Technically, every reply should contain a list of its parent messages in the thread tree, but not all do. In these cases, Mutt groups them by -subject which can be controlled using the -$strict_threads variable. -

5.4. Miscellaneous Functions

-In addition, the index and pager -menus have these interesting functions: +subject which can be controlled using the $strict_threads variable. +

5.4. Miscellaneous Functions

+In addition, the index and +pager menus have these interesting functions:

-<create-alias> (default: a) +<create-alias> +(default: a)

-Creates a new alias based upon the current message (or prompts for a -new one). Once editing is complete, an alias -command is added to the file specified by -the $alias_file variable -for future use -

Note

-Mutt does not read the $alias_file -upon startup so you must explicitly source the file. +Creates a new alias based upon the current message (or prompts for a new +one). Once editing is complete, an alias command is added to the +file specified by the $alias_file +variable for future use +

Note

+Mutt does not read the $alias_file +upon startup so you must explicitly source the file.

<check-traditional-pgp> (default: Esc P)

This function will search the current message for content signed or -encrypted with PGP the “traditional” way, that is, without proper -MIME tagging. Technically, this function will temporarily change -the MIME content types of the body parts containing PGP data; this -is similar to the <edit-type> function's -effect. +encrypted with PGP the “traditional” way, that is, without +proper MIME tagging. Technically, this function will temporarily change +the MIME content types of the body parts containing PGP data; this is +similar to the <edit-type> +function's effect.

<edit> (default: e)

-This command (available in the index and pager) allows you to -edit the raw current message as it's present in the mail folder. -After you have finished editing, the changed message will be -appended to the current folder, and the original message will be -marked for deletion; if the message is unchanged it won't be replaced. +This command (available in the index and pager) allows you to edit the +raw current message as it's present in the mail folder. After you have +finished editing, the changed message will be appended to the current +folder, and the original message will be marked for deletion; if the +message is unchanged it won't be replaced.

<edit-type> (default: -^E on the attachment menu, and in the pager and index menus; -^T on the compose menu) +^E on the attachment menu, and in the pager and index menus; ^T on the +compose menu)

-This command is used to temporarily edit an attachment's content -type to fix, for instance, bogus character set parameters. When -invoked from the index or from the pager, you'll have the -opportunity to edit the top-level attachment's content type. On the -attachment menu, you can change any +This command is used to temporarily edit an attachment's content type to +fix, for instance, bogus character set parameters. When invoked from +the index or from the pager, you'll have the opportunity to edit the +top-level attachment's content type. On the attachment menu, you can change any attachment's content type. These changes are not persistent, and get lost upon changing folders.

-Note that this command is also available on the compose -menu. There, it's used to fine-tune the properties of attachments you are going -to send. +Note that this command is also available on the compose menu. There, it's used to +fine-tune the properties of attachments you are going to send.

-<enter-command> (default: “:”) +<enter-command> +(default: “:”)

This command is used to execute any command you would normally put in a -configuration file. A common use is to check the settings of variables, or -in conjunction with macros to change settings on the -fly. +configuration file. A common use is to check the settings of variables, +or in conjunction with macros to change +settings on the fly.

-<extract-keys> (default: ^K) +<extract-keys> +(default: ^K)

This command extracts PGP public keys from the current or tagged message(s) and adds them to your PGP public key ring.

-<forget-passphrase> (default: -^F) +<forget-passphrase> (default: ^F)

-This command wipes the passphrase(s) from memory. It is useful, if -you misspelled the passphrase. +This command wipes the passphrase(s) from memory. It is useful, if you +misspelled the passphrase.

-<list-reply> (default: L) +<list-reply> (default: +L)

-Reply to the current or tagged message(s) by extracting any addresses which -match the regular expressions given by the lists or subscribe -commands, but also honor any Mail-Followup-To header(s) if the -$honor_followup_to -configuration variable is set. Using this when replying to messages posted -to mailing lists helps avoid duplicate copies being sent to the author of -the message you are replying to. +Reply to the current or tagged message(s) by extracting any addresses +which match the regular expressions given by the lists or +subscribe commands, but also honor any +Mail-Followup-To header(s) if the $honor_followup_to configuration +variable is set. Using this when replying to messages posted to mailing +lists helps avoid duplicate copies being sent to the author of the +message you are replying to.

-<pipe-message> (default: |) +<pipe-message> +(default: |)

-Asks for an external Unix command and pipes the current or -tagged message(s) to it. The variables $pipe_decode, $pipe_split, -$pipe_sep and $wait_key control the exact behavior of this function. +Asks for an external Unix command and pipes the current or tagged +message(s) to it. The variables $pipe_decode, $pipe_split, $pipe_sep and $wait_key control the exact behavior of this +function.

-<resend-message> (default: Esc e) +<resend-message> +(default: Esc e)

-Mutt takes the current message as a template for a -new message. This function is best described as "recall from arbitrary -folders". It can conveniently be used to forward MIME messages while -preserving the original mail structure. Note that the amount of headers -included here depends on the value of the $weed -variable. -

-This function is also available from the attachment menu. You can use this -to easily resend a message which was included with a bounce message +Mutt takes the current message as a template for a new message. This +function is best described as "recall from arbitrary folders". It can +conveniently be used to forward MIME messages while preserving the +original mail structure. Note that the amount of headers included here +depends on the value of the $weed variable. +

+This function is also available from the attachment menu. You can use +this to easily resend a message which was included with a bounce message as a message/rfc822 body part.

-<shell-escape> (default: !) +<shell-escape> +(default: !)

-Asks for an external Unix command and executes it. The $wait_key can be used to control -whether Mutt will wait for a key to be pressed when the command returns -(presumably to let the user read the output of the command), based on -the return status of the named command. If no command is given, an -interactive shell is executed. +Asks for an external Unix command and executes it. The $wait_key can be used to control whether Mutt +will wait for a key to be pressed when the command returns (presumably +to let the user read the output of the command), based on the return +status of the named command. If no command is given, an interactive +shell is executed.

-<toggle-quoted> (default: T) +<toggle-quoted> +(default: T)

-The pager uses the $quote_regexp variable to detect quoted text when -displaying the body of the message. This function toggles the display -of the quoted material in the message. It is particularly useful when -being interested in just the response and there is a large amount of -quoted text in the way. +The pager uses the $quote_regexp +variable to detect quoted text when displaying the body of the message. +This function toggles the display of the quoted material in the message. +It is particularly useful when being interested in just the response and +there is a large amount of quoted text in the way.

-<skip-quoted> (default: S) +<skip-quoted> +(default: S)

This function will go to the next line of non-quoted text which comes after a line of quoted text in the internal pager. -

6. Sending Mail

6.1. Introduction

-The bindings shown in Table 2.11, “Most common mail sending keys” are available in the -index and pager to start a new message. +

6. Sending Mail

6.1. Introduction

+The bindings shown in Table 2.11, “Most common mail sending keys” are available in +the index and pager to start a +new message.

Table 2.11. Most common mail sending keys

KeyFunctionDescription
m<compose>compose a new message
r<reply>reply to sender
g<group-reply>reply to all recipients
L<list-reply>reply to mailing list address
f<forward>forward message
b<bounce>bounce (remail) message
Esc k<mail-key>mail a PGP public key to someone

-Bouncing a message sends the message as-is to the recipient you -specify. Forwarding a message allows you to add comments or -modify the message you are forwarding. These items are discussed -in greater detail in the next section “Forwarding -and Bouncing Mail.” -

-Mutt will then enter the compose menu and prompt you for the -recipients to place on the “To:” header field when you hit m to start a new message. Next, it will ask -you for the “Subject:” field for the message, providing a default if -you are replying to or forwarding a message. You again -have the chance to adjust recipients, subject, and security settings -right before actually sending the message. See also -$askcc, -$askbcc, -$autoedit, -$bounce, -$fast_reply, -and $include -for changing how and if Mutt asks these questions. +Bouncing a message sends the message as-is to the +recipient you specify. Forwarding a message allows +you to add comments or modify the message you are forwarding. These +items are discussed in greater detail in the next section “Forwarding and Bouncing Mail.” +

+Mutt will then enter the compose menu and prompt +you for the recipients to place on the “To:” header field +when you hit m to start a new message. Next, it will +ask you for the “Subject:” field for the message, providing +a default if you are replying to or forwarding a message. You again have +the chance to adjust recipients, subject, and security settings right +before actually sending the message. See also $askcc, $askbcc, +$autoedit, $bounce, $fast_reply, and $include for changing how and if Mutt asks +these questions.

When replying, Mutt fills these fields with proper values depending on the reply type. The types of replying supported are: @@ -514,156 +508,167 @@ the reply type. The types of replying supported are: Reply to the author directly.

Group reply

Reply to the author as well to all recipients except you; this consults -alternates. +alternates.

List reply

Reply to all mailing list addresses found, either specified via -configuration or auto-detected. See Section 12, “Mailing Lists” for +configuration or auto-detected. See Section 12, “Mailing Lists” for details.

After getting recipients for new messages, forwards or replies, Mutt -will then automatically start your $editor on the message body. If the $edit_headers variable is -set, the headers will be at the top of the message in your editor. Any -messages you are replying to will be added in sort order to the message, -with appropriate $attribution, -$indent_string and -$post_indent_string. -When forwarding a message, if the $mime_forward variable is -unset, a copy of the forwarded message will be included. If you have -specified a $signature, it will -be appended to the message. +will then automatically start your $editor +on the message body. If the $edit_headers variable is set, the headers +will be at the top of the message in your editor. Any messages you are +replying to will be added in sort order to the message, with appropriate +$attribution, $indent_string and $post_indent_string. When +forwarding a message, if the $mime_forward variable is unset, a copy of +the forwarded message will be included. If you have specified a $signature, it will be appended to the +message.

Once you have finished editing the body of your mail message, you are -returned to the compose menu providing the functions -shown in Table 2.12, “Most common compose menu keys” to modify, send or postpone the -message. -

Table 2.12. Most common compose menu keys

KeyFunctionDescription
a<attach-file>attach a file
A<attach-message>attach message(s) to the message
Esc k<attach-key>attach a PGP public key
d<edit-description>edit description on attachment
D<detach-file>detach a file
t<edit-to>edit the To field
Esc f<edit-from>edit the From field
r<edit-reply-to>edit the Reply-To field
c<edit-cc>edit the Cc field
b<edit-bcc>edit the Bcc field
y<send-message>send the message
s<edit-subject>edit the Subject
S<smime-menu>select S/MIME options
f<edit-fcc>specify an “Fcc” mailbox
p<pgp-menu>select PGP options
P<postpone-message>postpone this message until later
q<quit>quit (abort) sending the message
w<write-fcc>write the message to a folder
i<ispell>check spelling (if available on your system)
^F<forget-passphrase>wipe passphrase(s) from memory

-The compose menu is also used to edit the attachments for a message which can be either files -or other messages. The <attach-message> function to will prompt you for a folder to -attach messages from. You can now tag messages in that folder and they -will be attached to the message you are sending. -

Note

-Note that certain -operations like composing a new mail, replying, forwarding, etc. are -not permitted when you are in that folder. The %r in -$status_format will change to -a “A” to indicate that you are in attach-message mode. -

6.2. Editing the Message Header

-When editing the header because of $edit_headers -being set, there are a several pseudo headers available which -will not be included in sent messages but trigger special Mutt behavior. -

6.2.1. Fcc: Pseudo Header

+returned to the compose menu providing the +functions shown in Table 2.12, “Most common compose menu keys” to modify, send or +postpone the message. +

Table 2.12. Most common compose menu keys

KeyFunctionDescription
a<attach-file>attach a file
A<attach-message>attach message(s) to the message
Esc k<attach-key>attach a PGP public key
d<edit-description>edit description on attachment
D<detach-file>detach a file
t<edit-to>edit the To field
Esc f<edit-from>edit the From field
r<edit-reply-to>edit the Reply-To field
c<edit-cc>edit the Cc field
b<edit-bcc>edit the Bcc field
y<send-message>send the message
s<edit-subject>edit the Subject
S<smime-menu>select S/MIME options
f<edit-fcc>specify an “Fcc” mailbox
p<pgp-menu>select PGP options
P<postpone-message>postpone this message until later
q<quit>quit (abort) sending the message
w<write-fcc>write the message to a folder
i<ispell>check spelling (if available on your system)
^F<forget-passphrase>wipe passphrase(s) from memory

+The compose menu is also used to edit the attachments for a message +which can be either files or other messages. The +<attach-message> function to will prompt you +for a folder to attach messages from. You can now tag messages in that +folder and they will be attached to the message you are sending. +

Note

+Note that certain operations like composing a new mail, replying, +forwarding, etc. are not permitted when you are in that folder. The %r +in $status_format will change to a +“A” to indicate that you are in attach-message mode. +

6.2. Editing the Message Header

+When editing the header because of $edit_headers being set, there are a +several pseudo headers available which will not be included in sent +messages but trigger special Mutt behavior. +

6.2.1. Fcc: Pseudo Header

If you specify

Fcc: filename

-as a header, Mutt will pick up filename -just as if you had used the <edit-fcc> function in the compose menu. -It can later be changed from the compose menu. -

6.2.2. Attach: Pseudo Header

+as a header, Mutt will pick up filename just as if +you had used the <edit-fcc> function in the +compose menu. It can later be changed from the +compose menu. +

6.2.2. Attach: Pseudo Header

You can also attach files to your message by specifying

Attach: filename [ description ]

-where filename is the file to attach and description is an -optional string to use as the description of the attached file. Spaces -in filenames have to be escaped using backslash (“\”). -The file can be removed as well as more added from the compose menu. -

6.2.3. Pgp: Pseudo Header

+where filename is the file to attach and +description is an optional string to use as the +description of the attached file. Spaces in filenames have to be escaped +using backslash (“\”). The file can be removed as well as +more added from the compose menu. +

6.2.3. Pgp: Pseudo Header

If you want to use PGP, you can specify

Pgp: [ E | S | S<id> ]

-“E” selects encryption, “S” selects signing and -“S<id>” selects signing with the given key, setting -$pgp_sign_as -permanently. The selection can later be changed in the compose menu. -

6.2.4. In-Reply-To: Header

-When replying to messages, the In-Reply-To: header contains the -Message-Id of the message(s) you reply to. If you remove or modify its value, Mutt will not generate a -References: field, which allows you to create a new message thread, for example -to create a new message to a mailing list without having to enter the mailing list's address. -

6.3. Sending Cryptographically Signed/Encrypted Messages

-If you have told Mutt to PGP or S/MIME encrypt a message, it will guide you -through a key selection process when you try to send the message. -Mutt will not ask you any questions about keys which have a -certified user ID matching one of the message recipients' mail -addresses. However, there may be situations in which there are -several keys, weakly certified user ID fields, or where no matching -keys can be found. +“E” selects encryption, “S” selects signing +and “S<id>” selects signing with the given key, +setting $pgp_sign_as permanently. The +selection can later be changed in the compose menu. +

6.2.4. In-Reply-To: Header

+When replying to messages, the In-Reply-To: header +contains the Message-Id of the message(s) you reply to. If you remove or +modify its value, Mutt will not generate a +References: field, which allows you to create a new +message thread, for example to create a new message to a mailing list +without having to enter the mailing list's address. +

+If you intend to start a new thread by replying, please make really sure +you remove the In-Reply-To: header in your +editor. Otherwise, though you'll produce a technically valid reply, some +netiquette guardians will be annoyed by this so-called “thread +hijacking”. +

6.3. Sending Cryptographically Signed/Encrypted Messages

+If you have told Mutt to PGP or S/MIME encrypt a message, it will guide +you through a key selection process when you try to send the message. +Mutt will not ask you any questions about keys which have a certified +user ID matching one of the message recipients' mail addresses. +However, there may be situations in which there are several keys, weakly +certified user ID fields, or where no matching keys can be found.

In these cases, you are dropped into a menu with a list of keys from -which you can select one. When you quit this menu, or Mutt can't -find any matching keys, you are prompted for a user ID. You can, as -usually, abort this prompt using ^G. When you do so, Mutt will -return to the compose screen. +which you can select one. When you quit this menu, or Mutt can't find +any matching keys, you are prompted for a user ID. You can, as usually, +abort this prompt using ^G. When you do so, Mutt +will return to the compose screen.

-Once you have successfully finished the key selection, the message -will be encrypted using the selected public keys when sent out. +Once you have successfully finished the key selection, the message will +be encrypted using the selected public keys when sent out.

-Most fields of the entries in the key selection menu (see also $pgp_entry_format) -have obvious meanings. But some explanations on the capabilities, flags, -and validity fields are in order. +Most fields of the entries in the key selection menu (see also $pgp_entry_format) have obvious +meanings. But some explanations on the capabilities, flags, and +validity fields are in order.

-The flags sequence (“%f”) will expand to one of the flags in -Table 2.13, “PGP key menu flags”. +The flags sequence (“%f”) will expand to one of the flags +in Table 2.13, “PGP key menu flags”.

Table 2.13. PGP key menu flags

FlagDescription
RThe key has been revoked and can't be used.
XThe key is expired and can't be used.
dYou have marked the key as disabled.
cThere are unknown critical self-signature packets.

-The capabilities field (“%c”) expands to a two-character sequence -representing a key's capabilities. The first character gives -the key's encryption capabilities: A minus sign (“-”) means -that the key cannot be used for encryption. A dot (“.”) means that -it's marked as a signature key in one of the user IDs, but may -also be used for encryption. The letter “e” indicates that -this key can be used for encryption. +The capabilities field (“%c”) expands to a two-character +sequence representing a key's capabilities. The first character gives +the key's encryption capabilities: A minus sign (“-”) means +that the key cannot be used for encryption. A dot (“.”) +means that it's marked as a signature key in one of the user IDs, but +may also be used for encryption. The letter “e” indicates +that this key can be used for encryption.

The second character indicates the key's signing capabilities. Once -again, a “-” implies “not for signing”, “.” implies -that the key is marked as an encryption key in one of the user-ids, and -“s” denotes a key which can be used for signing. -

-Finally, the validity field (“%t”) indicates how well-certified a user-id -is. A question mark (“?”) indicates undefined validity, a minus -character (“-”) marks an untrusted association, a space character -means a partially trusted association, and a plus character (“+”) -indicates complete validity. -

6.4. Sending Format=Flowed Messages

6.4.1. Concept

-format=flowed-style messages (or f=f -for short) are text/plain messages that consist of paragraphs which a receiver's -mail client may reformat to its own needs which mostly means to -customize line lengths regardless of what the sender sent. Technically this is -achieved by letting lines of a “flowable” paragraph end in spaces +again, a “-” implies “not for signing”, +“.” implies that the key is marked as an encryption key in +one of the user-ids, and “s” denotes a key which can be +used for signing. +

+Finally, the validity field (“%t”) indicates how +well-certified a user-id is. A question mark (“?”) +indicates undefined validity, a minus character (“-”) marks +an untrusted association, a space character means a partially trusted +association, and a plus character (“+”) indicates complete +validity. +

6.4. Sending Format=Flowed Messages

6.4.1. Concept

+format=flowed-style messages (or +f=f for short) are text/plain +messages that consist of paragraphs which a receiver's mail client may +reformat to its own needs which mostly means to customize line lengths +regardless of what the sender sent. Technically this is achieved by +letting lines of a “flowable” paragraph end in spaces except for the last line.

While for text-mode clients like Mutt it's the best way to assume only a standard 80x25 character cell terminal, it may be desired to let the receiver decide completely how to view a message. -

6.4.2. Mutt Support

+

6.4.2. Mutt Support

Mutt only supports setting the required format=flowed -MIME parameter on outgoing messages if the $text_flowed -variable is set, specifically it does not add the -trailing spaces. +MIME parameter on outgoing messages if the $text_flowed variable is set, specifically +it does not add the trailing spaces.

-After editing the initial message text and before entering -the compose menu, Mutt properly space-stuffes the message. +After editing the initial message text and before entering the compose +menu, Mutt properly space-stuffs the message. Space-stuffing is required by RfC3676 defining format=flowed and means to prepend a space to: -

  • all lines starting with a space

  • lines starting with the word “From” -followed by space

  • all lines starting with “>” which -is not intended to be a quote character

Note

-Mutt only supports space-stuffing -for the first two types of lines but not for the third: It is impossible to -safely detect whether a leading > character starts a -quote or not. Furthermore, Mutt only applies space-stuffing -once after the initial edit is finished. +

  • all lines starting with a space

  • lines starting with the word +“From” followed by +space

  • all lines starting with +“>” which is not intended to be a +quote character

Note

+Mutt only supports space-stuffing for the first two types of lines but +not for the third: It is impossible to safely detect whether a leading +> character starts a quote or not. Furthermore, +Mutt only applies space-stuffing once after the +initial edit is finished.

-All leading spaces are to be removed by receiving clients to restore -the original message prior to further processing. -

6.4.3. Editor Considerations

-As Mutt provides no additional features to compose f=f -messages, it's completely up to the user and his editor to produce -proper messages. Please consider your editor's documentation if you -intend to send f=f messages. +All leading spaces are to be removed by receiving clients to restore the +original message prior to further processing. +

6.4.3. Editor Considerations

+As Mutt provides no additional features to compose +f=f messages, it's completely up to the user and his +editor to produce proper messages. Please consider your editor's +documentation if you intend to send f=f messages.

Please note that when editing messages from the compose menu several times before really sending a mail, it's up to the user to ensure that @@ -673,113 +678,120 @@ For example, vim provides the formatoptions setting to assist in creating f=f messages, see :help fo-table for details. -

7. Forwarding and Bouncing Mail

+

7. Forwarding and Bouncing Mail

Bouncing and forwarding let you send an existing message to recipients that you specify. Bouncing a message sends a verbatim copy of a message to alternative addresses as if they were the message's original -recipients specified in the Bcc header. -Forwarding a message, on the other hand, allows you to modify the message -before it is resent (for example, by adding your own comments). Bouncing -is done using the <bounce> function and forwarding -using the <forward> function bound to “b” and “f” -respectively. +recipients specified in the Bcc header. Forwarding a message, on the +other hand, allows you to modify the message before it is resent (for +example, by adding your own comments). Bouncing is done using the +<bounce> function and forwarding using the +<forward> function bound to “b” +and “f” respectively.

Forwarding can be done by including the original message in the new -message's body (surrounded by indicating lines) or including it as a MIME -attachment, depending on the value of the $mime_forward variable. Decoding of attachments, -like in the pager, can be controlled by the $forward_decode and $mime_forward_decode variables, +message's body (surrounded by indicating lines) or including it as a +MIME attachment, depending on the value of the $mime_forward variable. Decoding of +attachments, like in the pager, can be controlled by the $forward_decode and $mime_forward_decode variables, respectively. The desired forwarding format may depend on the content, -therefore $mime_forward is a quadoption which, for -example, can be set to “ask-no”. +therefore $mime_forward is a +quadoption which, for example, can be set to “ask-no”.

The inclusion of headers is controlled by the current setting of the -$weed variable, unless $mime_forward is set. +$weed variable, unless $mime_forward is set.

Editing the message to forward follows the same procedure as sending or replying to a message does. -

8. Postponing Mail

+

8. Postponing Mail

At times it is desirable to delay sending a message that you have -already begun to compose. When the <postpone-message> function is -used in the compose menu, the body of your message and attachments -are stored in the mailbox specified by the $postponed variable. This means that you can recall the -message even if you exit Mutt and then restart it at a later time. -

-Once a message is postponed, there are several ways to resume it. From the -command line you can use the “-p” option, or if you compose a new -message from the index or pager you will be prompted if postponed -messages exist. If multiple messages are currently postponed, the -postponed menu will pop up and you can select which message you would -like to resume. -

Note

-If you postpone a reply to a message, the reply setting of -the message is only updated when you actually finish the message and -send it. Also, you must be in the same folder with the message you -replied to for the status of the message to be updated. +already begun to compose. When the +<postpone-message> function is used in the +compose menu, the body of your message and +attachments are stored in the mailbox specified by the $postponed variable. This means that you can +recall the message even if you exit Mutt and then restart it at a later +time. +

+Once a message is postponed, there are several ways to resume it. From +the command line you can use the “-p” option, or if you +compose a new message from the index or +pager you will be prompted if postponed messages +exist. If multiple messages are currently postponed, the +postponed menu will pop up and you can select which +message you would like to resume. +

Note

+If you postpone a reply to a message, the reply setting of the message +is only updated when you actually finish the message and send it. Also, +you must be in the same folder with the message you replied to for the +status of the message to be updated.

-See also the $postpone quad-option. -

Chapter 3. Configuration

1. Location of Initialization Files

-While the default configuration (or “preferences”) make Mutt -usable right out of the box, it is often desirable to tailor Mutt to -suit your own tastes. When Mutt is first invoked, it will attempt to -read the “system” configuration file (defaults set by your local -system administrator), unless the “-n” command line option is specified. This file is typically -/usr/local/share/mutt/Muttrc or /etc/Muttrc. Mutt -will next look for a file named .muttrc in your home -directory. If this file does not exist and your home directory has -a subdirectory named .mutt, Mutt tries to load a file named +See also the $postpone quad-option. +

Chapter 3. Configuration

1. Location of Initialization Files

+While the default configuration (or “preferences”) make +Mutt usable right out of the box, it is often desirable to tailor Mutt +to suit your own tastes. When Mutt is first invoked, it will attempt to +read the “system” configuration file (defaults set by your +local system administrator), unless the “-n” command line option is specified. This +file is typically /usr/local/share/mutt/Muttrc or +/etc/Muttrc. Mutt will next look for a file named +.muttrc in your home directory. If this file does +not exist and your home directory has a subdirectory named +.mutt, Mutt tries to load a file named .mutt/muttrc.

-.muttrc is the file where you will usually place your commands to configure Mutt. +.muttrc is the file where you will usually place your +commands to configure Mutt.

In addition, Mutt supports version specific configuration files that are -parsed instead of the default files as explained above. For instance, if -your system has a Muttrc-0.88 file in the system configuration -directory, and you are running version 0.88 of Mutt, this file will be -sourced instead of the Muttrc file. The same is true of the user -configuration file, if you have a file .muttrc-0.88.6 in your home -directory, when you run Mutt version 0.88.6, it will source this file -instead of the default .muttrc file. The version number is the -same which is visible using the “-v” command line switch or using the show-version key (default: -V) from the index menu. -

2. Syntax of Initialization Files

-An initialization file consists of a series of commands. Each line of the file may contain one or more commands. -When multiple commands are used, they must be separated by a semicolon -(“;”). +parsed instead of the default files as explained above. For instance, +if your system has a Muttrc-0.88 file in the system +configuration directory, and you are running version 0.88 of Mutt, this +file will be sourced instead of the Muttrc file. The +same is true of the user configuration file, if you have a file +.muttrc-0.88.6 in your home directory, when you run +Mutt version 0.88.6, it will source this file instead of the default +.muttrc file. The version number is the same which +is visible using the “-v” command line switch or using the +show-version key (default: V) from the index menu. +

2. Syntax of Initialization Files

+An initialization file consists of a series of commands. Each line of the file may contain +one or more commands. When multiple commands are used, they must be +separated by a semicolon (“;”).

Example 3.1. Multiple configuration commands per line

 set realname='Mutt user' ; ignore x-
 

-The hash mark, or pound sign -(“#”), is used as a “comment” character. You can use it to -annotate your initialization file. All text after the comment character -to the end of the line is ignored. +The hash mark, or pound sign (“#”), is used as a +“comment” character. You can use it to annotate your +initialization file. All text after the comment character to the end of +the line is ignored.

Example 3.2. Commenting configuration files

-my_hdr X-Disclaimer: Why are you listening to me? # This is a comment
+my_hdr X-Disclaimer: Why are you listening to me? # This is a comment
 

-Single quotes (“'”) and double quotes (“"”) can be used to quote strings -which contain spaces or other special characters. The difference between -the two types of quotes is similar to that of many popular shell programs, -namely that a single quote is used to specify a literal string (one that is -not interpreted for shell variables or quoting with a backslash [see -next paragraph]), while double quotes indicate a string for which -should be evaluated. For example, backticks are evaluated inside of double -quotes, but not for single quotes. -

-“\” quotes the next character, just as in shells such as bash and zsh. -For example, if want to put quotes “"” inside of a string, you can use -“\” to force the next character to be a literal instead of interpreted -character. -

Example 3.3. Escaping quotes in congfiguration files

+Single quotes (“'”) and double quotes (“"”)
+can be used to quote strings which contain spaces or other special
+characters.  The difference between the two types of quotes is similar
+to that of many popular shell programs, namely that a single quote is
+used to specify a literal string (one that is not interpreted for shell
+variables or quoting with a backslash [see next paragraph]), while
+double quotes indicate a string for which should be evaluated.  For
+example, backticks are evaluated inside of double quotes, but
+not for single quotes.
+

+“\” quotes the next character, just as in shells such as +bash and zsh. For example, if want to put quotes “"” +inside of a string, you can use “\” to force the next +character to be a literal instead of interpreted character. +

Example 3.3. Escaping quotes in configuration files

 set realname="Michael \"MuttDude\" Elkins"
 

-“\\” means to insert a literal “\” into the line. -“\n” and “\r” have their usual C meanings of linefeed and +“\\” means to insert a literal “\” into the line. +“\n” and “\r” have their usual C meanings of linefeed and carriage-return, respectively.

-A “\” at the end of a line can be used to split commands over -multiple lines as it “escapes” the line end, provided that the split points don't appear in the -middle of command names. Lines are first concatenated before -interpretation so that a multi-line can be commented by commenting out -the first line only. +A “\” at the end of a line can be used to split commands +over multiple lines as it “escapes” the line end, provided +that the split points don't appear in the middle of command names. Lines +are first concatenated before interpretation so that a multi-line can be +commented by commenting out the first line only.

Example 3.4. Splitting long configuration commands over several lines

 set status_format="some very \
 long value split \
@@ -787,53 +799,52 @@ over several lines"
 

It is also possible to substitute the output of a Unix command in an initialization file. This is accomplished by enclosing the command in -backticks (``). In Example 3.5, “Using external command's output in configuration files”, the output of the -Unix command “uname -a” will be substituted before the -line is parsed. -Since initialization files are line oriented, only -the first line of output from the Unix command will be substituted. +backticks (``). In Example 3.5, “Using external command's output in configuration files”, the output of the +Unix command “uname -a” will be substituted before the line +is parsed. Since initialization files are line oriented, only the first +line of output from the Unix command will be substituted.

Example 3.5. Using external command's output in configuration files

 my_hdr X-Operating-System: `uname -a`
 

Both environment variables and Mutt variables can be accessed by -prepending “$” to the name of the variable. For example, +prepending “$” to the name of the variable. For example,

Example 3.6. Using environment variables in configuration files

 set record=+sent_on_$HOSTNAME
 

will cause Mutt to save outgoing messages to a folder named -“sent_on_kremvax” if the environment variable $HOSTNAME is set to -“kremvax.” (See $record for -details.) +“sent_on_kremvax” if the environment variable +$HOSTNAME is set to “kremvax.” (See +$record for details.)

Mutt expands the variable when it is assigned, not when it is used. If -the value of a variable on the right-hand side of an assignment -changes after the assignment, the variable on the left-hand side will -not be affected. +the value of a variable on the right-hand side of an assignment changes +after the assignment, the variable on the left-hand side will not be +affected.

The commands understood by Mutt are explained in the next paragraphs. -For a complete list, see the command reference. +For a complete list, see the command +reference.

All configuration files are expected to be in the current locale as -specified by the $charset variable -which doesn't have a default value since it's determined by Mutt at startup. +specified by the $charset variable which +doesn't have a default value since it's determined by Mutt at startup. If a configuration file is not encoded in the same character set the -$config_charset -variable should be used: all lines starting with the next are recoded -from $config_charset -to $charset. -

-This mechanism should be avoided if possible as it has the -following implications: -

  • These variables should be set early in a configuration -file with $charset preceding -$config_charset so Mutt -knows what character set to convert to.

  • If $config_charset is set, it should be set -in each configuration file because the value is global and not -per configuration file.

  • Because Mutt first recodes a line before it attempts to parse it, -a conversion introducing question marks or other characters as -part of errors (unconvertable characters, transliteration) may introduce syntax -errors or silently change the meaning of certain tokens (e.g. inserting -question marks into regular expressions).

3. Address Groups

Usage:

group [ +$config_charset variable should be +used: all lines starting with the next are recoded from $config_charset to $charset. +

+This mechanism should be avoided if possible as it has the following +implications: +

  • These variables should be set early in a configuration +file with $charset preceding $config_charset so Mutt knows what +character set to convert to.

  • If $config_charset +is set, it should be set in each configuration file because the value is +global and not per configuration +file.

  • Because Mutt first recodes a line before it attempts to +parse it, a conversion introducing question marks or other characters as +part of errors (unconvertable characters, transliteration) may introduce +syntax errors or silently change the meaning of certain tokens +(e.g. inserting question marks into regular +expressions).

3. Address Groups

Usage:

group [ -group name ...] { @@ -854,30 +865,51 @@ question marks into regular expressions).

-addr expr ... }

-group is used to directly add either addresses or -regular expressions to the specified group or groups. The different -categories of arguments to the group command can be -in any order. The flags -rx and +Mutt supports grouping addresses logically into named groups. An address +or address pattern can appear in several groups at the same time. These +groups can be used in patterns (for searching, limiting and tagging) and +in hooks by using group patterns. This can be useful to classify mail +and take certain actions depending on in what groups the message is. +For example, the mutt user's mailing list would fit into the categories +“mailing list” and “mutt-related”. Using send-hook, the sender can +be set to a dedicated one for writing mailing list messages, and the +signature could be set to a mutt-related one for writing to a mutt list +— for other lists, the list sender setting still applies but a +different signature can be selected. Or, given a group only containing +recipients known to accept encrypted mail, +“auto-encryption” can be achieved easily. +

+The group command is used to directly add either +addresses or regular expressions to the specified group or groups. The +different categories of arguments to the group +command can be in any order. The flags -rx and -addr specify what the following strings (that cannot begin with a hyphen) should be interpreted as: either a regular expression or an email address, respectively.

-These address groups can also be created implicitly by the -alias, lists, -subscribe and -alternates commands by specifying the -optional -group option. -

-Once defined, these address groups can be used in -patterns to search for and limit the -display to messages matching a group. -

-ungroup is used to remove addresses or regular -expressions from the specified group or groups. The syntax is similar to -the group command, however the special character -* can be used to empty a group of all of its -contents. -

4. Defining/Using Aliases

Usage:

alias [ +These address groups can also be created implicitly by the alias, lists, subscribe and alternates commands by +specifying the optional -group option. For example, +

+alternates -group me address1 address2
+alternates -group me -group work address3
+

+would create a group named “me” which contains all your +addresses and a group named “work” which contains only your +work address address3. Besides many other +possibilities, this could be used to automatically mark your own +messages in a mailing list folder as read or use a special signature for +work-related messages. +

+The ungroup command is used to remove addresses or +regular expressions from the specified group or groups. The syntax is +similar to the group command, however the special +character * can be used to empty a group of all of +its contents. As soon as a group gets empty because all addresses and +regular expressions have been removed, it'll internally be removed, too +(i.e. there cannot be an empty group). When removing regular expressions +from a group, the pattern must be specified exactly as given to the +group command or -group argument. +

4. Defining/Using Aliases

Usage:

alias [ -group name ...] @@ -894,53 +926,57 @@ contents. | key ... }

-It's usually very cumbersome to remember or type out the address of someone -you are communicating with. Mutt allows you to create “aliases” which map -a short string to a full address. -

Note

-If you want to create an alias for more than -one address, you must separate the addresses with a comma (“,”). +It's usually very cumbersome to remember or type out the address of +someone you are communicating with. Mutt allows you to create +“aliases” which map a short string to a full address. +

Note

+If you want to create an alias for more than one address, you +must separate the addresses with a comma +(“,”).

The optional -group argument to alias causes the aliased address(es) to be added to the named group.

-To remove an alias or aliases (“*” means all aliases): +To remove an alias or aliases (“*” means all aliases):

 alias muttdude me@cs.hmc.edu (Michael Elkins)
 alias theguys manny, moe, jack
 

-Unlike other mailers, Mutt doesn't require aliases to be defined -in a special file. The alias command can appear anywhere in -a configuration file, as long as this file is sourced. Consequently, you can have multiple alias files, or -you can have all aliases defined in your .muttrc. +Unlike other mailers, Mutt doesn't require aliases to be defined in a +special file. The alias command can appear anywhere +in a configuration file, as long as this file is sourced. Consequently, you +can have multiple alias files, or you can have all aliases defined in +your .muttrc.

On the other hand, the <create-alias> -function can use only one file, the one pointed to by the $alias_file variable (which is -˜/.muttrc by default). This file is not special either, -in the sense that Mutt will happily append aliases to any file, but in -order for the new aliases to take effect you need to explicitly source this file too. +function can use only one file, the one pointed to by the $alias_file variable (which is +~/.muttrc by default). This file is not special +either, in the sense that Mutt will happily append aliases to any file, +but in order for the new aliases to take effect you need to explicitly +source this file too.

Example 3.7. Configuring external alias files

 source /usr/local/share/Mutt.aliases
 source ~/.mail_aliases
 set alias_file=~/.mail_aliases
 

To use aliases, you merely use the alias at any place in Mutt where Mutt -prompts for addresses, such as the To: or Cc: prompt. You can -also enter aliases in your editor at the appropriate headers if you have the -$edit_headers variable set. +prompts for addresses, such as the To: or +Cc: prompt. You can also enter aliases in your +editor at the appropriate headers if you have the $edit_headers variable set.

-In addition, at the various address prompts, you can use the tab character -to expand a partial alias to the full alias. If there are multiple matches, -Mutt will bring up a menu with the matching aliases. In order to be -presented with the full list of aliases, you must hit tab without a partial -alias, such as at the beginning of the prompt or after a comma denoting -multiple addresses. +In addition, at the various address prompts, you can use the tab +character to expand a partial alias to the full alias. If there are +multiple matches, Mutt will bring up a menu with the matching aliases. +In order to be presented with the full list of aliases, you must hit tab +without a partial alias, such as at the beginning of the prompt or after +a comma denoting multiple addresses.

In the alias menu, you can select as many aliases as you want with the -select-entry key (default: <Return>), and use the -exit key (default: q) to return to the address prompt. -

5. Changing the Default Key Bindings

Usage:

bind +select-entry key (default: <Return>), and use +the exit key (default: q) to return to the address +prompt. +

5. Changing the Default Key Bindings

Usage:

bind map key @@ -950,26 +986,30 @@ In the alias menu, you can select as many aliases as you want with the This command allows you to change the default key bindings (operation invoked when pressing a key).

-map specifies in which menu the binding belongs. Multiple maps may -be specified by separating them with commas (no additional whitespace is -allowed). The currently defined maps are: +map specifies in which menu the binding belongs. +Multiple maps may be specified by separating them with commas (no +additional whitespace is allowed). The currently defined maps are:

generic

This is not a real menu, but is used as a fallback for all of the other menus except for the pager and editor modes. If a key is not defined in -another menu, Mutt will look for a binding to use in this menu. This allows -you to bind a key to a certain function in multiple menus instead of having -multiple bind statements to accomplish the same task. +another menu, Mutt will look for a binding to use in this menu. This +allows you to bind a key to a certain function in multiple menus instead +of having multiple bind statements to accomplish the +same task.

alias

The alias menu is the list of your personal aliases as defined in your -.muttrc. It is the mapping from a short alias name to the full email -address(es) of the recipient(s). +.muttrc. It is the mapping from a short alias name +to the full email address(es) of the recipient(s).

attach

-The attachment menu is used to access the attachments on received messages. +The attachment menu is used to access the attachments on received +messages.

browser

-The browser is used for both browsing the local directory structure, and for -listing all of your incoming mailboxes. +The browser is used for both browsing the local directory structure, and +for listing all of your incoming mailboxes.

editor

-The editor is the line-based editor the user enters text data. +The editor is used to allow the user to enter a single line of text, such as +the To or Subject prompts in the +compose menu.

index

The index is the list of messages contained in a mailbox.

compose

@@ -981,35 +1021,44 @@ listings. The pgp menu is used to select the OpenPGP keys used to encrypt outgoing messages.

smime

-The smime menu is used to select the OpenSSL certificates used to encrypt outgoing -messages. +The smime menu is used to select the OpenSSL certificates used to +encrypt outgoing messages.

postpone

The postpone menu is similar to the index menu, except is used when recalling a message the user was composing, but saved until later.

query

-The query menu is the browser for results returned by -$query_command. +The query menu is the browser for results returned by $query_command.

mix

The mixmaster screen is used to select remailer options for outgoing messages (if Mutt is compiled with Mixmaster support).

-key is the key (or key sequence) you wish to bind. To specify a -control character, use the sequence \Cx, where x is the -letter of the control character (for example, to specify control-A use -“\Ca”). Note that the case of x as well as \C is -ignored, so that \CA, \Ca, \cA and \ca are all +key is the key (or key sequence) you wish to bind. +To specify a control character, use the sequence +\Cx, where x is the letter of +the control character (for example, to specify control-A use +“\Ca”). Note that the case of x as +well as \C is ignored, so that +\CA, \Ca, +\cA and \ca are all equivalent. An alternative form is to specify the key as a three digit -octal number prefixed with a “\” (for example \177 is -equivalent to \c?). In addition, key may -be a symbolic name as shown in Table 3.1, “Symbolic key names”. +octal number prefixed with a “\” (for example +\177 is equivalent to \c?). In +addition, key may be a symbolic name as shown in +Table 3.1, “Symbolic key names”.

Table 3.1. Symbolic key names

Symbolic nameMeaning
\ttab
<tab>tab
<backtab>backtab / shift-tab
\rcarriage return
\nnewline
\eescape
<esc>escape
<up>up arrow
<down>down arrow
<left>left arrow
<right>right arrow
<pageup>Page Up
<pagedown>Page Down
<backspace>Backspace
<delete>Delete
<insert>Insert
<enter>Enter
<return>Return
<home>Home
<end>End
<space>Space bar
<f1>function key 1
<f10>function key 10

-key does not need to be enclosed in quotes unless it contains a -space (“ ”) or semi-colon (“;”). -

-function specifies which action to take when key is pressed. -For a complete list of functions, see the reference. The special function <noop> unbinds the specified key -sequence. -

6. Defining Aliases for Character Sets

Usage:

charset-hook +key does not need to be enclosed in quotes unless +it contains a space (“ ”) or semi-colon +(“;”). +

+function specifies which action to take when +key is pressed. For a complete list of functions, +see the reference. Note that the +bind expects function to be +specified without angle brackets. +

+The special function <noop> unbinds the +specified key sequence. +

6. Defining Aliases for Character Sets

Usage:

charset-hook alias charset @@ -1018,50 +1067,52 @@ sequence. local-charset

-The charset-hook command defines an alias for a character set. -This is useful to properly display messages which are tagged with a -character set name not known to Mutt. -

-The iconv-hook command defines a system-specific name for a -character set. This is helpful when your systems character -conversion library insists on using strange, system-specific names -for character sets. -

7. Setting Variables Based Upon Mailbox

Usage:

folder-hook +The charset-hook command defines an alias for a +character set. This is useful to properly display messages which are +tagged with a character set name not known to Mutt. +

+The iconv-hook command defines a system-specific name +for a character set. This is helpful when your systems character +conversion library insists on using strange, system-specific names for +character sets. +

7. Setting Variables Based Upon Mailbox

Usage:

folder-hook [!]regexp command

It is often desirable to change settings based on which mailbox you are -reading. The folder-hook command provides a method by which you can execute -any configuration command. regexp is a regular expression specifying -in which mailboxes to execute command before loading. If a mailbox -matches multiple folder-hooks, they are executed in the order given in the -.muttrc. -

Note

-If you use the “!” shortcut for $spoolfile at the beginning of the pattern, you must place it -inside of double or single quotes in order to distinguish it from the -logical not operator for the expression. -

Note

-Settings are not restored when you leave the mailbox. -For example, a command action to perform is to change the sorting method -based upon the mailbox being read: - +reading. The folder-hook command provides a method +by which you can execute any configuration command. +regexp is a regular expression specifying in which +mailboxes to execute command before loading. If a +mailbox matches multiple folder-hooks, they are +executed in the order given in the .muttrc. +

Note

+If you use the “!” shortcut for $spoolfile at the beginning of the pattern, +you must place it inside of double or single quotes in order to +distinguish it from the logical not operator for +the expression. +

Note

+Settings are not restored when you leave the +mailbox. For example, a command action to perform is to change the +sorting method based upon the mailbox being read:

 folder-hook mutt "set sort=threads"

- However, the sorting method is not restored to its previous value when -reading a different mailbox. To specify a default command, use the -pattern “.” before other folder-hooks adjusting a value on a per-folder basis -because folder-hooks are evaluated in the order given in the -configuration file. +reading a different mailbox. To specify a default +command, use the pattern “.” before other +folder-hooks adjusting a value on a per-folder basis +because folder-hooks are evaluated in the order given +in the configuration file.

-The following example will set the sort variable -to date-sent for all folders but to threads -for all folders containing “mutt” in their name. +The following example will set the sort +variable to date-sent for all folders but to +threads for all folders containing +“mutt” in their name.

Example 3.8. Setting sort method based on mailbox name

 folder-hook . "set sort=date-sent"
 folder-hook mutt "set sort=threads"
-

8. Keyboard Macros

Usage:

macro +


8. Keyboard Macros

Usage:

macro menu key @@ -1070,39 +1121,43 @@ folder-hook mutt "set sort=threads" [ description ]

-Macros are useful when you would like a single key to perform a series of -actions. When you press key in menu menu, Mutt will behave as if -you had typed sequence. So if you have a common sequence of commands -you type, you can create a macro to execute those commands with a single -key or fewer keys. -

-menu is the map which the macro will be bound in. -Multiple maps may be specified by separating multiple menu arguments by -commas. Whitespace may not be used in between the menu arguments and the -commas separating them. -

-key and sequence are expanded by the same rules as the -key bindings with some additions. The -first is that control characters in sequence can also be specified -as ^x. In order to get a caret (“^”) you need to use -^^. Secondly, to specify a certain key such as up -or to invoke a function directly, you can use the format -<key name> and <function name>. For a listing of key -names see the section on key bindings. Functions -are listed in the reference. +Macros are useful when you would like a single key to perform a series +of actions. When you press key in menu +menu, Mutt will behave as if you had typed +sequence. So if you have a common sequence of +commands you type, you can create a macro to execute those commands with +a single key or fewer keys. +

+menu is the map which +the macro will be bound in. Multiple maps may be specified by +separating multiple menu arguments by commas. Whitespace may not be used +in between the menu arguments and the commas separating them. +

+key and sequence are expanded +by the same rules as the key bindings with +some additions. The first is that control characters in +sequence can also be specified as +^x. In order to get a caret (“^”) you +need to use ^^. Secondly, to specify a certain key +such as up or to invoke a function directly, you +can use the format <key name> and +<function name>. For a listing of key names +see the section on key bindings. Functions +are listed in the reference.

The advantage with using function names directly is that the macros will -work regardless of the current key bindings, so they are not dependent on -the user having particular key definitions. This makes them more robust -and portable, and also facilitates defining of macros in files used by more -than one user (e.g., the system Muttrc). -

-Optionally you can specify a descriptive text after sequence, -which is shown in the help screens if they contain a description. -

Note

+work regardless of the current key bindings, so they are not dependent +on the user having particular key definitions. This makes them more +robust and portable, and also facilitates defining of macros in files +used by more than one user (e.g., the system Muttrc). +

+Optionally you can specify a descriptive text after +sequence, which is shown in the help screens if +they contain a description. +

Note

Macro definitions (if any) listed in the help screen(s), are silently truncated at the screen width, and are not wrapped. -

9. Using Color and Mono Video Attributes

Usage:

color +

9. Using Color and Mono Video Attributes

Usage:

color object foreground @@ -1137,48 +1192,61 @@ silently truncated at the screen width, and are not wrapped. | pattern ... }

-If your terminal supports color, you can spice up Mutt by creating your own -color scheme. To define the color of an object (type of information), you -must specify both a foreground color and a background color (it is not -possible to only specify one or the other). +If your terminal supports color, you can spice up Mutt by creating your +own color scheme. To define the color of an object (type of +information), you must specify both a foreground color +and a background color (it is not possible to only +specify one or the other).

-header and body match regexp -in the header/body of a message, index matches pattern -(see Section 2, “Patterns: Searching, Limiting and Tagging”) in the message index. +header and body match +regexp in the header/body of a message, +index matches pattern (see +Section 3, “Patterns: Searching, Limiting and Tagging”) in the message index.

object can be one of: -

  • attachment

  • bold (hiliting bold patterns in the body of messages)

  • error (error messages printed by Mutt)

  • hdrdefault (default color of the message header in the pager)

  • indicator (arrow or bar used to indicate the current item in a menu)

  • markers (the “+” markers at the beginning of wrapped lines in the pager)

  • message (informational messages)

  • normal

  • quoted (text matching $quote_regexp in the body of a message)

  • quoted1, quoted2, ..., quotedN (higher levels of quoting)

  • search (hiliting of words in the pager)

  • signature

  • status (mode lines used to display info about the mailbox or message)

  • tilde (the “˜” used to pad blank lines in the pager)

  • tree (thread tree drawn in the message index and attachment menu)

  • underline (hiliting underlined patterns in the body of messages)

-foreground and background can be one of the following: -

  • white

  • black

  • green

  • magenta

  • blue

  • cyan

  • yellow

  • red

  • default

  • colorx

-foreground can optionally be prefixed with the keyword bright to make -the foreground color boldfaced (e.g., brightred). -

-If your terminal supports it, the special keyword default can be -used as a transparent color. The value brightdefault is also valid. -If Mutt is linked against the S-Lang library, you also need to set -the $COLORFGBG environment variable to the default colors of your -terminal for this to work; for example (for Bourne-like shells): +

  • attachment

  • bold (highlighting bold patterns in the body of messages)

  • error (error messages printed by Mutt)

  • hdrdefault (default color of the message header in the pager)

  • indicator (arrow or bar used to indicate the current item in a menu)

  • markers (the “+” markers at the beginning of wrapped lines in the pager)

  • message (informational messages)

  • normal

  • quoted (text matching $quote_regexp in the body of a message)

  • quoted1, quoted2, ..., quotedN (higher levels of quoting)

  • search (highlighting of words in the pager)

  • signature

  • status (mode lines used to display info about the mailbox or message)

  • tilde (the “~” used to pad blank lines in the pager)

  • tree (thread tree drawn in the message index and attachment menu)

  • underline (highlighting underlined patterns in the body of messages)

+foreground and background can +be one of the following: +

  • white

  • black

  • green

  • magenta

  • blue

  • cyan

  • yellow

  • red

  • default

  • colorx

+foreground can optionally be prefixed with the +keyword bright to make the foreground color boldfaced +(e.g., brightred). +

+If your terminal supports it, the special keyword +default can be used as a transparent color. The +value brightdefault is also valid. If Mutt is +linked against the S-Lang library, you also need to +set the $COLORFGBG environment variable to the +default colors of your terminal for this to work; for example (for +Bourne-like shells):

 set COLORFGBG="green;black"
 export COLORFGBG
-

Note

-The S-Lang library requires you to use the lightgray -and brown keywords instead of white and yellow when -setting this variable. -

Note

-The uncolor command can be applied to the index, header and body objects only. It -removes entries from the list. You must specify the same pattern -specified in the color command for it to be removed. The pattern “*” is -a special token which means to clear the color list of all entries. +

Note

+The S-Lang library requires you to use the +lightgray and brown keywords +instead of white and yellow +when setting this variable. +

Note

+The uncolor command can be applied to the index, +header and body objects only. It removes entries from the list. You +must specify the same pattern specified in the +color command for it to be removed. The pattern +“*” is a special token which means to clear the color list +of all entries.

-Mutt also recognizes the keywords color0, color1, …, -colorN-1 (N being the number of colors supported -by your terminal). This is useful when you remap the colors for your -display (for example by changing the color associated with color2 -for your xterm), since color names may then lose their normal meaning. +Mutt also recognizes the keywords color0, +color1, ..., +colorN-1 +(N being the number of colors supported by your +terminal). This is useful when you remap the colors for your display +(for example by changing the color associated with +color2 for your xterm), since color names may then +lose their normal meaning.

-If your terminal does not support color, it is still possible change the video -attributes through the use of the “mono” command. Usage: +If your terminal does not support color, it is still possible change the +video attributes through the use of the “mono” +command. Usage:

mono object @@ -1208,9 +1276,15 @@ attributes through the use of the “mono” command. | pattern ... }

-For object, see the color command. attribute -can be one of the following: -

  • none

  • bold

  • underline

  • reverse

  • standout

10. Message Header Display

10.1. Selecting Headers

Usage:

ignore +For object, see the color +command. attribute can be one of the following: +

  • none

  • bold

  • underline

  • reverse

  • standout

10. Message Header Display

10.1. Header Display

+When displaying a message in the pager, Mutt folds long header lines at +$wrap columns. Though there're precise rules +about where to break and how, Mutt always folds headers using a tab for +readability. (Note that the sending side is not affected by this, Mutt +tries to implement standards compliant folding.) +

10.2. Selecting Headers

Usage:

ignore pattern [ pattern @@ -1219,26 +1293,30 @@ can be one of the following: | pattern ... }

-Messages often have many header fields added by automatic processing systems, -or which may not seem useful to display on the screen. This command allows -you to specify header fields which you don't normally want to see in the pager. +Messages often have many header fields added by automatic processing +systems, or which may not seem useful to display on the screen. This +command allows you to specify header fields which you don't normally +want to see in the pager.

You do not need to specify the full header field name. For example, -“ignore content-” will ignore all header fields that begin with the pattern -“content-”. “ignore *” will ignore all headers. +“ignore content-” will ignore all header fields that begin +with the pattern “content-”. “ignore *” will +ignore all headers.

-To remove a previously added token from the list, use the “unignore” command. -The “unignore” command will make Mutt display headers with the given pattern. -For example, if you do “ignore x-” it is possible to “unignore x-mailer”. +To remove a previously added token from the list, use the +“unignore” command. The “unignore” command +will make Mutt display headers with the given pattern. For example, if +you do “ignore x-” it is possible to “unignore +x-mailer”.

-“unignore *” will remove all tokens from the ignore list. +“unignore *” will remove all tokens from the ignore list.

Example 3.9. Header weeding

-# Sven's draconian header weeding
+# Sven's draconian header weeding
 ignore *
 unignore from date subject to cc
 unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
 unignore posted-to:
-

10.2. Ordering Displayed Headers

Usage:

hdr_order +


10.3. Ordering Displayed Headers

Usage:

hdr_order header [ header @@ -1247,14 +1325,16 @@ unignore posted-to: | header ... }

-With the hdr_order command you can specify an order in -which Mutt will attempt to present these headers to you when viewing messages. +With the hdr_order command you can specify an order +in which Mutt will attempt to present these headers to you when viewing +messages.

-“unhdr_order *” will clear all previous headers from the order list, -thus removing the header order effects set by the system-wide startup file. +“unhdr_order *” will clear all previous +headers from the order list, thus removing the header order effects set +by the system-wide startup file.

Example 3.10. Configuring header display order

 hdr_order From Date: From: To: Cc: Subject:
-

11. Alternative Addresses

Usage:

alternates [ +


11. Alternative Addresses

Usage:

alternates [ -group name ...] @@ -1269,17 +1349,17 @@ hdr_order From Date: From: To: Cc: Subject: | regexp ... }

-With various functions, Mutt will treat messages differently, -depending on whether you sent them or whether you received them from -someone else. For instance, when replying to a message that you -sent to a different party, Mutt will automatically suggest to send -the response to the original message's recipients — responding to -yourself won't make much sense in many cases. (See $reply_to.) +With various functions, Mutt will treat messages differently, depending +on whether you sent them or whether you received them from someone else. +For instance, when replying to a message that you sent to a different +party, Mutt will automatically suggest to send the response to the +original message's recipients — responding to yourself won't make +much sense in many cases. (See $reply_to.)

Many users receive e-mail under a number of different addresses. To -fully use Mutt's features here, the program must be able to -recognize what e-mail addresses you receive mail under. That's the -purpose of the alternates command: It takes a list of regular +fully use Mutt's features here, the program must be able to recognize +what e-mail addresses you receive mail under. That's the purpose of the +alternates command: It takes a list of regular expressions, each of which can identify an address under which you receive e-mail.

@@ -1289,38 +1369,38 @@ as possible to avoid mismatches. For example, if you specify:

 alternates user@example
 

-Mutt will consider “some-user@example” as -being your address, too which may not be desired. As a solution, in such -cases addresses should be specified as: +Mutt will consider “some-user@example” +as being your address, too which may not be desired. As a solution, in +such cases addresses should be specified as:

 alternates '^user@example$'
 

-The -group flag causes all of the subsequent regular expressions -to be added to the named group. -

-The unalternates command can be used to write exceptions to -alternates patterns. If an address matches something in an -alternates command, but you nonetheless do not think it is -from you, you can list a more precise pattern under an unalternates -command. -

-To remove a regular expression from the alternates list, use the -unalternates command with exactly the same regexp. -Likewise, if the regexp for an alternates command matches -an entry on the unalternates list, that unalternates -entry will be removed. If the regexp for unalternates -is “*”, all entries on alternates will be removed. -

12. Mailing Lists

Usage:

lists [ +The -group flag causes all of the subsequent regular +expressions to be added to the named group. +

+The unalternates command can be used to write +exceptions to alternates patterns. If an address +matches something in an alternates command, but you +nonetheless do not think it is from you, you can list a more precise +pattern under an unalternates command. +

+To remove a regular expression from the alternates +list, use the unalternates command with exactly the +same regexp. Likewise, if the +regexp for an alternates command +matches an entry on the unalternates list, that +unalternates entry will be removed. If the +regexp for unalternates is +“*”, all entries on +alternates will be removed. +

12. Mailing Lists

Usage:

lists [ -group name ...] regexp [ regexp -...]
unlists [ --group -name -...] { +...]
unlists { * | regexp @@ -1331,84 +1411,84 @@ is “*”, all entriesregexp [ regexp -...]
unsubscribe [ --group -name -...] { +...]
unsubscribe { * | regexp ... }

-Mutt has a few nice features for handling mailing lists. In order to take advantage of them, you must -specify which addresses belong to mailing lists, and which mailing -lists you are subscribed to. Mutt also has limited support for -auto-detecting mailing lists: it supports parsing -mailto: links in the common -List-Post: header which has the same effect as -specifying the list address via the lists command -(except the group feature). Once you have done this, the -<list-reply> -function will work for all known lists. -Additionally, when you send a message to a subscribed list, Mutt will -add a Mail-Followup-To header to tell other users' mail user agents -not to send copies of replies to your personal address. -

Note

+Mutt has a few nice features for handling +mailing lists. In order to take advantage of them, you must +specify which addresses belong to mailing lists, and which mailing lists +you are subscribed to. Mutt also has limited support for auto-detecting +mailing lists: it supports parsing mailto: links in +the common List-Post: header which has the same +effect as specifying the list address via the lists +command (except the group feature). Once you have done this, the <list-reply> +function will work for all known lists. Additionally, when you send a +message to a subscribed list, Mutt will add a Mail-Followup-To header to +tell other users' mail user agents not to send copies of replies to your +personal address. +

Note

The Mail-Followup-To header is a non-standard extension which is not -supported by all mail user agents. Adding it is not bullet-proof against -receiving personal CCs of list messages. Also note that the generation -of the Mail-Followup-To header is controlled by the -$followup_to -configuration variable since it's common practice on some mailing lists -to send Cc upons replies (which is more a group- than a list-reply). +supported by all mail user agents. Adding it is not bullet-proof +against receiving personal CCs of list messages. Also note that the +generation of the Mail-Followup-To header is controlled by the $followup_to configuration variable since +it's common practice on some mailing lists to send Cc upon replies +(which is more a group- than a list-reply).

-More precisely, Mutt maintains lists of patterns for the addresses -of known and subscribed mailing lists. Every subscribed mailing -list is known. To mark a mailing list as known, use the list +More precisely, Mutt maintains lists of patterns for the addresses of +known and subscribed mailing lists. Every subscribed mailing list is +known. To mark a mailing list as known, use the list command. To mark it as subscribed, use subscribe.

-You can use regular expressions with both commands. To mark all -messages sent to a specific bug report's address on Debian's bug -tracking system as list mail, for instance, you could say +You can use regular expressions with both commands. To mark all messages +sent to a specific bug report's address on Debian's bug tracking system +as list mail, for instance, you could say

 subscribe [0-9]*.*@bugs.debian.org

-as it's often, it's sufficient to just give a portion of the list's e-mail address. +as it's often sufficient to just give a portion of the list's e-mail +address.

Specify as much of the address as you need to to remove ambiguity. For -example, if you've subscribed to the Mutt mailing list, you will receive mail -addressed to mutt-users@mutt.org. So, to tell Mutt -that this is a mailing list, you could add lists mutt-users@ to your -initialization file. To tell Mutt that you are subscribed to it, -add subscribe mutt-users to your initialization file instead. -If you also happen to get mail from someone whose address is +example, if you've subscribed to the Mutt mailing list, you will receive +mail addressed to mutt-users@mutt.org. So, to tell +Mutt that this is a mailing list, you could add lists +mutt-users@ to your initialization file. To tell Mutt that +you are subscribed to it, add subscribe +mutt-users to your initialization file instead. If you also +happen to get mail from someone whose address is mutt-users@example.com, you could use -lists ^mutt-users@mutt\\.org$ -or subscribe ^mutt-users@mutt\\.org$ to -match only mail from the actual list. -

-The -group flag adds all of the subsequent regular expressions -to the named group. -

-The “unlists” command is used to remove a token from the list of -known and subscribed mailing-lists. Use “unlists *” to remove all -tokens. -

-To remove a mailing list from the list of subscribed mailing lists, -but keep it on the list of known mailing lists, use unsubscribe. -

13. Using Multiple Spool Mailboxes

Usage:

mbox-hook +lists ^mutt-users@mutt\\.org$ or +subscribe ^mutt-users@mutt\\.org$ +to match only mail from the actual list. +

+The -group flag adds all of the subsequent regular +expressions to the named address group +in addition to adding to the specified address list. +

+The “unlists” command is used to remove a token from the +list of known and subscribed mailing-lists. Use “unlists *” +to remove all tokens. +

+To remove a mailing list from the list of subscribed mailing lists, but +keep it on the list of known mailing lists, use +unsubscribe. +

13. Using Multiple Spool Mailboxes

Usage:

mbox-hook [!]pattern mailbox

This command is used to move read messages from a specified mailbox to a different mailbox automatically when you quit or change folders. -pattern is a regular expression specifying the mailbox to treat as a -“spool” mailbox and mailbox specifies where mail should be saved when +pattern is a regular expression specifying the +mailbox to treat as a “spool” mailbox and +mailbox specifies where mail should be saved when read.

-Unlike some of the other hook commands, only the first matching -pattern is used (it is not possible to save read mail in more than a single -mailbox). -

14. Monitoring Incoming Mail

Usage:

mailboxes +Unlike some of the other hook commands, only the +first matching pattern is used (it is not possible +to save read mail in more than a single mailbox). +

14. Monitoring Incoming Mail

Usage:

mailboxes mailbox [ mailbox @@ -1417,132 +1497,119 @@ mailbox). | mailbox ... }

-This command specifies folders which can receive mail and -which will be checked for new messages periodically. +This command specifies folders which can receive mail and which will be +checked for new messages periodically.

folder can either be a local file or directory (Mbox/Mmdf or Maildir/Mh). If Mutt was built with POP and/or IMAP support, folder can also be a POP/IMAP folder -URL. The URL syntax is described in Section 1.2, “URL Syntax”, -POP and IMAP are described in Section 3, “POP3 Support” and Section 4, “IMAP Support” -respectively. +URL. The URL syntax is described in Section 1.2, “URL Syntax”, POP +and IMAP are described in Section 3, “POP3 Support” and Section 4, “IMAP Support” respectively.

Mutt provides a number of advanced features for handling (possibly many) -folders and new mail within them, please refer to -Section 9, “Handling multiple folders” for details (including in what -situations and how often Mutt checks for new mail). -

-The “unmailboxes” command is used to remove a token from the list -of folders which receive mail. Use “unmailboxes *” to remove all -tokens. -

Note

-The folders in the mailboxes command are resolved when -the command is executed, so if these names contain shortcut characters (such as “=” and “!”), any variable -definition that affects these characters (like $folder and $spoolfile) -should be set before the mailboxes command. If -none of these shorcuts are used, a local path should be absolute as -otherwise Mutt tries to find it relative to the directory -from where Mutt was started which may not always be desired. -

-For Mbox and Mmdf folders, new mail is detected by comparing access and/or -modification times of files: Mutt assumes a folder has new mail if it wasn't -accessed after it was last modified. Utilities like biff or -frm or any other program which accesses the mailbox might cause -Mutt to never detect new mail for that mailbox if they do not properly reset the -access time. Other possible causes of Mutt not detecting new mail in these folders -are backup tools (updating access times) or filesystems mounted without -access time update support. -

-In cases where new mail detection for Mbox or Mmdf folders appears to be -unreliable, the -$check_mbox_size -option can be used to make Mutt track and consult file sizes for new -mail detection instead which won't work for size-neutral changes. -

15. User-Defined Headers

Usage:

my_hdr +folders and new mail within them, please refer to Section 10, “New Mail Detection” for details (including in what situations and how +often Mutt checks for new mail). +

+The “unmailboxes” command is used to remove a token from +the list of folders which receive mail. Use “unmailboxes *” +to remove all tokens. +

Note

+The folders in the mailboxes command are resolved +when the command is executed, so if these names contain shortcut characters (such as “=” +and “!”), any variable definition that affects these +characters (like $folder and $spoolfile) should be set before the +mailboxes command. If none of these shortcuts are +used, a local path should be absolute as otherwise Mutt tries to find it +relative to the directory from where Mutt was started which may not +always be desired. +

15. User-Defined Headers

Usage:

my_hdr string
unmy_hdr { * | field ... }

-The my_hdr command allows you to create your own header -fields which will be added to every message you send and appear in the -editor if $edit_headers is set. -

-For example, if you would like to add an “Organization:” header field to -all of your outgoing messages, you can put the command something like -shown in Example 3.11, “Defining custom headers” in your .muttrc. +The my_hdr command allows you to create your own +header fields which will be added to every message you send and appear +in the editor if $edit_headers is +set. +

+For example, if you would like to add an “Organization:” +header field to all of your outgoing messages, you can put the command +something like shown in Example 3.11, “Defining custom headers” in your +.muttrc.

Example 3.11. Defining custom headers

 my_hdr Organization: A Really Big Company, Anytown, USA
-

Note

-Space characters are not allowed between the keyword and -the colon (“:”). The standard for electronic mail (RFC2822) says that -space is illegal there, so Mutt enforces the rule. +


Note

+Space characters are not allowed between the +keyword and the colon (“:”). The standard for electronic +mail (RFC2822) says that space is illegal there, so Mutt enforces the +rule.

If you would like to add a header field to a single message, you should -either set the $edit_headers variable, -or use the <edit-headers> function (default: “E”) in the compose menu so -that you can edit the header of your message along with the body. -

-To remove user defined header fields, use the unmy_hdr -command. You may specify an asterisk (“*”) to remove all header -fields, or the fields to remove. For example, to remove all “To” and -“Cc” header fields, you could use: +either set the $edit_headers +variable, or use the <edit-headers> function +(default: “E”) in the compose menu so that you can edit the +header of your message along with the body. +

+To remove user defined header fields, use the +unmy_hdr command. You may specify an asterisk +(“*”) to remove all header fields, or the fields to +remove. For example, to remove all “To” and +“Cc” header fields, you could use:

 unmy_hdr to cc
-

16. Specify Default Save Mailbox

Usage:

save-hook +

16. Specify Default Save Mailbox

Usage:

save-hook [!]pattern mailbox

This command is used to override the default mailbox used when saving -messages. mailbox will be used as the default if the message -matches pattern, see Message Matching in Hooks for information -on the exact format. +messages. mailbox will be used as the default if +the message matches pattern, see Message Matching in Hooks for information on the exact format.

-To provide more flexibility and good defaults, Mutt applies the -expandos of $index_format to +To provide more flexibility and good defaults, Mutt applies the expandos +of $index_format to mailbox after it was expanded.

Example 3.12. Using %-expandos in save-hook

-# default: save all to ~/Mail/<author name>
+# default: save all to ~/Mail/<author name>
 save-hook . ~/Mail/%F
 
-# save from me@turing.cs.hmc.edu and me@cs.hmc.edu to $folder/elkins
+# save from me@turing.cs.hmc.edu and me@cs.hmc.edu to $folder/elkins
 save-hook me@(turing\\.)?cs\\.hmc\\.edu$ +elkins
 
-# save from aol.com to $folder/spam
+# save from aol.com to $folder/spam
 save-hook aol\\.com$ +spam
 

-Also see the fcc-save-hook command. -

17. Specify Default Fcc: Mailbox When Composing

Usage:

fcc-hook +Also see the fcc-save-hook command. +

17. Specify Default Fcc: Mailbox When Composing

Usage:

fcc-hook [!]pattern mailbox

-This command is used to save outgoing mail in a mailbox other than -$record. Mutt searches the initial list of -message recipients for the first matching regexp and uses mailbox -as the default Fcc: mailbox. If no match is found the message will be saved -to $record mailbox. +This command is used to save outgoing mail in a mailbox other than $record. Mutt searches the initial list of +message recipients for the first matching regexp +and uses mailbox as the default Fcc: mailbox. If +no match is found the message will be saved to $record mailbox.

To provide more flexibility and good defaults, Mutt applies the -expandos of $index_format to +expandos of $index_format to mailbox after it was expanded.

-See Message Matching in Hooks for information on the exact format of pattern. +See Message Matching in Hooks for information on the exact format +of pattern.

fcc-hook [@.]aol\\.com$ +spammers

-...will save a copy of all messages going to the aol.com domain to -the `+spammers' mailbox by default. Also see the fcc-save-hook command. -

18. Specify Default Save Filename and Default Fcc: Mailbox at Once

Usage:

fcc-save-hook +...will save a copy of all messages going to the aol.com domain to the +`+spammers' mailbox by default. Also see the fcc-save-hook command. +

18. Specify Default Save Filename and Default Fcc: Mailbox at Once

Usage:

fcc-save-hook [!]pattern mailbox

-This command is a shortcut, equivalent to doing both a fcc-hook -and a save-hook with its arguments, -including %-expansion on mailbox according -to $index_format. -

19. Change Settings Based Upon Message Recipients

Usage:

reply-hook +This command is a shortcut, equivalent to doing both a fcc-hook and a save-hook with its +arguments, including %-expansion on mailbox +according to $index_format. +

19. Change Settings Based Upon Message Recipients

Usage:

reply-hook [!]pattern command @@ -1555,99 +1622,124 @@ to $index_ command

-These commands can be used to execute arbitrary configuration commands based -upon recipients of the message. pattern is used to match -the message, see Message Matching in Hooks for details. command -is executed when pattern matches. -

-reply-hook is matched against the message you are replying to, -instead of the message you are sending. send-hook is -matched against all messages, both new -and replies. -

Note

-reply-hooks are matched before the send-hook, regardless -of the order specified in the user's configuration file. +These commands can be used to execute arbitrary configuration commands +based upon recipients of the message. pattern is +used to match the message, see Message Matching in Hooks for +details. command is executed when +pattern matches. +

+reply-hook is matched against the message you are +replying to, instead of the message you are +sending. send-hook is matched +against all messages, both new and +replies. +

Note

+reply-hooks are matched before +the send-hook, regardless of the +order specified in the user's configuration file.

-send2-hook is matched every time a message is changed, either -by editing it, or by using the compose menu to change its recipients -or subject. send2-hook is executed after send-hook, and -can, e.g., be used to set parameters such as the $sendmail variable depending on the message's sender -address. +send2-hook is matched every time a message is +changed, either by editing it, or by using the compose menu to change +its recipients or subject. send2-hook is executed +after send-hook, and can, e.g., be used to set +parameters such as the $sendmail +variable depending on the message's sender address.

-For each type of send-hook or reply-hook, when multiple matches -occur, commands are executed in the order they are specified in the .muttrc -(for that type of hook). +For each type of send-hook or +reply-hook, when multiple matches occur, commands are +executed in the order they are specified in the +.muttrc (for that type of hook).

-Example: send-hook mutt "set mime_forward signature=''" +Example: send-hook mutt +"set mime_forward signature=''"

Another typical use for this command is to change the values of the -$attribution, $signature and $locale -variables in order to change the language of the attributions and -signatures based upon the recipients. -

Note

+$attribution, $signature and $locale variables in order to change the +language of the attributions and signatures based upon the recipients. +

Note

send-hook's are only executed once after getting the initial list of recipients. Adding a recipient after replying or -editing the message will not cause any send-hook to be executed, -similarily if $autoedit is set -(as then the initial list of recipients is empty). Also note that my_hdr commands which +editing the message will not cause any send-hook to +be executed, similarly if $autoedit is +set (as then the initial list of recipients is empty). Also note that +my_hdr commands which modify recipient headers, or the message's subject, don't have any effect on the current message when executed from a send-hook. -

20. Change Settings Before Formatting a Message

Usage:

message-hook +

20. Change Settings Before Formatting a Message

Usage:

message-hook [!]pattern command

This command can be used to execute arbitrary configuration commands -before viewing or formatting a message based upon information about the message. -command is executed if the pattern matches the message to be -displayed. When multiple matches occur, commands are executed in the order -they are specified in the .muttrc. +before viewing or formatting a message based upon information about the +message. command is executed if the +pattern matches the message to be displayed. When +multiple matches occur, commands are executed in the order they are +specified in the .muttrc.

-See Message Matching in Hooks for -information on the exact format of pattern. +See Message Matching in Hooks for information on the exact format +of pattern.

Example:

 message-hook ~A 'set pager=builtin'
 message-hook '~f freshmeat-news' 'set pager="less \"+/^  subject: .*\""'
-

21. Choosing the Cryptographic Key of the Recipient

Usage:

crypt-hook +

21. Choosing the Cryptographic Key of the Recipient

Usage:

crypt-hook pattern keyid

-When encrypting messages with PGP/GnuPG or OpenSSL, you may want to associate a certain -key with a given e-mail address automatically, either because the -recipient's public key can't be deduced from the destination address, -or because, for some reasons, you need to override the key Mutt would -normally use. The crypt-hook command provides a -method by which you can specify the ID of the public key to be used -when encrypting messages to a certain recipient. -

-The meaning of keyid is to be taken broadly in this context: You -can either put a numerical key ID here, an e-mail address, or even -just a real name. -

22. Adding Key Sequences to the Keyboard Buffer

Usage:

push +When encrypting messages with PGP/GnuPG or OpenSSL, you may want to +associate a certain key with a given e-mail address automatically, +either because the recipient's public key can't be deduced from the +destination address, or because, for some reasons, you need to override +the key Mutt would normally use. The crypt-hook +command provides a method by which you can specify the ID of the public +key to be used when encrypting messages to a certain recipient. +

+The meaning of keyid is to be taken broadly in this +context: You can either put a numerical key ID here, an e-mail address, +or even just a real name. +

22. Adding Key Sequences to the Keyboard Buffer

Usage:

push string

-This command adds the named string to the keyboard buffer. The string may -contain control characters, key names and function names like the sequence -string in the macro command. You may use it to -automatically run a sequence of commands at startup, or when entering -certain folders. For example, Example 3.13, “Embedding push in folder-hook” -shows how to automatically collapse all threads when entering a folder. +This command adds the named string to the keyboard buffer. The string +may contain control characters, key names and function names like the +sequence string in the macro command. You +may use it to automatically run a sequence of commands at startup, or +when entering certain folders. For example, Example 3.13, “Embedding push in folder-hook” shows how to automatically collapse all +threads when entering a folder.

Example 3.13. Embedding push in folder-hook

 folder-hook . 'push <collapse-all>'
-

23. Executing Functions

Usage:

exec +


+For using functions like shown in the example, it's important to use +angle brackets (“<” and “>”) to make +Mutt recognize the input as a function name. Otherwise it will simulate +individual just keystrokes, i.e. “push +collapse-all” would be interpreted as if you had typed +“c”, followed by “o”, followed by +“l”, ..., which is not desired and may lead to very +unexpected behavior. +

+Keystrokes can be used, too, but are less portable because of +potentially changed key bindings. With default bindings, this is +equivalent to the above example: +

+folder-hook . 'push \eV'
+

+because it simulates that Esc+V was pressed (which is the default +binding of <collapse-all>). +

23. Executing Functions

Usage:

exec function [ function ...]

-This command can be used to execute any function. Functions are -listed in the function reference. -“execfunction” is equivalent to -“push <function>”. -

24. Message Scoring

Usage:

score +This command can be used to execute any function. Functions are listed +in the function reference. +“exec function” is +equivalent to “push <function>”. +

24. Message Scoring

Usage:

score pattern value @@ -1656,20 +1748,25 @@ listed in the functi | pattern ... }

-The score commands adds value to a message's score if pattern -matches it. pattern is a string in the format described in the patterns section (note: For efficiency reasons, patterns -which scan information not available in the index, such as ˜b, -˜B or ˜h, may not be used). value is a -positive or negative integer. A message's final score is the sum total of all -matching score entries. However, you may optionally prefix value with -an equal sign (“=”) to cause evaluation to stop at a particular entry if there is -a match. Negative final scores are rounded up to 0. -

-The unscore command removes score entries from the list. You must -specify the same pattern specified in the score command for it to be -removed. The pattern “*” is a special token which means to clear the list -of all score entries. -

25. Spam Detection

Usage:

spam +The score commands adds value to +a message's score if pattern matches it. +pattern is a string in the format described in the +patterns section (note: For efficiency +reasons, patterns which scan information not available in the index, +such as ~b, ~B or +~h, may not be used). value is +a positive or negative integer. A message's final score is the sum +total of all matching score entries. However, you +may optionally prefix value with an equal sign +(“=”) to cause evaluation to stop at a particular entry if +there is a match. Negative final scores are rounded up to 0. +

+The unscore command removes score entries from the +list. You must specify the same pattern specified +in the score command for it to be removed. The +pattern “*” is a special token which means to clear the +list of all score entries. +

25. Spam Detection

Usage:

spam pattern format @@ -1678,134 +1775,149 @@ of all score entries. | pattern }

-Mutt has generalized support for external spam-scoring filters. -By defining your spam patterns with the spam and nospam -commands, you can limit, search, and sort your -mail based on its spam attributes, as determined by the external -filter. You also can display the spam attributes in your index -display using the %H selector in the $index_format variable. (Tip: try %?H?[%H] ? -to display spam tags only when they are defined for a given message.) +Mutt has generalized support for external spam-scoring filters. By +defining your spam patterns with the spam and +nospam commands, you can limit, +search, and sort your mail +based on its spam attributes, as determined by the external filter. You +also can display the spam attributes in your index display using the +%H selector in the $index_format variable. (Tip: try +%?H?[%H] ? to display spam tags only when they are +defined for a given message.)

Your first step is to define your external filter's spam patterns using -the spam command. pattern should be a regular expression -that matches a header in a mail message. If any message in the mailbox -matches this regular expression, it will receive a “spam tag” or -“spam attribute” (unless it also matches a nospam pattern — see -below.) The appearance of this attribute is entirely up to you, and is -governed by the format parameter. format can be any static -text, but it also can include back-references from the pattern -expression. (A regular expression “back-reference” refers to a -sub-expression contained within parentheses.) %1 is replaced with -the first back-reference in the regex, %2 with the second, etc. +the spam command. pattern should +be a regular expression that matches a header in a mail message. If any +message in the mailbox matches this regular expression, it will receive +a “spam tag” or “spam attribute” (unless it +also matches a nospam pattern — see below.) The +appearance of this attribute is entirely up to you, and is governed by +the format parameter. format +can be any static text, but it also can include back-references from the +pattern expression. (A regular expression +“back-reference” refers to a sub-expression contained +within parentheses.) %1 is replaced with the first +back-reference in the regex, %2 with the second, etc.

To match spam tags, mutt needs the corresponding header information which is always the case for local and POP folders but not for IMAP in the default configuration. Depending on the spam header to be analyzed, -$imap_headers may need -to be adjusted. -

-If you're using multiple spam filters, a message can have more than -one spam-related header. You can define spam patterns for each -filter you use. If a message matches two or more of these patterns, and -the $spam_separator variable is set to a string, then the -message's spam tag will consist of all the format strings joined -together, with the value of $spam_separator separating -them. +$imap_headers may need to be +adjusted. +

+If you're using multiple spam filters, a message can have more than one +spam-related header. You can define spam patterns for +each filter you use. If a message matches two or more of these patterns, +and the $spam_separator variable +is set to a string, then the message's spam tag will consist of all the +format strings joined together, with the value of +$spam_separator separating them.

For example, suppose one uses DCC, SpamAssassin, and PureMessage, then -the configuration might look like in Example 3.14, “Configuring spam detection”. +the configuration might look like in Example 3.14, “Configuring spam detection”.

Example 3.14. Configuring spam detection

 spam "X-DCC-.*-Metrics:.*(....)=many"         "90+/DCC-%1"
 spam "X-Spam-Status: Yes"                     "90+/SA"
 spam "X-PerlMX-Spam: .*Probability=([0-9]+)%" "%1/PM"
 set spam_separator=", "
 

-If then a message is received that DCC registered with “many” hits -under the “Fuz2” checksum, and that PureMessage registered with a -97% probability of being spam, that message's spam tag would read -90+/DCC-Fuz2, 97/PM. (The four characters before “=many” in a -DCC report indicate the checksum used — in this case, “Fuz2”.) -

-If the $spam_separator variable is unset, then each -spam pattern match supersedes the previous one. Instead of getting -joined format strings, you'll get only the last one to match. +If then a message is received that DCC registered with +“many” hits under the “Fuz2” checksum, and +that PureMessage registered with a 97% probability of being spam, that +message's spam tag would read 90+/DCC-Fuz2, +97/PM. (The four characters before “=many” in a +DCC report indicate the checksum used — in this case, +“Fuz2”.) +

+If the $spam_separator variable is +unset, then each spam pattern match supersedes the previous one. Instead +of getting joined format strings, you'll get only +the last one to match.

The spam tag is what will be displayed in the index when you use -%H in the $index_format variable. It's also the -string that the ˜H pattern-matching expression matches against for -<search> and <limit> functions. And it's what sorting by spam -attribute will use as a sort key. +%H in the $index_format variable. It's also the +string that the ~H pattern-matching expression +matches against for <search> and +<limit> functions. And it's what sorting by +spam attribute will use as a sort key.

That's a pretty complicated example, and most people's actual environments will have only one spam filter. The simpler your configuration, the more effective Mutt can be, especially when it comes to sorting.

-Generally, when you sort by spam tag, Mutt will sort lexically — -that is, by ordering strings alphanumerically. However, if a spam tag -begins with a number, Mutt will sort numerically first, and lexically -only when two numbers are equal in value. (This is like UNIX's -sort -n.) A message with no spam attributes at all — that is, one -that didn't match any of your spam patterns — is sorted at -lowest priority. Numbers are sorted next, beginning with 0 and ranging -upward. Finally, non-numeric strings are sorted, with “a” taking lower -priority than “z”. Clearly, in general, sorting by spam tags is most -effective when you can coerce your filter to give you a raw number. But -in case you can't, Mutt can still do something useful. -

-The nospam command can be used to write exceptions to spam -patterns. If a header pattern matches something in a spam command, -but you nonetheless do not want it to receive a spam tag, you can list a -more precise pattern under a nospam command. -

-If the pattern given to nospam is exactly the same as the -pattern on an existing spam list entry, the effect will be to -remove the entry from the spam list, instead of adding an exception. -Likewise, if the pattern for a spam command matches an entry -on the nospam list, that nospam entry will be removed. If the -pattern for nospam is “*”, all entries on both lists -will be removed. This might be the default action if you use spam -and nospam in conjunction with a folder-hook. -

-You can have as many spam or nospam commands as you like. -You can even do your own primitive spam detection within Mutt — for -example, if you consider all mail from MAILER-DAEMON to be spam, -you can use a spam command like this: +Generally, when you sort by spam tag, Mutt will sort +lexically — that is, by ordering strings +alphanumerically. However, if a spam tag begins with a number, Mutt will +sort numerically first, and lexically only when two numbers are equal in +value. (This is like UNIX's sort -n.) A message with +no spam attributes at all — that is, one that didn't match +any of your spam patterns +— is sorted at lowest priority. Numbers are sorted next, beginning +with 0 and ranging upward. Finally, non-numeric strings are sorted, with +“a” taking lower priority than “z”. Clearly, +in general, sorting by spam tags is most effective when you can coerce +your filter to give you a raw number. But in case you can't, Mutt can +still do something useful. +

+The nospam command can be used to write exceptions to +spam patterns. If a header pattern matches something +in a spam command, but you nonetheless do not want it +to receive a spam tag, you can list a more precise pattern under a +nospam command. +

+If the pattern given to nospam +is exactly the same as the pattern on an existing +spam list entry, the effect will be to remove the +entry from the spam list, instead of adding an exception. Likewise, if +the pattern for a spam command +matches an entry on the nospam list, that nospam +entry will be removed. If the pattern for +nospam is “*”, all entries on +both lists will be removed. This might be the default action +if you use spam and nospam in +conjunction with a folder-hook. +

+You can have as many spam or +nospam commands as you like. You can even do your +own primitive spam detection within Mutt — for +example, if you consider all mail from MAILER-DAEMON +to be spam, you can use a spam command like this:

 spam "^From: .*MAILER-DAEMON"       "999"
-

26. Setting and Querying Variables

26.1. Variable Types

+

26. Setting and Querying Variables

26.1. Variable Types

Mutt supports these types of configuration variables:

boolean

-A boolean expression, either “yes” or “no”. +A boolean expression, either “yes” or “no”.

number

A signed integer number in the range -32768 to 32767.

string

Arbitrary text.

path

A specialized string for representing paths including support for -mailbox shortcuts (see Section 7, “Mailbox Shortcuts”) as well as tilde -(“˜”) for a user's home directory and more. +mailbox shortcuts (see Section 8, “Mailbox Shortcuts”) as well as tilde +(“~”) for a user's home directory and more.

quadoption

-Like a boolean but triggers a prompt when set to “ask-yes” -or “ask-no” with “yes” and “no” +Like a boolean but triggers a prompt when set to “ask-yes” +or “ask-no” with “yes” and “no” preselected respectively.

sort order

A specialized string allowing only particular words as values depending on the variable.

regular expression

-A regular expression, see Section 1, “Regular Expressions” for an introduction. +A regular expression, see Section 2, “Regular Expressions” for an introduction.

folder magic

Specifies the type of folder to use: mbox, -mmdf, mh -or maildir. -Currently only used to determine the type for newly created folders. +mmdf, mh or +maildir. Currently only used to determine the type +for newly created folders.

e-mail address

-An e-mail address either with or without -realname. The older “user@example.org (Joe User)” -form is supported but strongly deprecated. +An e-mail address either with or without realname. The older +“user@example.org (Joe User)” form is +supported but strongly deprecated.

user-defined

-Arbitrary text, see Section 26.3, “User-Defined Variables” for details. -

26.2. Commands

+Arbitrary text, see Section 26.3, “User-Defined Variables” for details. +

26.2. Commands

The following commands are available to manipulate and query variables:

Usage:

set { [ no | inv ] @@ -1825,81 +1937,85 @@ The following commands are available to manipulate and query variables: [ variable ...]

-This command is used to set (and unset) configuration variables. There are four basic types of variables: -boolean, number, string and quadoption. boolean variables can be -set (true) or unset (false). number variables can be -assigned a positive integer value. -string variables consist of any number of printable characters and -must be enclosed in quotes if they contain spaces or tabs. You -may also use the escape sequences “\n” and “\t” for newline and tab, respectively. -quadoption variables are used to control whether or not to be prompted -for certain actions, or to specify a default action. A value of yes -will cause the action to be carried out automatically as if you had answered -yes to the question. Similarly, a value of no will cause the -action to be carried out as if you had answered “no.” A value of -ask-yes will cause a prompt with a default answer of “yes” and -ask-no will provide a default answer of “no.” -

-Prefixing a variable with “no” will unset it. Example: set noaskbcc. -

-For boolean variables, you may optionally prefix the variable name with -inv to toggle the value (on or off). This is useful when writing -macros. Example: set invsmart_wrap. -

-The toggle command automatically prepends the inv prefix to all -specified variables. -

-The unset command automatically prepends the no prefix to all -specified variables. -

-Using the <enter-command> function in the index menu, you can query the -value of a variable by prefixing the name of the variable with a question -mark: +This command is used to set (and unset) configuration variables. There are four +basic types of variables: boolean, number, string and quadoption. +boolean variables can be set +(true) or unset (false). +number variables can be assigned a positive integer +value. string variables consist of any number of +printable characters and must be enclosed in quotes if they contain +spaces or tabs. You may also use the escape sequences “\n” +and “\t” for newline and tab, respectively. +quadoption variables are used to control whether or +not to be prompted for certain actions, or to specify a default action. +A value of yes will cause the action to be carried +out automatically as if you had answered yes to the question. +Similarly, a value of no will cause the action to +be carried out as if you had answered “no.” A value of +ask-yes will cause a prompt with a default answer +of “yes” and ask-no will provide a +default answer of “no.” +

+Prefixing a variable with “no” will unset it. Example: +set noaskbcc. +

+For boolean variables, you may optionally prefix +the variable name with inv to toggle the value (on or +off). This is useful when writing macros. Example: +set invsmart_wrap. +

+The toggle command automatically prepends the +inv prefix to all specified variables. +

+The unset command automatically prepends the +no prefix to all specified variables. +

+Using the <enter-command> function in the +index menu, you can query the value of a variable +by prefixing the name of the variable with a question mark:

 set ?allow_8bit
 

The question mark is actually only required for boolean and quadoption variables.

-The reset command resets all given variables to the compile time -defaults (hopefully mentioned in this manual). If you use the command -set and prefix the variable with “&” this has the same -behavior as the reset command. -

-With the reset command there exists the special variable “all”, -which allows you to reset all variables to their system defaults. -

26.3. User-Defined Variables

26.3.1. Introduction

-Along with the variables listed in the -Configuration variables section, Mutt -supports user-defined variables with names starting -with my_ as in, for -example, my_cfgdir. -

-The set command either creates a -custom my_ variable or changes its -value if it does exist already. The unset and reset +The reset command resets all given variables to the +compile time defaults (hopefully mentioned in this manual). If you use +the command set and prefix the variable with +“&” this has the same behavior as the +reset command. +

+With the reset command there exists the special +variable “all”, which allows you to reset all variables to +their system defaults. +

26.3. User-Defined Variables

26.3.1. Introduction

+Along with the variables listed in the Configuration variables section, Mutt +supports user-defined variables with names starting with +my_ as in, for example, my_cfgdir. +

+The set command either creates a custom +my_ variable or changes its value if it does exist +already. The unset and reset commands remove the variable entirely.

Since user-defined variables are expanded in the same way that -environment variables are (except for -the shell-escape command and -backtick expansion), this feature can be used to make configuration -files more readable. -

26.3.2. Examples

-The following example defines and uses the variable my_cfgdir -to abbreviate the calls of the source command: +environment variables are (except for the shell-escape command and backtick +expansion), this feature can be used to make configuration files more +readable. +

26.3.2. Examples

+The following example defines and uses the variable +my_cfgdir to abbreviate the calls of the source command:

Example 3.15. Using user-defined variables for config file readability

 set my_cfgdir = $HOME/mutt/config
 
 source $my_cfgdir/hooks
 source $my_cfgdir/macros
-# more source commands...
+# more source commands...
 

A custom variable can also be used in macros to backup the current value -of another variable. In the following example, the value of the -$delete is changed temporarily -while its original value is saved as my_delete. -After the macro has executed all commands, the original value of $delete is restored. +of another variable. In the following example, the value of the $delete is changed temporarily while its +original value is saved as my_delete. After the +macro has executed all commands, the original value of $delete is restored.

Example 3.16. Using user-defined variables for backing up other config option values

 macro pager ,x '\
 <enter-command>set my_delete=$delete<enter>\
@@ -1909,9 +2025,9 @@ macro pager ,x '\
 

Since Mutt expands such values already when parsing the configuration file(s), the value of $my_delete in the -last example would be the value of $delete exactly +last example would be the value of $delete exactly as it was at that point during parsing the configuration file. If -another statement would change the value for $delete +another statement would change the value for $delete later in the same or another file, it would have no effect on $my_delete. However, the expansion can be deferred to runtime, as shown in the next example, when escaping the @@ -1923,81 +2039,123 @@ macro pager <PageDown> "\ <enter-command> set pager_stop=\$my_old_pager_stop<Enter>\ <enter-command> unset my_old_pager_stop<Enter>"


-Note that there is a space -between <enter-command> and -the set configuration command, preventing Mutt from -recording the macro's commands into its history. -

27. Reading Initialization Commands From Another File

Usage:

source +Note that there is a space between +<enter-command> and the set +configuration command, preventing Mutt from recording the +macro's commands into its history. +

26.4. Type Conversions

+Variables are always assigned string values which Mutt parses into its +internal representation according to the type of the variable, for +example an integer number for numeric types. For all queries (including +$-expansion) the value is converted from its internal type back into +string. As a result, any variable can be assigned any value given that +its content is valid for the target. This also counts for custom +variables which are of type string. In case of parsing errors, Mutt will +print error messages. Example 3.18, “Type conversions using variables” demonstrates type +conversions. +

Example 3.18. Type conversions using variables

+set my_lines = "5"                # value is string "5"
+set pager_index_lines = $my_lines # value is integer 5
+
+set my_sort = "date-received"     # value is string "date-received"
+set sort = "last-$my_sort"        # value is sort last-date-received
+
+set my_inc = $read_inc            # value is string "10" (default of $read_inc)
+set my_foo = $my_inc              # value is string "10"
+

+These assignments are all valid. If, however, the value of +$my_lines would have been +“five” (or something else that cannot be parsed into a +number), the assignment to +$pager_index_lines would have +produced an error message. +

+Type conversion applies to all configuration commands which take +arguments. But please note that every expanded value of a variable is +considered just a single token. A working example is: +

+set my_pattern = "~A"
+set my_number = "10"
+
+# same as: score ~A +10
+score $my_pattern +$my_number

+What does not work is: +

+set my_mx = "+mailbox1 +mailbox2"
+mailboxes $my_mx +mailbox3

+because the value of $my_mx is interpreted as a +single mailbox named “+mailbox1 +mailbox2” and not two +distinct mailboxes. +

27. Reading Initialization Commands From Another File

Usage:

source filename

-This command allows the inclusion of initialization commands -from other files. For example, I place all of my aliases in -˜/.mail_aliases so that I can make my -˜/.muttrc readable and keep my aliases private. -

-If the filename begins with a tilde (“˜”), it will be expanded to the -path of your home directory. -

-If the filename ends with a vertical bar (“|”), then filename is -considered to be an executable program from which to read input (eg. -source ˜/bin/myscript|). -

28. Removing Hooks

Usage:

unhook { +This command allows the inclusion of initialization commands from other +files. For example, I place all of my aliases in +~/.mail_aliases so that I can make my +~/.muttrc readable and keep my aliases private. +

+If the filename begins with a tilde (“~”), it will be +expanded to the path of your home directory. +

+If the filename ends with a vertical bar (“|”), then +filename is considered to be an executable program +from which to read input (e.g. source +~/bin/myscript|). +

28. Removing Hooks

Usage:

unhook { * | hook-type }

This command permits you to flush hooks you have previously defined. -You can either remove all hooks by giving the “*” character as an -argument, or you can remove all hooks of a specific type by saying +You can either remove all hooks by giving the “*” character +as an argument, or you can remove all hooks of a specific type by saying something like unhook send-hook. -

29. Format Strings

29.1. Basic usage

+

29. Format Strings

29.1. Basic usage

Format strings are a general concept you'll find in several locations -through the Mutt configuration, especially in the -$index_format, -$pager_format, -$status_format, -and other related variables. These can be very straightforward, -and it's quite possible you already know how to use them. -

-The most basic format string element is a percent symbol followed -by another character. For example, %s -represents a message's Subject: header in the $index_format variable. The -“expandos” available are documented with each format variable, but -there are general modifiers available with all formatting expandos, -too. Those are our concern here. -

-Some of the modifiers are borrowed right out of C (though you might -know them from Perl, Python, shell, or another language). These are -the [-]m.n modifiers, as in %-12.12s. As with -such programming languages, these modifiers allow you to specify the -minimum and maximum size of the resulting string, as well as its -justification. If the “-” sign follows the percent, the string will -be left-justified instead of right-justified. If there's a number -immediately following that, it's the minimum amount of space the -formatted string will occupy — if it's naturally smaller than that, it -will be padded out with spaces. If a decimal point and another number -follow, that's the maximum space allowable — the string will not be -permitted to exceed that width, no matter its natural size. Each of -these three elements is optional, so that all these are legal format -strings: %-12s, %4c, -%.15F and %-12.15L. +through the Mutt configuration, especially in the $index_format, $pager_format, $status_format, and other related +variables. These can be very straightforward, and it's quite possible +you already know how to use them. +

+The most basic format string element is a percent symbol followed by +another character. For example, %s represents a +message's Subject: header in the $index_format variable. The +“expandos” available are documented with each format +variable, but there are general modifiers available with all formatting +expandos, too. Those are our concern here. +

+Some of the modifiers are borrowed right out of C (though you might know +them from Perl, Python, shell, or another language). These are the +[-]m.n modifiers, as in +%-12.12s. As with such programming languages, these +modifiers allow you to specify the minimum and maximum size of the +resulting string, as well as its justification. If the “-” +sign follows the percent, the string will be left-justified instead of +right-justified. If there's a number immediately following that, it's +the minimum amount of space the formatted string will occupy — if +it's naturally smaller than that, it will be padded out with spaces. If +a decimal point and another number follow, that's the maximum space +allowable — the string will not be permitted to exceed that width, +no matter its natural size. Each of these three elements is optional, so +that all these are legal format strings: %-12s, +%4c, %.15F and +%-12.15L.

Mutt adds some other modifiers to format strings. If you use an equals symbol (=) as a numeric prefix (like the minus -above), it will force the string to be centered within its minimum -space range. For example, %=14y will reserve 14 -characters for the %y expansion — that's the X-Label: header, in -$index_format. If the expansion -results in a string less than 14 characters, it will be centered in a -14-character space. If the X-Label for a message were “test”, that -expansion would look like “     test     ”. +above), it will force the string to be centered within its minimum space +range. For example, %=14y will reserve 14 characters +for the %y expansion — that's the X-Label: header, in $index_format. If the expansion results in +a string less than 14 characters, it will be centered in a 14-character +space. If the X-Label for a message were “test”, that +expansion would look like +“     test     ”.

There are two very little-known modifiers that affect the way that an -expando is replaced. If there is an underline (“_”) character -between any format modifiers (as above) and the expando letter, it will -expands in all lower case. And if you use a colon (“:”), it will -replace all decimal points with underlines. -

29.2. Conditionals

+expando is replaced. If there is an underline (“_”) +character between any format modifiers (as above) and the expando +letter, it will expands in all lower case. And if you use a colon +(“:”), it will replace all decimal points with underlines. +

29.2. Conditionals

Depending on the format string variable, some of its sequences can be used to optionally print a string if their value is nonzero. For example, you may only want to see the number of flagged messages if such @@ -2007,55 +2165,50 @@ construct is used:

 %?<sequence_char>?<optional_string>?

where sequence_char is an expando, and -optional_string is the string you would like printed if -sequence_char is nonzero. -optional_string may contain other -sequences as well as normal text, but you may not nest optional -strings. +optional_string is the string you would like +printed if sequence_char is nonzero. +optional_string may contain other sequences as well +as normal text, but you may not nest optional strings.

Here is an example illustrating how to optionally print the number of -new messages in a mailbox in -$status_format: +new messages in a mailbox in $status_format:

 %?n?%n new messages.?

You can also switch between two strings using the following construct:

 %?<sequence_char>?<if_string>&<else_string>?

-If the value of sequence_char is -non-zero, if_string will be expanded, -otherwise else_string will be expanded. -

29.3. Filters

-Any format string ending in a vertical bar (“|”) will be -expanded and piped through the first word in the string, using spaces -as separator. The string returned will be used for display. -If the returned string ends in %, it will be passed through -the formatter a second time. This allows the filter to generate a -replacement format string including % expandos. -

-All % expandos in a format string are expanded before the script -is called so that: -

Example 3.18. Using external filters in format strings

+If the value of sequence_char is non-zero,
+if_string will be expanded, otherwise
+else_string will be expanded.
+

29.3. Filters

+Any format string ending in a vertical bar (“|”) will be +expanded and piped through the first word in the string, using spaces as +separator. The string returned will be used for display. If the +returned string ends in %, it will be passed through the formatter a +second time. This allows the filter to generate a replacement format +string including % expandos. +

+All % expandos in a format string are expanded before the script is +called so that: +

Example 3.19. Using external filters in format strings

 set status_format="script.sh '%r %f (%L)'|"
 

-will make Mutt expand %r, -%f and %L -before calling the script. The example also shows that arguments can be -quoted: the script will receive the expanded string between the single quotes -as the only argument. -

-A practical example is the mutt_xtitle -script installed in the samples -subdirectory of the Mutt documentation: it can be used as filter for -$status_format to set the current +will make Mutt expand %r, %f and +%L before calling the script. The example also shows +that arguments can be quoted: the script will receive the expanded +string between the single quotes as the only argument. +

+A practical example is the mutt_xtitle script +installed in the samples subdirectory of the Mutt +documentation: it can be used as filter for $status_format to set the current terminal's title, if supported. -

29.4. Padding

+

29.4. Padding

In most format strings, Mutt supports different types of padding using special %-expandos:

%|X

-When this occurs, Mutt will fill the rest of the -line with the character X. For -example, filling the rest of the line with dashes is -done by setting: +When this occurs, Mutt will fill the rest of the line with the character +X. For example, filling the rest of the line with +dashes is done by setting:

 set status_format = "%v on %h: %B: %?n?%n&no? new messages %|-"
%>X @@ -2072,72 +2225,133 @@ set status_format = "%B: %?n?%n&no? new messages %> (%v on %h)"

Normal right-justification will print everything to the left of the %>, displaying padding and whatever lies to the -right only if there's room. By contrast, “soft-fill” gives +right only if there's room. By contrast, “soft-fill” gives priority to the right-hand side, guaranteeing space to display it and showing padding only if there's still room. If necessary, soft-fill will eat text leftwards to make room for rightward text. For example, to right-justify the subject making sure as much as possible of it fits on -screen, one might use (note two spaces after %* -: the second ensures there's a space between the truncated -right-hand side and the subject): +screen, one might use (note two spaces after %* : the +second ensures there's a space between the truncated right-hand side and +the subject):

-set index_format="%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?)%*  %s"

Chapter 4. Advanced Usage

1. Character Set Handling

+A “character set” is basically a mapping between bytes and +glyphs and implies a certain character encoding scheme. For example, for +the ISO 8859 family of character sets, an encoding of 8bit per character +is used. For the Unicode character set, different character encodings +may be used, UTF-8 being the most popular. In UTF-8, a character is +represented using a variable number of bytes ranging from 1 to 4. +

+Since Mutt is a command-line tool run from a shell, and delegates +certain tasks to external tools (such as an editor for composing/editing +messages), all of these tools need to agree on a character set and +encoding. There exists no way to reliably deduce the character set a +plain text file has. Interoperability is gained by the use of +well-defined environment variables. The full set can be printed by +issuing locale on the command line. +

+Upon startup, Mutt determines the character set on its own using +routines that inspect locale-specific environment variables. Therefore, +it is generally not necessary to set the $charset +variable in Mutt. It may even be counter-productive as Mutt uses system +and library functions that derive the character set themselves and on +which Mutt has no influence. It's safest to let Mutt work out the locale +setup itself. +

+If you happen to work with several character sets on a regular basis, +it's highly advisable to use Unicode and an UTF-8 locale. Unicode can +represent nearly all characters in a message at the same time. When not +using a Unicode locale, it may happen that you receive messages with +characters not representable in your locale. When displaying such a +message, or replying to or forwarding it, information may get lost +possibly rendering the message unusable (not only for you but also for +the recipient, this breakage is not reversible as lost information +cannot be guessed). +

+A Unicode locale makes all conversions superfluous which eliminates the +risk of conversion errors. It also eliminates potentially wrong +expectations about the character set between Mutt and external programs. +

+The terminal emulator used also must be properly configured for the +current locale. Terminal emulators usually do not +derive the locale from environment variables, they need to be configured +separately. If the terminal is incorrectly configured, Mutt may display +random and unexpected characters (question marks, octal codes, or just +random glyphs), format strings may not work as expected, you may not be +abled to enter non-ascii characters, and possible more. Data is always +represented using bytes and so a correct setup is very important as to +the machine, all character sets “look” the same. +

+Warning: A mismatch between what system and library functions think the +locale is and what Mutt was told what the locale is may make it behave +badly with non-ascii input: it will fail at seemingly random places. +This warning is to be taken seriously since not only local mail handling +may suffer: sent messages may carry wrong character set information the +receiver has too deal with. The need to set +$charset directly in most cases points at terminal +and environment variable setup problems, not Mutt problems. +

+A list of officially assigned and known character sets can be found at +IANA, +a list of locally supported locales can be obtained by running +locale -a. +

2. Regular Expressions

+All string patterns in Mutt including those in more complex patterns must be specified using regular +expressions (regexp) in the “POSIX extended” syntax (which is more or less the syntax used by egrep and GNU awk). For your convenience, we have included below a brief description of this syntax.

The search is case sensitive if the pattern contains at least one upper case letter, and case insensitive otherwise. -

Note

-“\” -must be quoted if used for a regular expression in an initialization -command: “\\”. +

Note

+“\” must be quoted if used for a regular expression in an +initialization command: “\\”.

A regular expression is a pattern that describes a set of strings. Regular expressions are constructed analogously to arithmetic expressions, by using various operators to combine smaller expressions. -

Note

-The regular expression can be enclosed/delimited by either " -or ' which is useful if the regular expression includes a white-space -character. See Syntax of Initialization Files -for more information on " and ' delimiter processing. To match a -literal " or ' you must preface it with \ (backslash). +

Note

+The regular expression can be enclosed/delimited by either " or ' which +is useful if the regular expression includes a white-space character. +See Syntax of Initialization Files for more information on " and ' +delimiter processing. To match a literal " or ' you must preface it +with \ (backslash).

-The fundamental building blocks are the regular expressions that match -a single character. Most characters, including all letters and digits, +The fundamental building blocks are the regular expressions that match a +single character. Most characters, including all letters and digits, are regular expressions that match themselves. Any metacharacter with special meaning may be quoted by preceding it with a backslash.

-The period “.” matches any single character. The caret “^” and -the dollar sign “$” are metacharacters that respectively match -the empty string at the beginning and end of a line. -

-A list of characters enclosed by “[” and “]” matches any -single character in that list; if the first character of the list -is a caret “^” then it matches any character not in the -list. For example, the regular expression [0123456789] -matches any single digit. A range of ASCII characters may be specified -by giving the first and last characters, separated by a hyphen -“-”. Most metacharacters lose their special meaning inside -lists. To include a literal “]” place it first in the list. -Similarly, to include a literal “^” place it anywhere but first. -Finally, to include a literal hyphen “-” place it last. +The period “.” matches any single character. The caret +“^” and the dollar sign “$” are metacharacters +that respectively match the empty string at the beginning and end of a +line. +

+A list of characters enclosed by “[” and “]” +matches any single character in that list; if the first character of the +list is a caret “^” then it matches any character +not in the list. For example, the regular +expression [0123456789] matches any single digit. +A range of ASCII characters may be specified by giving the first and +last characters, separated by a hyphen “-”. Most +metacharacters lose their special meaning inside lists. To include a +literal “]” place it first in the list. Similarly, to +include a literal “^” place it anywhere but first. +Finally, to include a literal hyphen “-” place it last.

Certain named classes of characters are predefined. Character classes -consist of “[:”, a keyword denoting the class, and “:]”. -The following classes are defined by the POSIX standard in -Table 4.1, “POSIX regular expression character classes” -

Table 4.1. POSIX regular expression character classes

Character classDescription
[:alnum:]Alphanumeric characters
[:alpha:]Alphabetic characters
[:blank:]Space or tab characters
[:cntrl:]Control characters
[:digit:]Numeric characters
[:graph:]Characters that are both printable and visible. (A space is printable, but not visible, while an “a” is both)
[:lower:]Lower-case alphabetic characters
[:print:]Printable characters (characters that are not control characters)
[:punct:]Punctuation characters (characters that are not letter, digits, control characters, or space characters)
[:space:]Space characters (such as space, tab and formfeed, to name a few)
[:upper:]Upper-case alphabetic characters
[:xdigit:]Characters that are hexadecimal digits

+consist of “[:”, a keyword denoting the class, and +“:]”. The following classes are defined by the POSIX +standard in +Table 4.1, “POSIX regular expression character classes” +

Table 4.1. POSIX regular expression character classes

Character classDescription
[:alnum:]Alphanumeric characters
[:alpha:]Alphabetic characters
[:blank:]Space or tab characters
[:cntrl:]Control characters
[:digit:]Numeric characters
[:graph:]Characters that are both printable and visible. (A space is printable, but not visible, while an “a” is both)
[:lower:]Lower-case alphabetic characters
[:print:]Printable characters (characters that are not control characters)
[:punct:]Punctuation characters (characters that are not letter, digits, control characters, or space characters)
[:space:]Space characters (such as space, tab and formfeed, to name a few)
[:upper:]Upper-case alphabetic characters
[:xdigit:]Characters that are hexadecimal digits

A character class is only valid in a regular expression inside the brackets of a character list. -

Note

-Note that the brackets in these -class names are part of the symbolic names, and must be included -in addition to the brackets delimiting the bracket list. For -example, [[:digit:]] is equivalent to -[0-9]. +

Note

+Note that the brackets in these class names are part of the symbolic +names, and must be included in addition to the brackets delimiting the +bracket list. For example, [[:digit:]] is +equivalent to [0-9].

Two additional special sequences can appear in character lists. These apply to non-ASCII character sets, which can have single symbols (called @@ -2146,277 +2360,295 @@ as well as several characters that are equivalent for collating or sorting purposes:

Collating Symbols

A collating symbol is a multi-character collating element enclosed in -“[.” and “.]”. For example, if “ch” is a collating -element, then [[.ch.]] is a regexp that matches -this collating element, while [ch] is a regexp that -matches either “c” or “h”. +“[.” and “.]”. For example, if +“ch” is a collating element, then +[[.ch.]] is a regexp that matches this collating +element, while [ch] is a regexp that matches either +“c” or “h”.

Equivalence Classes

-An equivalence class is a locale-specific name for a list of -characters that are equivalent. The name is enclosed in “[=” -and “=]”. For example, the name “e” might be used to -represent all of “è” “é” and “e”. In this case, -[[=e=]] is a regexp that matches any of -“è”, “é” and “e”. +An equivalence class is a locale-specific name for a list of characters +that are equivalent. The name is enclosed in “[=” and +“=]”. For example, the name “e” might be used +to represent all of “e” with grave +(“è”), “e” with acute +(“é”) and “e”. In this case, +[[=e=]] is a regexp that matches any of: +“e” with grave (“è”), “e” +with acute (“é”) and “e”.

A regular expression matching a single character may be followed by one -of several repetition operators described in Table 4.2, “Regular expression repetition operators”. +of several repetition operators described in Table 4.2, “Regular expression repetition operators”.

Table 4.2. Regular expression repetition operators

OperatorDescription
?The preceding item is optional and matched at most once
*The preceding item will be matched zero or more times
+The preceding item will be matched one or more times
{n}The preceding item is matched exactly n times
{n,}The preceding item is matched n or more times
{,m}The preceding item is matched at most m times
{n,m}The preceding item is matched at least n times, but no more than m times

Two regular expressions may be concatenated; the resulting regular expression matches any string formed by concatenating two substrings that respectively match the concatenated subexpressions.

-Two regular expressions may be joined by the infix operator “|”; -the resulting regular expression matches any string matching either -subexpression. +Two regular expressions may be joined by the infix operator +“|”; the resulting regular expression matches any string +matching either subexpression.

Repetition takes precedence over concatenation, which in turn takes precedence over alternation. A whole subexpression may be enclosed in parentheses to override these precedence rules. -

Note

+

Note

If you compile Mutt with the included regular expression engine, the -following operators may also be used in regular expressions as described in Table 4.3, “GNU regular expression extensions”. +following operators may also be used in regular expressions as described +in Table 4.3, “GNU regular expression extensions”.

Table 4.3. GNU regular expression extensions

ExpressionDescription
\\yMatches the empty string at either the beginning or the end of a word
\\BMatches the empty string within a word
\\<Matches the empty string at the beginning of a word
\\>Matches the empty string at the end of a word
\\wMatches any word-constituent character (letter, digit, or underscore)
\\WMatches any character that is not word-constituent
\\`Matches the empty string at the beginning of a buffer (string)
\\'Matches the empty string at the end of a buffer

Please note however that these operators are not defined by POSIX, so they may or may not be available in stock libraries on various systems. -

2. Patterns: Searching, Limiting and Tagging

2.1. Pattern Modifier

+

3. Patterns: Searching, Limiting and Tagging

3.1. Pattern Modifier

Many of Mutt's commands allow you to specify a pattern to match (limit, tag-pattern, -delete-pattern, etc.). Table 4.4, “Pattern modifiers” +delete-pattern, etc.). Table 4.4, “Pattern modifiers” shows several ways to select messages. -

Table 4.4. Pattern modifiers

Pattern modifierDescription
~Aall messages
~b EXPRmessages which contain EXPR in the message body
=b STRINGmessages which contain STRING in the message body. If IMAP is enabled, searches for STRING on the server, rather than downloading each message and searching it locally.
~B EXPRmessages which contain EXPR in the whole message
~c EXPRmessages carbon-copied to EXPR
%c GROUPmessages carbon-copied to any member of GROUP
~C EXPRmessages either to: or cc: EXPR
%C GROUPmessages either to: or cc: to any member of GROUP
~d [MIN]-[MAX]messages with “date-sent” in a Date range
~Ddeleted messages
~e EXPRmessages which contains EXPR in the “Sender” field
%e GROUPmessages which contain a member of GROUP in the “Sender” field
~Eexpired messages
~Fflagged messages
~f EXPRmessages originating from EXPR
%f GROUPmessages originating from any member of GROUP
~gcryptographically signed messages
~Gcryptographically encrypted messages
~h EXPRmessages which contain EXPR in the message header
~H EXPRmessages with a spam attribute matching EXPR
~i EXPRmessages which match EXPR in the “Message-ID” field
~kmessages which contain PGP key material
~L EXPRmessages either originated or received by EXPR
%L GROUPmessage either originated or received by any member of GROUP
~lmessages addressed to a known mailing list
~m [MIN]-[MAX]messages in the range MIN to MAX *)
~n [MIN]-[MAX]messages with a score in the range MIN to MAX *)
~Nnew messages
~Oold messages
~pmessages addressed to you (consults alternates)
~Pmessages from you (consults alternates)
~Qmessages which have been replied to
~r [MIN]-[MAX]messages with “date-received” in a Date range
~Rread messages
~s EXPRmessages having EXPR in the “Subject” field.
~Ssuperseded messages
~t EXPRmessages addressed to EXPR
~Ttagged messages
~umessages addressed to a subscribed mailing list
~Uunread messages
~vmessages part of a collapsed thread.
~Vcryptographically verified messages
~x EXPRmessages which contain EXPR in the “References” or “In-Reply-To” field
~X [MIN]-[MAX]messages with MIN to MAX attachments *)
~y EXPRmessages which contain EXPR in the “X-Label” field
~z [MIN]-[MAX]messages with a size in the range MIN to MAX *) **)
~=duplicated messages (see $duplicate_threads)
~$unreferenced messages (requires threaded view)
~(PATTERN)messages in threads +

Table 4.4. Pattern modifiers

Pattern modifierDescription
~Aall messages
~b EXPRmessages which contain EXPR in the message body
=b STRINGmessages which contain STRING in the message body. If IMAP is enabled, searches for STRING on the server, rather than downloading each message and searching it locally.
~B EXPRmessages which contain EXPR in the whole message
~c EXPRmessages carbon-copied to EXPR
%c GROUPmessages carbon-copied to any member of GROUP
~C EXPRmessages either to: or cc: EXPR
%C GROUPmessages either to: or cc: to any member of GROUP
~d [MIN]-[MAX]messages with “date-sent” in a Date range
~Ddeleted messages
~e EXPRmessages which contains EXPR in the “Sender” field
%e GROUPmessages which contain a member of GROUP in the “Sender” field
~Eexpired messages
~Fflagged messages
~f EXPRmessages originating from EXPR
%f GROUPmessages originating from any member of GROUP
~gcryptographically signed messages
~Gcryptographically encrypted messages
~h EXPRmessages which contain EXPR in the message header
~H EXPRmessages with a spam attribute matching EXPR
~i EXPRmessages which match EXPR in the “Message-ID” field
~kmessages which contain PGP key material
~L EXPRmessages either originated or received by EXPR
%L GROUPmessage either originated or received by any member of GROUP
~lmessages addressed to a known mailing list
~m [MIN]-[MAX]messages in the range MIN to MAX *)
~n [MIN]-[MAX]messages with a score in the range MIN to MAX *)
~Nnew messages
~Oold messages
~pmessages addressed to you (consults alternates)
~Pmessages from you (consults alternates)
~Qmessages which have been replied to
~r [MIN]-[MAX]messages with “date-received” in a Date range
~Rread messages
~s EXPRmessages having EXPR in the “Subject” field.
~Ssuperseded messages
~t EXPRmessages addressed to EXPR
~Ttagged messages
~umessages addressed to a subscribed mailing list
~Uunread messages
~vmessages part of a collapsed thread.
~Vcryptographically verified messages
~x EXPRmessages which contain EXPR in the “References” or “In-Reply-To” field
~X [MIN]-[MAX]messages with MIN to MAX attachments *)
~y EXPRmessages which contain EXPR in the “X-Label” field
~z [MIN]-[MAX]messages with a size in the range MIN to MAX *) **)
~=duplicated messages (see $duplicate_threads)
~$unreferenced messages (requires threaded view)
~(PATTERN)messages in threads containing messages matching PATTERN, e.g. all threads containing messages from you: ~(~P)

-Where EXPR is a -regular expression. -

-*) The forms “<[MAX]”, “>[MIN]”, -“[MIN]-” and “-[MAX]” -are allowed, too. -

-**) The suffixes “K” and “M” are allowed to specify kilobyte and megabyte respectively. -

-Special attention has to be -payed when using regular expressions inside of patterns. Specifically, -Mutt's parser for these patterns will strip one level of backslash (“\”), -which is normally used for quoting. If it is your intention to use a -backslash in the regular expression, you will need to use two backslashes -instead (“\\”). You can force Mutt to treat EXPR as a simple string -instead of a regular expression by using = instead of ˜ in the -pattern name. For example, =b *.* will find all messages that contain -the literal string “*.*”. Simple string matches are less powerful than -regular expressions but can be considerably faster. This is especially -true for IMAP folders, because string matches can be performed on the -server instead of by fetching every message. IMAP treats =h specially: -it must be of the form “header: substring” and will not partially -match header names. The substring part may be omitted if you simply -wish to find messages containing a particular header without regard to -its value. -

-Patterns matching lists of addresses (notably c, C, p, P and t) -match if there is at least one match in the whole list. If you want to -make sure that all elements of that list match, you need to prefix your -pattern with “^”. -This example matches all mails which only has recipients from Germany. +Where EXPR is a regular expression, and GROUP is an +address group. +

+*) The forms “<[MAX]”, +“>[MIN]”, +“[MIN]-” and +“-[MAX]” are allowed, too. +

+**) The suffixes “K” and “M” are allowed to +specify kilobyte and megabyte respectively. +

+Special attention has to be payed when using regular expressions inside +of patterns. Specifically, Mutt's parser for these patterns will strip +one level of backslash (“\”), which is normally used for +quoting. If it is your intention to use a backslash in the regular +expression, you will need to use two backslashes instead +(“\\”). You can force Mutt to treat +EXPR as a simple string instead of a regular +expression by using = instead of ~ in the pattern name. For example, +=b *.* will find all messages that contain the +literal string “*.*”. Simple string matches are less +powerful than regular expressions but can be considerably faster. This +is especially true for IMAP folders, because string matches can be +performed on the server instead of by fetching every message. IMAP +treats =h specially: it must be of the form +“header: substring” and will not partially match header +names. The substring part may be omitted if you simply wish to find +messages containing a particular header without regard to its value. +

+Patterns matching lists of addresses (notably c, C, p, P and t) match if +there is at least one match in the whole list. If you want to make sure +that all elements of that list match, you need to prefix your pattern +with “^”. This example matches all mails which only has +recipients from Germany.

Example 4.1. Matching all addresses in address lists

 ^~C \.de$
-

2.2. Simple Searches

-Mutt supports two versions of so called “simple searches”. These are -issued if the query entered for searching, limiting and similar -operations does not seem to contain a valid pattern modifier (i.e. it does not contain -one of these characters: “˜”, “=” or “%”). If the query is -supposed to contain one of these special characters, they must be escaped -by prepending a backslash (“\”). +


3.2. Simple Searches

+Mutt supports two versions of so called “simple +searches”. These are issued if the query entered for searching, +limiting and similar operations does not seem to contain a valid pattern +modifier (i.e. it does not contain one of these characters: +“~”, “=” or “%”). If the query is +supposed to contain one of these special characters, they must be +escaped by prepending a backslash (“\”).

The first type is by checking whether the query string equals -a keyword case-insensitively from Table 4.5, “Simple search keywords”: +a keyword case-insensitively from Table 4.5, “Simple search keywords”: If that is the case, Mutt will use the shown pattern modifier instead. If a keyword would conflict with your search keyword, you need to turn it into a regular expression to avoid matching the keyword table. For -example, if you want to find all messages matching “flag” -(using $simple_search) +example, if you want to find all messages matching “flag” +(using $simple_search) but don't want to match flagged messages, simply search for -“[f]lag”. +“[f]lag”.

Table 4.5. Simple search keywords

KeywordPattern modifier
all~A
.~A
^~A
del~D
flag~F
new~N
old~O
repl~Q
read~R
tag~T
unread~U

-The second type of simple search is to build a complex search -pattern using $simple_search -as a template. Mutt will insert your query properly quoted and search -for the composed complex query. -

2.3. Nesting and Boolean Operators

+The second type of simple search is to build a complex search pattern +using $simple_search as a +template. Mutt will insert your query properly quoted and search for the +composed complex query. +

3.3. Nesting and Boolean Operators

Logical AND is performed by specifying more than one criterion. For example:

 ~t mutt ~f elkins
 

-would select messages which contain the word “mutt” in the list of -recipients and that have the word “elkins” in the “From” header -field. +would select messages which contain the word “mutt” in the +list of recipients and that have the word +“elkins” in the “From” header field.

-Mutt also recognizes the following operators to create more complex search -patterns: -

  • +Mutt also recognizes the following operators to create more complex +search patterns: +

    • ! — logical NOT operator -

    • +

    • | — logical OR operator -

    • +

    • () — logical grouping operator

    -Here is an example illustrating a complex search pattern. This pattern will -select all messages which do not contain “mutt” in the “To” or “Cc” -field and which are from “elkins”. +Here is an example illustrating a complex search pattern. This pattern +will select all messages which do not contain “mutt” in the +“To” or “Cc” field and which are from +“elkins”.

    Example 4.2. Using boolean operators in patterns

     !(~t mutt|~c mutt) ~f elkins
     

    -Here is an example using white space in the regular expression (note -the ' and " delimiters). For this to match, the mail's subject must -match the “^Junk +From +Me$” and it must be from either “Jim +Somebody” -or “Ed +SomeoneElse”: +Here is an example using white space in the regular expression (note the +“'” and “"” delimiters). For this to match, +the mail's subject must match the “^Junk +From +Me$” and it +must be from either “Jim +Somebody” or “Ed ++SomeoneElse”:

    - '~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")'
    -

    Note

    -If a regular expression contains parenthesis, or a vertical bar -("|"), you must enclose the expression in double or single quotes since -those characters are also used to separate different parts of Mutt's -pattern language. For example: ~f "me@(mutt\.org|cs\.hmc\.edu)" -Without the quotes, the parenthesis wouldn't end. -This would be separated to two OR'd patterns: ˜f me@(mutt\.org -and cs\.hmc\.edu). They are never what you want. -

2.4. Searching by Date

-Mutt supports two types of dates, absolute and relative. -

2.4.1. Absolute Dates

-Dates must be in DD/MM/YY format (month and year are -optional, defaulting to the current month and year). An example of a valid -range of dates is: +'~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")' +

Note

+If a regular expression contains parenthesis, or a vertical bar ("|"), +you must enclose the expression in double or single +quotes since those characters are also used to separate different parts +of Mutt's pattern language. For example: ~f +"me@(mutt\.org|cs\.hmc\.edu)" Without the quotes, the +parenthesis wouldn't end. This would be separated to two OR'd patterns: +~f me@(mutt\.org and +cs\.hmc\.edu). They are never what you want. +

3.4. Searching by Date

+Mutt supports two types of dates, absolute and +relative. +

3.4.1. Absolute Dates

+Dates must be in DD/MM/YY format (month and year +are optional, defaulting to the current month and year). An example of +a valid range of dates is:

 Limit to messages matching: ~d 20/1/95-31/10
 

-If you omit the minimum (first) date, and just specify “-DD/MM/YY”, all -messages before the given date will be selected. If you omit the maximum -(second) date, and specify “DD/MM/YY-”, all messages after the given -date will be selected. If you specify a single date with no dash (“-”), -only messages sent on the given date will be selected. -

-You can add error margins to absolute dates. -An error margin is a sign (+ or -), followed by a digit, followed by -one of the units in Table 4.6, “Date units”. As a special case, you can replace the -sign by a “*” character, which is equivalent to giving identical plus and minus error margins. +If you omit the minimum (first) date, and just specify +“-DD/MM/YY”, all messages before the +given date will be selected. If you omit the maximum (second) date, and +specify “DD/MM/YY-”, all messages +after the given date will be selected. If you +specify a single date with no dash (“-”), only messages +sent on the given date will be selected. +

+You can add error margins to absolute dates. An error margin is a sign +(+ or -), followed by a digit, followed by one of the units in Table 4.6, “Date units”. As a special case, you can replace the sign +by a “*” character, which is equivalent to giving identical +plus and minus error margins.

Table 4.6. Date units

UnitDescription
yYears
mMonths
wWeeks
dDays

-Example: To select any messages two weeks around January 15, 2001, -you'd use the following pattern: +Example: To select any messages two weeks around January 15, 2001, you'd +use the following pattern:

 Limit to messages matching: ~d 15/1/2001*2w
-

2.4.2. Relative Dates

-This type of date is relative to the current date, and may -be specified as: -

  • ->offset for messages older than offset units -

  • -<offset for messages newer than offset units -

  • -=offset for messages exactly offset units old +

3.4.2. Relative Dates

+This type of date is relative to the current date, and may be specified +as: +

  • +>offset for messages older than +offset units +

  • +<offset for messages newer than +offset units +

  • +=offset for messages exactly +offset units old

-offset is specified as a positive number with one of the units from Table 4.6, “Date units”. +offset is specified as a positive number with one +of the units from Table 4.6, “Date units”.

Example: to select messages less than 1 month old, you would use

 Limit to messages matching: ~d <1m
-

Note

+

Note

All dates used when searching are relative to the -local time zone, so unless you change the setting of your $index_format to include a -%[...] format, these are not the dates shown -in the main index. -

3. Using Tags

-Sometimes it is desirable to perform an operation on a group of -messages all at once rather than one at a time. An example might be -to save messages to a mailing list to a separate folder, or to -delete all messages with a given subject. To tag all messages -matching a pattern, use the <tag-pattern> function, which is bound to -“shift-T” by default. Or you can select individual messages by -hand using the <tag-message> function, which is bound to “t” by -default. See patterns for Mutt's pattern -matching syntax. +local time zone, so unless you change the setting +of your $index_format to include a +%[...] format, these are not the +dates shown in the main index. +

4. Using Tags

+Sometimes it is desirable to perform an operation on a group of messages +all at once rather than one at a time. An example might be to save +messages to a mailing list to a separate folder, or to delete all +messages with a given subject. To tag all messages matching a pattern, +use the <tag-pattern> function, which is bound +to “shift-T” by default. Or you can select individual +messages by hand using the <tag-message> +function, which is bound to “t” by default. See patterns for Mutt's pattern matching syntax.

Once you have tagged the desired messages, you can use the -“tag-prefix” operator, which is the “;” (semicolon) key by default. -When the “tag-prefix” operator is used, the next operation will -be applied to all tagged messages if that operation can be used in that -manner. If the $auto_tag -variable is set, the next operation applies to the tagged messages -automatically, without requiring the “tag-prefix”. -

-In macros or push commands, -you can use the <tag-prefix-cond> operator. If there are no tagged -messages, Mutt will “eat” the rest of the macro to abort it's execution. -Mutt will stop “eating” the macro when it encounters the <end-cond> -operator; after this operator the rest of the macro will be executed as -normal. -

4. Using Hooks

-A hook is a concept found in many other programs which allows you to -execute arbitrary commands before performing some operation. For example, -you may wish to tailor your configuration based upon which mailbox you are -reading, or to whom you are sending mail. In the Mutt world, a hook -consists of a regular expression or -pattern along with a -configuration option/command. See: +“tag-prefix” operator, which is the “;” +(semicolon) key by default. When the “tag-prefix” operator +is used, the next operation will be applied to all +tagged messages if that operation can be used in that manner. If the +$auto_tag variable is set, the next +operation applies to the tagged messages automatically, without +requiring the “tag-prefix”. +

+In macros or push commands, you can use the +<tag-prefix-cond> operator. If there are no +tagged messages, Mutt will “eat” the rest of the macro to +abort it's execution. Mutt will stop “eating” the macro +when it encounters the <end-cond> operator; +after this operator the rest of the macro will be executed as normal. +

5. Using Hooks

+A hook is a concept found in many other programs +which allows you to execute arbitrary commands before performing some +operation. For example, you may wish to tailor your configuration based +upon which mailbox you are reading, or to whom you are sending mail. In +the Mutt world, a hook consists of a regular expression or pattern along with a configuration +option/command. See: -

  • -account-hook -

  • -charset-hook -

  • -crypt-hook -

  • -fcc-hook -

  • -fcc-save-hook -

  • -folder-hook -

  • +

    for specific details on each type of hook available. -

    Note

    -If a hook changes configuration settings, these changes remain -effective until the end of the current Mutt session. As this is generally -not desired, a “default” hook needs to be added before all -other hooks of that type to restore configuration defaults. -

    Example 4.3. Specifying a “default” hook

    +

    Note

    +If a hook changes configuration settings, these changes remain effective +until the end of the current Mutt session. As this is generally not +desired, a “default” hook needs to be added before all +other hooks of that type to restore configuration defaults. +

    Example 4.3. Specifying a “default” hook

     send-hook . 'unmy_hdr From:'
     send-hook ~C'^b@b\.b$' my_hdr from: c@c.c
     

    -In Example 4.3, “Specifying a default hook”, by default the value of -$from -and $realname -is not overridden. When sending messages either To: or Cc: -to <b@b.b>, the From: header is changed to -<c@c.c>. -

    4.1. Message Matching in Hooks

    -Hooks that act upon messages (message-hook, reply-hook, -send-hook, send2-hook, save-hook, fcc-hook) are evaluated in a -slightly different manner. For the other -types of hooks, a regular expression is -sufficient. But in dealing with messages a finer grain of control is -needed for matching since for different purposes you want to match -different criteria. -

    -Mutt allows the use of the search pattern -language for matching messages in hook commands. This works in -exactly the same way as it would when limiting or -searching the mailbox, except that you are restricted to those -operators which match information Mutt extracts from the header of -the message (i.e., from, to, cc, date, subject, etc.). +In Example 4.3, “Specifying a “default” hook”, by default the value of $from and $realname is not overridden. When sending +messages either To: or Cc: to <b@b.b>, the +From: header is changed to <c@c.c>. +

    5.1. Message Matching in Hooks

    +Hooks that act upon messages (message-hook, +reply-hook, send-hook, +send2-hook, save-hook, +fcc-hook) are evaluated in a slightly different +manner. For the other types of hooks, a regular +expression is sufficient. But in dealing with messages a finer +grain of control is needed for matching since for different purposes you +want to match different criteria. +

    +Mutt allows the use of the search +pattern language for matching messages in hook commands. This +works in exactly the same way as it would when +limiting or searching the +mailbox, except that you are restricted to those operators which match +information Mutt extracts from the header of the message (i.e., from, +to, cc, date, subject, etc.).

    For example, if you wanted to set your return address based upon sending mail to a specific address, you could do something like: @@ -2426,21 +2658,20 @@ send-hook '~t ^me@cs\.hmc\.edu$' 'my_hdr From: Mutt User <user@host>' which would execute the given command when sending mail to me@cs.hmc.edu.

    -However, it is not required that you write the pattern to match using the -full searching language. You can still specify a simple regular -expression like the other hooks, in which case Mutt will translate your -pattern into the full language, using the translation specified by the -$default_hook variable. The -pattern is translated at the time the hook is declared, so the value of -$default_hook that is in effect -at that time will be used. -

    5. External Address Queries

    +However, it is not required that you write the pattern to match using +the full searching language. You can still specify a simple +regular expression like the other hooks, in which +case Mutt will translate your pattern into the full language, using the +translation specified by the $default_hook variable. The pattern is +translated at the time the hook is declared, so the value of $default_hook that is in effect at that +time will be used. +

    6. External Address Queries

    Mutt supports connecting to external directory databases such as LDAP, ph/qi, bbdb, or NIS through a wrapper script which connects to Mutt -using a simple interface. Using the $query_command variable, you specify the wrapper -command to use. For example: +using a simple interface. Using the $query_command variable, you specify the +wrapper command to use. For example:

    -set query_command = "mutt_ldap_query.pl '%s'"
    +set query_command = "mutt_ldap_query.pl %s"
     

    The wrapper script should accept the query on the command-line. It should return a one line message, then each matching response on a @@ -2456,273 +2687,294 @@ blong@fiction.net Brandon Long mutt and more roessler@does-not-exist.org Thomas Roessler mutt pgp

    There are two mechanisms for accessing the query function of Mutt. One -is to do a query from the index menu using the <query> function (default: Q). -This will prompt for a query, then bring up the query menu which will -list the matching responses. From the query menu, you can select -addresses to create aliases, or to mail. You can tag multiple addresses -to mail, start a new query, or have a new query appended to the current +is to do a query from the index menu using the +<query> function (default: Q). This will +prompt for a query, then bring up the query menu which will list the +matching responses. From the query menu, you can select addresses to +create aliases, or to mail. You can tag multiple addresses to mail, +start a new query, or have a new query appended to the current responses.

    The other mechanism for accessing the query function is for address completion, similar to the alias completion. In any prompt for address -entry, you can use the <complete-query> function (default: ^T) to run a -query based on the current address you have typed. Like aliases, Mutt -will look for what you have typed back to the last space or comma. If -there is a single response for that query, Mutt will expand the address -in place. If there are multiple responses, Mutt will activate the query -menu. At the query menu, you can select one or more addresses to be -added to the prompt. -

    6. Mailbox Formats

    -Mutt supports reading and writing of four different local mailbox formats: -mbox, MMDF, MH and Maildir. The mailbox type is autodetected, so there -is no need to use a flag for different mailbox types. When creating new -mailboxes, Mutt uses the default specified with the -$mbox_type variable. A -short description of the formats follows. -

    -mbox. This is a widely used mailbox format for UNIX. All -messages are stored in a single file. Each message has a line of the form: +entry, you can use the <complete-query> +function (default: ^T) to run a query based on the current address you +have typed. Like aliases, Mutt will look for what you have typed back +to the last space or comma. If there is a single response for that +query, Mutt will expand the address in place. If there are multiple +responses, Mutt will activate the query menu. At the query menu, you +can select one or more addresses to be added to the prompt. +

    7. Mailbox Formats

    +Mutt supports reading and writing of four different local mailbox +formats: mbox, MMDF, MH and Maildir. The mailbox type is auto detected, +so there is no need to use a flag for different mailbox types. When +creating new mailboxes, Mutt uses the default specified with the $mbox_type variable. A short description of +the formats follows. +

    +mbox. This is a widely used mailbox format for +UNIX. All messages are stored in a single file. Each message has a +line of the form:

     From me@cs.hmc.edu Fri, 11 Apr 1997 11:44:56 PST
     

    to denote the start of a new message (this is often referred to as the -“From_” line). The mbox format requires mailbox -locking, is prone to mailbox corruption with concurrently writing -clients or misinterpreted From_ lines. Depending on the -environment, new mail detection can be unreliable. Mbox folders are fast -to open and easy to archive. -

    -MMDF. This is a variant of -the mbox format. Each message is surrounded by -lines containing “^A^A^A^A” (four -control-A's). The same problems as for mbox apply (also with finding the -right message separator as four control-A's may appear in message -bodies). -

    -MH. A radical departure from mbox and MMDF, a mailbox +“From_” line). The mbox format requires mailbox locking, is +prone to mailbox corruption with concurrently writing clients or +misinterpreted From_ lines. Depending on the environment, new mail +detection can be unreliable. Mbox folders are fast to open and easy to +archive. +

    +MMDF. This is a variant of the +mbox format. Each message is surrounded by lines +containing “^A^A^A^A” (four times control-A's). The same +problems as for mbox apply (also with finding the right message +separator as four control-A's may appear in message bodies). +

    +MH. A radical departure from +mbox and MMDF, a mailbox consists of a directory and each message is stored in a separate file. The filename indicates the message number (however, this is may not correspond to the message number Mutt displays). Deleted messages are -renamed with a comma (“,”) prepended to the filename. Mutt -detects this type of mailbox by looking for either .mh_sequences -or .xmhcache files (needed to distinguish normal directories from MH -mailboxes). MH is more robust with concurrent clients writing the mailbox, -but still may suffer from lost flags; message corruption is less likely -to occur than with mbox/mmdf. It's usually slower to open compared to -mbox/mmdf since many small files have to be read (Mutt provides -Section 7.1, “Header Caching” to greatly speed this process up). -Depending on the environment, MH is not very disk-space efficient. -

    -Maildir. The newest of the mailbox formats, used by the Qmail MTA (a -replacement for sendmail). Similar to MH, except that it adds three -subdirectories of the mailbox: tmp, new and cur. Filenames -for the messages are chosen in such a way they are unique, even when two -programs are writing the mailbox over NFS, which means that no file locking -is needed and corruption is very unlikely. Maildir maybe -slower to open without caching in Mutt, it too is not very -disk-space efficient depending on the environment. Since no additional -files are used for metadata (which is embedded in the message filenames) -and Maildir is locking-free, it's easy to sync across different machines -using file-level synchronization tools. -

    7. Mailbox Shortcuts

    -There are a number of built in shortcuts which refer to specific mailboxes. -These shortcuts can be used anywhere you are prompted for a file or mailbox -path or in path-related configuration variables. Note that these only -work at the beginning of a string. -

    • -! — refers to your $spoolfile (incoming) mailbox -

    • -> — refers to your $mbox file -

    • -< — refers to your $record file -

    • -^ — refers to the current mailbox -

    • -- or !! — refers to the file you've last visited -

    • -˜ — refers to your home directory -

    • -= or + — refers to your $folder directory -

    • -@alias — refers to the default save folder as determined by the address of the alias -

    +renamed with a comma (“,”) prepended to the filename. Mutt +detects this type of mailbox by looking for either +.mh_sequences or .xmhcache files +(needed to distinguish normal directories from MH mailboxes). MH is more +robust with concurrent clients writing the mailbox, but still may suffer +from lost flags; message corruption is less likely to occur than with +mbox/mmdf. It's usually slower to open compared to mbox/mmdf since many +small files have to be read (Mutt provides Section 7.1, “Header Caching” to greatly speed this process up). Depending +on the environment, MH is not very disk-space efficient. +

    +Maildir. The newest of the mailbox formats, used +by the Qmail MTA (a replacement for sendmail). Similar to +MH, except that it adds three subdirectories of the +mailbox: tmp, new and +cur. Filenames for the messages are chosen in such +a way they are unique, even when two programs are writing the mailbox +over NFS, which means that no file locking is needed and corruption is +very unlikely. Maildir maybe slower to open without caching in Mutt, it +too is not very disk-space efficient depending on the environment. Since +no additional files are used for metadata (which is embedded in the +message filenames) and Maildir is locking-free, it's easy to sync across +different machines using file-level synchronization tools. +

    8. Mailbox Shortcuts

    +There are a number of built in shortcuts which refer to specific +mailboxes. These shortcuts can be used anywhere you are prompted for a +file or mailbox path or in path-related configuration variables. Note +that these only work at the beginning of a string. +

    Table 4.7. Mailbox shortcuts

    ShortcutRefers to...
    !your $spoolfile (incoming) mailbox
    >your $mbox file
    <your $record file
    ^the current mailbox
    - or !!the file you've last visited
    ~your home directory
    = or +your $folder directory
    @aliasto the default save folder as determined by the address of the alias

    For example, to store a copy of outgoing messages in the folder they -were composed in, -a folder-hook can -be used to set $record: +were composed in, a folder-hook can be used +to set $record:

    -folder-hook . 'set record=^'

    8. Handling Mailing Lists

    +folder-hook . 'set record=^'

    9. Handling Mailing Lists

    Mutt has a few configuration options that make dealing with large -amounts of mail easier. The first thing you must do is to let Mutt -know what addresses you consider to be mailing lists (technically -this does not have to be a mailing list, but that is what it is most -often used for), and what lists you are subscribed to. This is -accomplished through the use of the lists and subscribe commands in your .muttrc. +amounts of mail easier. The first thing you must do is to let Mutt know +what addresses you consider to be mailing lists (technically this does +not have to be a mailing list, but that is what it is most often used +for), and what lists you are subscribed to. This is accomplished +through the use of the lists +and subscribe commands in your +.muttrc.

    Now that Mutt knows what your mailing lists are, it can do several things, the first of which is the ability to show the name of a list -through which you received a message (i.e., of a subscribed list) in -the index menu display. This is useful to distinguish between -personal and list mail in the same mailbox. In the $index_format variable, the expando “%L” -will print the string “To <list>” when “list” appears in the -“To” field, and “Cc <list>” when it appears in the “Cc” +through which you received a message (i.e., of a subscribed list) in the +index menu display. This is useful to distinguish +between personal and list mail in the same mailbox. In the $index_format variable, the expando +“%L” will print the string “To <list>” +when “list” appears in the “To” field, and +“Cc <list>” when it appears in the “Cc” field (otherwise it prints the name of the author).

    -Often times the “To” and “Cc” fields in mailing list messages -tend to get quite large. Most people do not bother to remove the -author of the message they reply to from the list, resulting in -two or more copies being sent to that person. The <list-reply> -function, which by default is bound to “L” in the index menu -and pager, helps reduce the clutter by only replying to the -known mailing list addresses instead of all recipients (except as +Often times the “To” and “Cc” fields in +mailing list messages tend to get quite large. Most people do not bother +to remove the author of the message they reply to from the list, +resulting in two or more copies being sent to that person. The +<list-reply> function, which by default is +bound to “L” in the index menu and +pager, helps reduce the clutter by only replying to +the known mailing list addresses instead of all recipients (except as specified by Mail-Followup-To, see below).

    -Mutt also supports the Mail-Followup-To header. When you send -a message to a list of recipients which includes one or several -subscribed mailing lists, and if the $followup_to option is set, Mutt will generate -a Mail-Followup-To header which contains all the recipients to whom -you send this message, but not your address. This indicates that -group-replies or list-replies (also known as “followups”) to this -message should only be sent to the original recipients of the +Mutt also supports the Mail-Followup-To header. When +you send a message to a list of recipients which includes one or several +subscribed mailing lists, and if the $followup_to option is set, Mutt will +generate a Mail-Followup-To header which contains all the recipients to +whom you send this message, but not your address. This indicates that +group-replies or list-replies (also known as “followups”) +to this message should only be sent to the original recipients of the message, and not separately to you - you'll receive your copy through one of the mailing lists you are subscribed to.

    -Conversely, when group-replying or list-replying to a message which -has a Mail-Followup-To header, Mutt will respect this header if -the $honor_followup_to configuration -variable is set. Using list-reply will in this case also make sure -that the reply goes to the mailing list, even if it's not specified -in the list of recipients in the Mail-Followup-To. -

    Note

    +Conversely, when group-replying or list-replying to a message which has +a Mail-Followup-To header, Mutt will respect this +header if the $honor_followup_to configuration +variable is set. Using list-reply +will in this case also make sure that the reply goes to the mailing +list, even if it's not specified in the list of recipients in the +Mail-Followup-To. +

    Note

    When header editing is enabled, you can create a -Mail-Followup-To header manually. Mutt will only auto-generate -this header if it doesn't exist when you send the message. +Mail-Followup-To header manually. Mutt will only +auto-generate this header if it doesn't exist when you send the message.

    The other method some mailing list admins use is to generate a -“Reply-To” field which points back to the mailing list address rather -than the author of the message. This can create problems when trying -to reply directly to the author in private, since most mail clients -will automatically reply to the address given in the “Reply-To” -field. Mutt uses the $reply_to -variable to help decide which address to use. If set to ask-yes or -ask-no, you will be -prompted as to whether or not you would like to use the address given in -the “Reply-To” field, or reply directly to the address given in the -“From” field. When set to yes, the “Reply-To” field will be used when -present. -

    -The “X-Label:” header field can be used to further identify mailing -lists or list subject matter (or just to annotate messages -individually). The $index_format variable's “%y” and -“%Y” expandos can be used to expand “X-Label:” fields in the -index, and Mutt's pattern-matcher can match regular expressions to -“X-Label:” fields with the “˜y” selector. “X-Label:” is not a -standard message header field, but it can easily be inserted by procmail -and other mail filtering agents. -

    -Lastly, Mutt has the ability to sort the mailbox into -threads. A thread is a group of messages which all relate to the same -subject. This is usually organized into a tree-like structure where a -message and all of its replies are represented graphically. If you've ever -used a threaded news client, this is the same concept. It makes dealing -with large volume mailing lists easier because you can easily delete -uninteresting threads and quickly find topics of value. -

    9. Handling multiple folders

    -Mutt supports setups with multiple folders, allowing all of them to -be monitored for new mail (see Section 14, “Monitoring Incoming Mail” for details). -

    -When in the index menu and being idle (also see -$timeout), Mutt periodically checks -for new mail in all folders which have been configured via the +“Reply-To” field which points back to the mailing list +address rather than the author of the message. This can create problems +when trying to reply directly to the author in private, since most mail +clients will automatically reply to the address given in the +“Reply-To” field. Mutt uses the $reply_to variable to help decide which +address to use. If set to ask-yes or +ask-no, you will be prompted as to whether or not +you would like to use the address given in the “Reply-To” +field, or reply directly to the address given in the “From” +field. When set to yes, the +“Reply-To” field will be used when present. +

    +The “X-Label:” header field can be used to further identify +mailing lists or list subject matter (or just to annotate messages +individually). The $index_format +variable's “%y” and “%Y” expandos can be used +to expand “X-Label:” fields in the index, and Mutt's +pattern-matcher can match regular expressions to “X-Label:” +fields with the “~y” selector. “X-Label:” is +not a standard message header field, but it can easily be inserted by +procmail and other mail filtering agents. +

    +Lastly, Mutt has the ability to sort the +mailbox into threads. A thread is a +group of messages which all relate to the same subject. This is usually +organized into a tree-like structure where a message and all of its +replies are represented graphically. If you've ever used a threaded +news client, this is the same concept. It makes dealing with large +volume mailing lists easier because you can easily delete uninteresting +threads and quickly find topics of value. +

    10. New Mail Detection

    +Mutt supports setups with multiple folders, allowing all of them to be +monitored for new mail (see Section 14, “Monitoring Incoming Mail” for details). +

    10.1. How New Mail Detection Works

    +For Mbox and Mmdf folders, new mail is detected by comparing access +and/or modification times of files: Mutt assumes a folder has new mail +if it wasn't accessed after it was last modified. Utilities like +biff or frm or any other program +which accesses the mailbox might cause Mutt to never detect new mail for +that mailbox if they do not properly reset the access time. Other +possible causes of Mutt not detecting new mail in these folders are +backup tools (updating access times) or filesystems mounted without +access time update support (for Linux systems, see the +relatime option). +

    Note

    +Contrary to older Mutt releases, it now maintains the new mail status of +a folder by properly resetting the access time if the folder contains at +least one message which is neither read, nor deleted, nor marked as old. +

    +In cases where new mail detection for Mbox or Mmdf folders appears to be +unreliable, the $check_mbox_size +option can be used to make Mutt track and consult file sizes for new +mail detection instead which won't work for size-neutral changes. +

    +New mail for Maildir is assumed if there is one message in the +new/ subdirectory which is not marked deleted (see +$maildir_trash). For MH folders, a +mailbox is considered having new mail if there's at least one message in +the “unseen” sequence as specified by $mh_seq_unseen. +

    +Mutt does not poll POP3 folders for new mail, it only periodically +checks the currently opened folder (if it's a POP3 folder). +

    +For IMAP, by default Mutt uses recent message counts provided by the +server to detect new mail. If the $imap_idle option is set, it'll use the IMAP +IDLE extension if advertised by the server. +

    10.2. Polling For New Mail

    +When in the index menu and being idle (also see $timeout), Mutt periodically checks for new +mail in all folders which have been configured via the mailboxes command. The interval depends on the folder -type: for local/IMAP folders it consults -$mail_check and -$pop_checkinterval -for POP folders. -

    -Outside the index menu the directory browser supports checking -for new mail using the <check-new> function which is -unbound by default. Pressing TAB will bring up a -menu showing the files specified by the mailboxes command, -and indicate which contain new messages. Mutt will automatically enter this -mode when invoked from the command line with the -y option. +type: for local/IMAP folders it consults $mail_check and $pop_checkinterval for POP folders. +

    +Outside the index menu the directory browser supports checking for new +mail using the <check-new> function which is +unbound by default. Pressing TAB will bring up a menu showing the files +specified by the mailboxes command, and indicate +which contain new messages. Mutt will automatically enter this mode when +invoked from the command line with the -y option.

    For the pager, index and directory browser menus, Mutt contains the -<buffy-list> function (bound to “.” by default) -which will print a list of folders with new mail in the command line at -the bottom of the screen. +<buffy-list> function (bound to +“.” by default) which will print a list of folders with new +mail in the command line at the bottom of the screen.

    For the index, by default Mutt displays the number of mailboxes with new -mail in the status bar, please refer to the -$status_format -variable for details. +mail in the status bar, please refer to the $status_format variable for details.

    When changing folders, Mutt fills the prompt with the first folder from the mailboxes list containing new mail (if any), pressing -space will cycle through folders with new mail. -

    10. Editing Threads

    +<Space> will cycle through folders with new +mail. The (by default unbound) function +<next-unread-mailbox> in the index can be used +to immediately open the next folder with unread mail (if any). +

    11. Editing Threads

    Mutt has the ability to dynamically restructure threads that are broken either by misconfigured software or bad behavior from some correspondents. This allows to clean your mailboxes from these annoyances which make it hard to follow a discussion. -

    10.1. Linking Threads

    -Some mailers tend to “forget” to correctly set the “In-Reply-To:” and -“References:” headers when replying to a message. This results in broken -discussions because Mutt has not enough information to guess the correct -threading. -You can fix this by tagging the reply, then moving to the parent message -and using the <link-threads> function (bound to & by default). The -reply will then be connected to this parent message. -

    -You can also connect multiple children at once, tagging them and using the -<tag-prefix> command (';') or the $auto_tag option. -

    10.2. Breaking Threads

    +

    11.1. Linking Threads

    +Some mailers tend to “forget” to correctly set the +“In-Reply-To:” and “References:” headers when +replying to a message. This results in broken discussions because Mutt +has not enough information to guess the correct threading. You can fix +this by tagging the reply, then moving to the parent message and using +the <link-threads> function (bound to & by +default). The reply will then be connected to this parent message. +

    +You can also connect multiple children at once, tagging them and using +the <tag-prefix> command (“;”) or +the $auto_tag option. +

    11.2. Breaking Threads

    On mailing lists, some people are in the bad habit of starting a new -discussion by hitting “reply” to any message from the list and changing -the subject to a totally unrelated one. -You can fix such threads by using the <break-thread> function (bound -by default to #), which will turn the subthread starting from the +discussion by hitting “reply” to any message from the list +and changing the subject to a totally unrelated one. You can fix such +threads by using the <break-thread> function +(bound by default to #), which will turn the subthread starting from the current message into a whole different thread. -

    11. Delivery Status Notification (DSN) Support

    +

    12. Delivery Status Notification (DSN) Support

    RFC1894 defines a set of MIME content types for relaying information -about the status of electronic mail messages. These can be thought of as -“return receipts.” +about the status of electronic mail messages. These can be thought of +as “return receipts.”

    -To support DSN, there are two variables. $dsn_notify is used to request receipts for +To support DSN, there are two variables. $dsn_notify is used to request receipts for different results (such as failed message, message delivered, etc.). -$dsn_return requests how much -of your message should be returned with the receipt (headers or full -message). -

    -When using $sendmail for mail -delivery, you need to use either Berkeley sendmail 8.8.x (or greater) a MTA -supporting DSN command line options compatible to Sendmail: The -N and -R -options can be used by the mail client to make requests as to what type of -status messages should be returned. Please consider your MTA documentation -whether DSN is supported. -

    -For SMTP delivery using $smtp_url, it depends on the -capabilities announced by the server whether Mutt will attempt to -request DSN or not. -

    12. Start a WWW Browser on URLs

    -If a message contains URLs, it is efficient to get -a menu with all the URLs and start a WWW browser on one of them. This -functionality is provided by the external urlview program which can be -retrieved at +$dsn_return requests how much of your +message should be returned with the receipt (headers or full message). +

    +When using $sendmail for mail delivery, +you need to use either Berkeley sendmail 8.8.x (or greater) a MTA +supporting DSN command line options compatible to Sendmail: The -N and +-R options can be used by the mail client to make requests as to what +type of status messages should be returned. Please consider your MTA +documentation whether DSN is supported. +

    +For SMTP delivery using $smtp_url, it +depends on the capabilities announced by the server whether Mutt will +attempt to request DSN or not. +

    13. Start a WWW Browser on URLs

    +If a message contains URLs, it is efficient to get a menu with all the +URLs and start a WWW browser on one of them. This functionality is +provided by the external urlview program which can be retrieved at ftp://ftp.mutt.org/mutt/contrib/ and the configuration commands:

     macro index \cb |urlview\n
     macro pager \cb |urlview\n
    -

    13. Miscellany

    +

    14. Miscellany

    This section documents various features that fit nowhere else.

    Address normalization

    Mutt normalizes all e-mail addresses to the simplest form possible. If -an address contains a realname, the form -Joe User <joe@example.com> is used and the -pure e-mail address without angle brackets otherwise, i.e. just +an address contains a realname, the form Joe User +<joe@example.com> is used and the pure e-mail address +without angle brackets otherwise, i.e. just joe@example.com.

    This normalization affects all headers Mutt generates including aliases. @@ -2734,30 +2986,65 @@ specified in the $MAIL environment variable if present. Otherwise, the value of $MAILDIR is taken into account. If that isn't present either, Mutt takes the user's mailbox in the mailspool as determined at compile-time (which may also -reside in the home directory). The -$spoolfile setting overrides -this selection. Highest priority has the mailbox given with the +reside in the home directory). The $spoolfile setting overrides this +selection. Highest priority has the mailbox given with the -f command line option. -

Chapter 5. Mutt's MIME Support

Quite a bit of effort has been made to make Mutt the premier text-mode MIME MUA. Every effort has been made to provide the functionality that the discerning MIME user requires, and the conformance to the standards wherever possible. When configuring Mutt for MIME, there are two extra types of configuration files which Mutt uses. One is the -mime.types file, which contains the mapping of file extensions to -IANA MIME types. The other is the mailcap file, which specifies -the external commands to use for handling specific MIME types. -

1. Using MIME in Mutt

-There are three areas/menus in Mutt which deal with MIME, they are the -pager (while viewing a message), the attachment menu and the compose -menu. -

1.1. Viewing MIME Messages in the Pager

+mime.types file, which contains the mapping of file +extensions to IANA MIME types. The other is the +mailcap file, which specifies the external commands +to use for handling specific MIME types. +

1. Using MIME in Mutt

1.1. MIME Overview

+MIME is short for “Multipurpose Internet Mail Extension” +and describes mechanisms to internationalize and structure mail +messages. Before the introduction of MIME, messages had a single text +part and were limited to us-ascii header and content. With MIME, +messages can have attachments (and even attachments which itself have +attachments and thus form a tree structure), nearly arbitrary characters +can be used for sender names, recipients and subjects. +

+Besides the handling of non-ascii characters in message headers, to Mutt +the most important aspect of MIME are so-called MIME types. These are +constructed using a major and +minor type separated by a forward slash. These +specify details about the content that follows. Based upon these, Mutt +decides how to handle this part. The most popular major type is +“text” with minor types for plain text, +HTML and various other formats. Major types also exist for images, +audio, video and of course general application data (e.g. to separate +cryptographically signed data with a signature, send office documents, +and in general arbitrary binary data). There's also the +multipart major type which represents the root of a +subtree of MIME parts. A list of supported MIME types can be found in +Table 5.1, “Supported MIME types”. +

+MIME also defines a set of encoding schemes for transporting MIME +content over the network: 7bit, +8bit, quoted-printable, +base64 and binary. There're some +rules when to choose what for encoding headers and/or body (if needed), +and Mutt will in general make a good choice. +

+Mutt does most of MIME encoding/decoding behind the scenes to form +messages conforming to MIME on the sending side. On reception, it can be +flexibly configured as to how what MIME structure is displayed (and if +it's displayed): these decisions are based on the content's MIME type. +There are three areas/menus in dealing with MIME: the pager (while +viewing a message), the attachment menu and the compose menu. +

1.2. Viewing MIME Messages in the Pager

When you select a message from the index and view it in the pager, Mutt -decodes the message to a text representation. Mutt internally supports -a number of MIME types, including text/plain, text/enriched, -message/rfc822, and message/news. In addition, the export -controlled version of Mutt recognizes a variety of PGP MIME types, -including PGP/MIME and application/pgp. +decodes as much of a message as possible to a text representation. Mutt +internally supports a number of MIME types, including the +text major type (with all minor types), the +message/rfc822 (mail messages) type and some +multipart types. In addition, it recognizes a variety +of PGP MIME types, including PGP/MIME and +application/pgp.

Mutt will denote attachments with a couple lines describing them. These lines are of the form: @@ -2765,105 +3052,121 @@ These lines are of the form: [-- Attachment #1: Description --] [-- Type: text/plain, Encoding: 7bit, Size: 10000 --]

-Where the Description is the description or filename given for the -attachment, and the Encoding is one of -7bit/8bit/quoted-printable/base64/binary. +Where the Description is the description or +filename given for the attachment, and the Encoding +is one of the already mentioned content encodings.

If Mutt cannot deal with a MIME type, it will display a message like:

 [-- image/gif is unsupported (use 'v' to view this part) --]
-

1.2. The Attachment Menu

-The default binding for <view-attachments> is “v”, which displays the -attachment menu for a message. The attachment menu displays a list of -the attachments in a message. From the attachment menu, you can save, -print, pipe, delete, and view attachments. You can apply these -operations to a group of attachments at once, by tagging the attachments -and by using the <tag-prefix> operator. You can also reply to the -current message from this menu, and only the current attachment (or the -attachments tagged) will be quoted in your reply. You can view -attachments as text, or view them using the mailcap viewer definition. -

-Finally, you can apply the usual message-related functions (like -<resend-message>, and the -<reply> and <forward> -functions) to attachments of type message/rfc822. -

-See the help on the attachment menu for more information. -

1.3. The Compose Menu

+

1.3. The Attachment Menu

+The default binding for <view-attachments> is +“v”, which displays the attachment menu for a message. The +attachment menu displays a list of the attachments in a message. From +the attachment menu, you can save, print, pipe, delete, and view +attachments. You can apply these operations to a group of attachments +at once, by tagging the attachments and by using the +<tag-prefix> operator. You can also reply to +the current message from this menu, and only the current attachment (or +the attachments tagged) will be quoted in your reply. You can view +attachments as text, or view them using the mailcap viewer definition +(the mailcap mechanism is explained later in detail). +

+Finally, you can apply the usual message-related functions (like <resend-message>, +and the <reply> and +<forward> functions) to attachments of type +message/rfc822. +

+See table Table 9.7, “Default Attachment Menu Bindings” for all available +functions. +

1.4. The Compose Menu

The compose menu is the menu you see before you send a message. It -allows you to edit the recipient list, the subject, and other aspects -of your message. It also contains a list of the attachments of your +allows you to edit the recipient list, the subject, and other aspects of +your message. It also contains a list of the attachments of your message, including the main body. From this menu, you can print, copy, -filter, pipe, edit, compose, review, and rename an attachment or a -list of tagged attachments. You can also modifying the attachment +filter, pipe, edit, compose, review, and rename an attachment or a list +of tagged attachments. You can also modifying the attachment information, notably the type, encoding and description.

-Attachments appear as follows: +Attachments appear as follows by default:

 - 1 [text/plain, 7bit, 1K]           /tmp/mutt-euler-8082-0 <no description>
   2 [applica/x-gunzip, base64, 422K] ~/src/mutt-0.85.tar.gz <no description>
 

-The '-' denotes that Mutt will delete the file after sending (or -postponing, or canceling) the message. It can be toggled with the -<toggle-unlink> command (default: u). The next field is the MIME -content-type, and can be changed with the <edit-type> command -(default: ^T). The next field is the encoding for the attachment, -which allows a binary message to be encoded for transmission on 7bit -links. It can be changed with the <edit-encoding> command -(default: ^E). The next field is the size of the attachment, -rounded to kilobytes or megabytes. The next field is the filename, -which can be changed with the <rename-file> command (default: R). -The final field is the description of the attachment, and can be -changed with the <edit-description> command (default: d). -

2. MIME Type Configuration with mime.types

+The “-” denotes that Mutt will delete the file after +sending (or postponing, or canceling) the message. It can be toggled +with the <toggle-unlink> command (default: u). +The next field is the MIME content-type, and can be changed with the +<edit-type> command (default: ^T). The next +field is the encoding for the attachment, which allows a binary message +to be encoded for transmission on 7bit links. It can be changed with +the <edit-encoding> command (default: ^E). The +next field is the size of the attachment, rounded to kilobytes or +megabytes. The next field is the filename, which can be changed with +the <rename-file> command (default: R). The +final field is the description of the attachment, and can be changed +with the <edit-description> command (default: +d). See $attach_format for a full +list of available expandos to format this display to your needs. +

2. MIME Type Configuration with mime.types

+To get most out of MIME, it's important that a MIME part's content type +matches the content as closely as possible so that the recipient's +client can automatically select the right viewer for the +content. However, there's no reliable for Mutt to know how to detect +every possible file type. Instead, it uses a simple plain text mapping +file that specifies what file extension corresponds to what MIME +type. This file is called mime.types. +

When you add an attachment to your mail message, Mutt searches your -personal mime.types file at ${HOME}/.mime.types, and then -the system mime.types file at /usr/local/share/mutt/mime.types or +personal mime.types file at +$HOME/.mime.types, and then the system +mime.types file at +/usr/local/share/mutt/mime.types or /etc/mime.types

-The mime.types file consist of lines containing a MIME type and a space -separated list of extensions. For example: -

+Each line starts with the full MIME type, followed by a space and
+space-separated list of file extensions. For example you could use:
+

Example 5.1. mime.types

 application/postscript          ps eps
 application/pgp                 pgp
 audio/x-aiff                    aif aifc aiff
-

-A sample mime.types file comes with the Mutt distribution, and -should contain most of the MIME types you are likely to use. +


+A sample mime.types file comes with the Mutt +distribution, and should contain most of the MIME types you are likely +to use.

-If Mutt can not determine the mime type by the extension of the file you +If Mutt can not determine the MIME type by the extension of the file you attach, it will look at the file. If the file is free of binary information, Mutt will assume that the file is plain text, and mark it -as text/plain. If the file contains binary information, then Mutt will -mark it as application/octet-stream. You can change the MIME -type that Mutt assigns to an attachment by using the <edit-type> -command from the compose menu (default: ^T). The MIME type is actually a -major mime type followed by the sub-type, separated by a '/'. 6 major -types: application, text, image, video, audio, and model have been approved -after various internet discussions. Mutt recognizes all of these if the -appropriate entry is found in the mime.types file. It also recognizes other -major mime types, such as the chemical type that is widely used in the -molecular modeling community to pass molecular data in various forms to -various molecular viewers. Non-recognized mime types should only be used -if the recipient of the message is likely to be expecting such attachments. -

3. MIME Viewer Configuration with Mailcap

+as text/plain. If the file contains binary +information, then Mutt will mark it as +application/octet-stream. You can change the MIME +type that Mutt assigns to an attachment by using the +<edit-type> command from the compose menu +(default: ^T), see Table 5.1, “Supported MIME types” for supported +major types. Mutt recognizes all of these if the appropriate entry is +found in the mime.types file. Non-recognized mime +types should only be used if the recipient of the message is likely to +be expecting such attachments. +

Table 5.1. Supported MIME types

MIME major typeStandardDescription
applicationyesGeneral application data
audioyesAudio data
imageyesImage data
messageyesMail messages, message status information
modelyesVRML and other modeling data
multipartyesContainer for other MIME parts
textyesText data
videoyesVideo data
chemicalnoMostly molecular data

+MIME types are not arbitrary, they need to be assigned by IANA. +

3. MIME Viewer Configuration with Mailcap

Mutt supports RFC 1524 MIME Configuration, in particular the Unix specific format specified in Appendix A of RFC 1524. This file format -is commonly referred to as the mailcap format. Many MIME compliant -programs utilize the mailcap format, allowing you to specify handling -for all MIME types in one place for all programs. Programs known to -use this format include Firefox, lynx and metamail. -

-In order to handle various MIME types that Mutt can not handle -internally, Mutt parses a series of external configuration files to -find an external handler. The default search string for these files -is a colon delimited list containing the following files: -

  1. $HOME/.mailcap

  2. $PKGDATADIR/mailcap

  3. $SYSCONFDIR/mailcap

  4. /etc/mailcap

  5. /usr/etc/mailcap

  6. /usr/local/etc/mailcap

+is commonly referred to as the “mailcap” format. Many MIME +compliant programs utilize the mailcap format, allowing you to specify +handling for all MIME types in one place for all programs. Programs +known to use this format include Firefox, lynx and metamail. +

+In order to handle various MIME types that Mutt doesn't have built-in +support for, it parses a series of external configuration files to find +an external handler. The default search string for these files is a +colon delimited list containing the following files: +

  1. $HOME/.mailcap

  2. $PKGDATADIR/mailcap

  3. $SYSCONFDIR/mailcap

  4. /etc/mailcap

  5. /usr/etc/mailcap

  6. /usr/local/etc/mailcap

where $HOME is your home directory. The -$PKGDATADIR and the -$SYSCONFDIR directories depend on where Mutt -is installed: the former is the default for shared data, the -latter for system configuration files. +$PKGDATADIR and the $SYSCONFDIR +directories depend on where Mutt is installed: the former is the default +for shared data, the latter for system configuration files.

The default search path can be obtained by running the following command: @@ -2871,9 +3174,9 @@ command: mutt -nF /dev/null -Q mailcap_path

In particular, the metamail distribution will install a mailcap file, -usually as /usr/local/etc/mailcap, which contains some baseline -entries. -

3.1. The Basics of the Mailcap File

+usually as /usr/local/etc/mailcap, which contains +some baseline entries. +

3.1. The Basics of the Mailcap File

A mailcap file consists of a series of lines which are comments, blank, or definitions.

@@ -2883,29 +3186,35 @@ A blank line is blank.

A definition line consists of a content type, a view command, and any number of optional fields. Each field of a definition line is divided -by a semicolon ';' character. -

-The content type is specified in the MIME standard type/subtype method. -For example, -text/plain, text/html, image/gif, -etc. In addition, the mailcap format includes two formats for -wildcards, one using the special '*' subtype, the other is the implicit -wild, where you only include the major type. For example, image/*, or -video, will match all image types and video types, +by a semicolon “;” character. +

+The content type is specified in the MIME standard +“type/subtype” notation. For example, +text/plain, text/html, +image/gif, etc. In addition, the mailcap format +includes two formats for wildcards, one using the special +“*” subtype, the other is the implicit wild, where you only +include the major type. For example, image/*, or +video will match all image types and video types, respectively.

The view command is a Unix command for viewing the type specified. There are two different types of commands supported. The default is to send the body of the MIME message to the command on stdin. You can change -this behavior by using %s as a parameter to your view command. -This will cause Mutt to save the body of the MIME message to a temporary -file, and then call the view command with the %s replaced by -the name of the temporary file. In both cases, Mutt will turn over the -terminal to the view program until the program quits, at which time Mutt -will remove the temporary file if it exists. -

-So, in the simplest form, you can send a text/plain message to the -external pager more on stdin: +this behavior by using %s as a parameter to your view +command. This will cause Mutt to save the body of the MIME message to a +temporary file, and then call the view command with the +%s replaced by the name of the temporary file. In +both cases, Mutt will turn over the terminal to the view program until +the program quits, at which time Mutt will remove the temporary file if +it exists. This means that mailcap does not work +out of the box with programs which detach themselves from the terminal +right after starting, like open on Mac OS X. In order +to nevertheless use these programs with mailcap, you probably need +custom shell scripts. +

+So, in the simplest form, you can send a text/plain +message to the external pager more on standard input:

 text/plain; more
 

@@ -2913,83 +3222,85 @@ Or, you could send the message as a file:

 text/plain; more %s
 

-Perhaps you would like to use lynx to interactively view a text/html -message: +Perhaps you would like to use lynx to interactively view a +text/html message:

 text/html; lynx %s
 

-In this case, lynx does not support viewing a file from stdin, so you -must use the %s syntax. -

Note

-Some older versions of lynx contain a bug where they -will check the mailcap file for a viewer for text/html. They will find -the line which calls lynx, and run it. This causes lynx to continuously -spawn itself to view the object. +In this case, lynx does not support viewing a file from standard input, +so you must use the %s syntax. +

Note

+Some older versions of lynx contain a bug where they will +check the mailcap file for a viewer for text/html. +They will find the line which calls lynx, and run it. This causes lynx +to continuously spawn itself to view the object.

On the other hand, maybe you don't want to use lynx interactively, you -just want to have it convert the text/html to text/plain, then you can -use: +just want to have it convert the text/html to +text/plain, then you can use:

 text/html; lynx -dump %s | more
 

-Perhaps you wish to use lynx to view text/html files, and a pager on -all other text formats, then you would use the following: +Perhaps you wish to use lynx to view text/html files, +and a pager on all other text formats, then you would use the following:

 text/html; lynx %s
 text/*; more
-

-This is the simplest form of a mailcap file. -

3.2. Secure Use of Mailcap

+

3.2. Secure Use of Mailcap

The interpretation of shell meta-characters embedded in MIME parameters -can lead to security problems in general. Mutt tries to quote parameters -in expansion of %s syntaxes properly, and avoids risky characters by -substituting them, see the $mailcap_sanitize variable. +can lead to security problems in general. Mutt tries to quote +parameters in expansion of %s syntaxes properly, and +avoids risky characters by substituting them, see the $mailcap_sanitize variable.

Although Mutt's procedures to invoke programs with mailcap seem to be -safe, there are other applications parsing mailcap, maybe taking less care -of it. Therefore you should pay attention to the following rules: -

-Keep the %-expandos away from shell quoting. -Don't quote them with single or double quotes. Mutt does this for -you, the right way, as should any other program which interprets -mailcap. Don't put them into backtick expansions. Be highly careful -with eval statements, and avoid them if possible at all. Trying to fix -broken behavior with quotes introduces new leaks - there is no +safe, there are other applications parsing mailcap, maybe taking less +care of it. Therefore you should pay attention to the following rules: +

+Keep the %-expandos away from shell quoting. Don't +quote them with single or double quotes. Mutt does this for you, the +right way, as should any other program which interprets mailcap. Don't +put them into backtick expansions. Be highly careful with evil +statements, and avoid them if possible at all. Trying to fix broken +behavior with quotes introduces new leaks — there is no alternative to correct quoting in the first place.

If you have to use the %-expandos' values in context where you need -quoting or backtick expansions, put that value into a shell variable -and reference the shell variable where necessary, as in the following -example (using $charset inside the backtick expansion is safe, -since it is not itself subject to any further expansion): +quoting or backtick expansions, put that value into a shell variable and +reference the shell variable where necessary, as in the following +example (using $charset inside the backtick expansion +is safe, since it is not itself subject to any further expansion):

 text/test-mailcap-bug; cat %s; copiousoutput; test=charset=%{charset} \
         && test "`echo $charset | tr '[A-Z]' '[a-z]'`" != iso-8859-1
-

3.3. Advanced Mailcap Usage

3.3.1. Optional Fields

+

3.3. Advanced Mailcap Usage

3.3.1. Optional Fields

In addition to the required content-type and view command fields, you -can add semi-colon ';' separated fields to set flags and other options. -Mutt recognizes the following optional fields: +can add semi-colon “;” separated fields to set flags and +other options. Mutt recognizes the following optional fields:

copiousoutput

This flag tells Mutt that the command passes possibly large amounts of -text on stdout. This causes Mutt to invoke a pager (either the internal -pager or the external pager defined by the pager variable) on the output -of the view command. Without this flag, Mutt assumes that the command -is interactive. One could use this to replace the pipe to more -in the lynx -dump example in the Basic section: +text on standard output. This causes Mutt to invoke a pager (either +the internal pager or the external pager defined by the pager variable) +on the output of the view command. Without this flag, Mutt assumes that +the command is interactive. One could use this to replace the pipe to +more in the lynx -dump example in +the Basic section:

 text/html; lynx -dump %s ; copiousoutput
 

-This will cause lynx to format the text/html output as text/plain -and Mutt will use your standard pager to display the results. +This will cause lynx to format the text/html output +as text/plain and Mutt will use your standard pager +to display the results. +

+Note that when using the built-in pager, only +entries with this flag will be considered a handler for a MIME type +— all other entries will be ignored.

needsterminal

-Mutt uses this flag when viewing attachments with auto_view, in order to decide whether it should honor the setting -of the $wait_key variable or -not. When an attachment is viewed using an interactive program, and the -corresponding mailcap entry has a needsterminal flag, Mutt will use -$wait_key and the exit status -of the program to decide if it will ask you to press a key after the -external program has exited. In all other situations it will not prompt -you for a key. +Mutt uses this flag when viewing attachments with auto_view, in order to +decide whether it should honor the setting of the $wait_key variable or not. When an attachment +is viewed using an interactive program, and the corresponding mailcap +entry has a needsterminal flag, Mutt will use $wait_key and the exit status of the program +to decide if it will ask you to press a key after the external program +has exited. In all other situations it will not prompt you for a key.

compose=<command>

This flag specifies the command to use to create a new attachment of a specific MIME type. Mutt supports this from the compose menu. @@ -2998,180 +3309,201 @@ This flag specifies the command to use to create a new attachment of a specific MIME type. This command differs from the compose command in that Mutt will expect standard MIME headers on the data. This can be used to specify parameters, filename, description, etc. for a new -attachment. Mutt supports this from the compose menu. +attachment. Mutt supports this from the compose menu.

print=<command>

This flag specifies the command to use to print a specific MIME type. Mutt supports this from the attachment and compose menus.

edit=<command>

This flag specifies the command to use to edit a specific MIME type. Mutt supports this from the compose menu, and also uses it to compose -new attachments. Mutt will default to the defined editor for text -attachments. +new attachments. Mutt will default to the defined $editor for text attachments.

nametemplate=<template>

-This field specifies the format for the file denoted by %s in the -command fields. Certain programs will require a certain file extension, -for instance, to correctly view a file. For instance, lynx will only -interpret a file as text/html if the file ends in .html. -So, you would specify lynx as a text/html viewer with a line in -the mailcap file like: +This field specifies the format for the file denoted by +%s in the command fields. Certain programs will +require a certain file extension, for instance, to correctly view a +file. For instance, lynx will only interpret a file as +text/html if the file ends in +.html. So, you would specify lynx as a +text/html viewer with a line in the mailcap file +like:

 text/html; lynx %s; nametemplate=%s.html
 
test=<command>

-This field specifies a command to run to test whether this mailcap -entry should be used. The command is defined with the command expansion -rules defined in the next section. If the command returns 0, then the -test passed, and Mutt uses this entry. If the command returns non-zero, -then the test failed, and Mutt continues searching for the right entry. -Note that the content-type must match before Mutt performs the test. -For example: +This field specifies a command to run to test whether this mailcap entry +should be used. The command is defined with the command expansion rules +defined in the next section. If the command returns 0, then the test +passed, and Mutt uses this entry. If the command returns non-zero, then +the test failed, and Mutt continues searching for the right entry. Note +that the content-type must match before Mutt performs the test. For +example:

 text/html; firefox -remote 'openURL(%s)' ; test=RunningX
 text/html; lynx %s
 

-In this example, Mutt will run the program RunningX which will return 0 -if the X Window manager is running, and non-zero if it isn't. If -RunningX returns 0, then Mutt will call firefox to display the -text/html object. If RunningX doesn't return 0, then Mutt will go on -to the next entry and use lynx to display the text/html object. -

3.3.2. Search Order

+In this example, Mutt will run the program RunningX +which will return 0 if the X Window manager is running, and non-zero if +it isn't. If RunningX returns 0, then Mutt will run +firefox to display the text/html object. If RunningX +doesn't return 0, then Mutt will go on to the next entry and use lynx to +display the text/html object. +

3.3.2. Search Order

When searching for an entry in the mailcap file, Mutt will search for the most useful entry for its purpose. For instance, if you are -attempting to print an image/gif, and you have the following -entries in your mailcap file, Mutt will search for an entry with the -print command: +attempting to print an image/gif, and you have the +following entries in your mailcap file, Mutt will search for an entry +with the print command:

 image/*;        xv %s
 image/gif;      ; print= anytopnm %s | pnmtops | lpr; \
                 nametemplate=%s.gif
 

-Mutt will skip the image/* entry and use the image/gif -entry with the print command. -

-In addition, you can use this with auto_view -to denote two commands for viewing an attachment, one to be viewed -automatically, the other to be viewed interactively from the attachment -menu. In addition, you can then use the test feature to determine which -viewer to use interactively depending on your environment. +Mutt will skip the image/* entry and use the +image/gif entry with the print command. +

+In addition, you can use this with auto_view to denote two +commands for viewing an attachment, one to be viewed automatically, the +other to be viewed interactively from the attachment menu using the +<view-mailcap> function (bound to +“m” by default). In addition, you can then use the test +feature to determine which viewer to use interactively depending on your +environment.

 text/html;      firefox -remote 'openURL(%s)' ; test=RunningX
 text/html;      lynx %s; nametemplate=%s.html
 text/html;      lynx -dump %s; nametemplate=%s.html; copiousoutput
 

-For auto_view, Mutt will choose the third -entry because of the copiousoutput tag. For interactive viewing, Mutt -will run the program RunningX to determine if it should use the first -entry. If the program returns non-zero, Mutt will use the second entry -for interactive viewing. -

3.3.3. Command Expansion

+For auto_view, Mutt +will choose the third entry because of the +copiousoutput tag. For interactive viewing, Mutt +will run the program RunningX to determine if it +should use the first entry. If the program returns non-zero, Mutt will +use the second entry for interactive viewing. The last entry is for +inline display in the pager and the +<view-attach> function in the attachment menu. +

+Entries with the copiousoutput tag should always be +specified as the last one per type. For non-interactive use, the last +entry will then actually be the first matching one with the tag set. +For non-interactive use, only copiousoutput-tagged +entries are considered. For interactive use, Mutt ignores this tag and +treats all entries equally. Therefore, if not specified last, all +following entries without this tag would never be considered for +<view-attach> because the +copiousoutput before them matched already. +

3.3.3. Command Expansion

The various commands defined in the mailcap files are passed to the -/bin/sh shell using the system(3) function. Before the -command is passed to /bin/sh -c, it is parsed to expand -various special parameters with information from Mutt. The keywords -Mutt expands are: +/bin/sh shell using the system(3) +function. Before the command is passed to /bin/sh +-c, it is parsed to expand various special parameters with +information from Mutt. The keywords Mutt expands are:

%s

-As seen in the basic mailcap section, this variable is expanded -to a filename specified by the calling program. This file contains -the body of the message to view/print/edit or where the composing -program should place the results of composition. In addition, the -use of this keyword causes Mutt to not pass the body of the message -to the view/print/edit program on stdin. +As seen in the basic mailcap section, this variable is expanded to a +filename specified by the calling program. This file contains the body +of the message to view/print/edit or where the composing program should +place the results of composition. In addition, the use of this keyword +causes Mutt to not pass the body of the message to the view/print/edit +program on stdin.

%t

-Mutt will expand %t to the text representation of the content -type of the message in the same form as the first parameter of the -mailcap definition line, ie text/html or +Mutt will expand %t to the text representation of the +content type of the message in the same form as the first parameter of +the mailcap definition line, i.e. text/html or image/gif.

%{<parameter>}

-Mutt will expand this to the value of the specified parameter -from the Content-Type: line of the mail message. For instance, if -Your mail message contains: +Mutt will expand this to the value of the specified parameter from the +Content-Type: line of the mail message. For instance, if your mail +message contains:

 Content-Type: text/plain; charset=iso-8859-1
 

-then Mutt will expand %{charset} to iso-8859-1. The default metamail -mailcap file uses this feature to test the charset to spawn an xterm -using the right charset to view the message. +then Mutt will expand %{charset} to +“iso-8859-1”. The default metamail mailcap file uses this +feature to test the charset to spawn an xterm using the right charset to +view the message.

\%

-This will be replaced by a % +This will be replaced by a literal %.

-Mutt does not currently support the %F and %n keywords -specified in RFC 1524. The main purpose of these parameters is for -multipart messages, which is handled internally by Mutt. -

3.4. Example Mailcap Files

+Mutt does not currently support the %F and +%n keywords specified in RFC 1524. The main purpose +of these parameters is for multipart messages, which is handled +internally by Mutt. +

3.4. Example Mailcap Files

This mailcap file is fairly simple and standard:

-# I'm always running X :)
+# I'm always running X :)
 video/*;        xanim %s > /dev/null
 image/*;        xv %s > /dev/null
 
-# I'm always running firefox (if my computer had more memory, maybe)
+# I'm always running firefox (if my computer had more memory, maybe)
 text/html;      firefox -remote 'openURL(%s)'
 

This mailcap file shows quite a number of examples:

-# Use xanim to view all videos   Xanim produces a header on startup,
-# send that to /dev/null so I don't see it
+# Use xanim to view all videos   Xanim produces a header on startup,
+# send that to /dev/null so I don't see it
 video/*;        xanim %s > /dev/null
 
-# Send html to a running firefox by remote
+# Send html to a running firefox by remote
 text/html;      firefox -remote 'openURL(%s)'; test=RunningFirefox
 
-# If I'm not running firefox but I am running X, start firefox on the
-# object
+# If I'm not running firefox but I am running X, start firefox on the
+# object
 text/html;      firefox %s; test=RunningX
 
-# Else use lynx to view it as text
+# Else use lynx to view it as text
 text/html;      lynx %s
 
-# This version would convert the text/html to text/plain
+# This version would convert the text/html to text/plain
 text/html;      lynx -dump %s; copiousoutput
 
-# I use enscript to print text in two columns to a page
+# I use enscript to print text in two columns to a page
 text/*;         more %s; print=enscript -2Gr %s
 
-# Firefox adds a flag to tell itself to view jpegs internally
+# Firefox adds a flag to tell itself to view jpegs internally
 image/jpeg;xv %s; x-mozilla-flags=internal
 
-# Use xv to view images if I'm running X
-# In addition, this uses the \ to extend the line and set my editor
-# for images
+# Use xv to view images if I'm running X
+# In addition, this uses the \ to extend the line and set my editor
+# for images
 image/*;xv %s; test=RunningX; \
         edit=xpaint %s
 
-# Convert images to text using the netpbm tools
+# Convert images to text using the netpbm tools
 image/*;  (anytopnm %s | pnmscale -xysize 80 46 | ppmtopgm | pgmtopbm |
 pbmtoascii -1x2 ) 2>&1 ; copiousoutput
 
-# Send excel spreadsheets to my NT box
+# Send excel spreadsheets to my NT box
 application/ms-excel; open.pl %s
-

4. MIME Autoview

+

4. MIME Autoview

Usage: -

auto-view +

auto_view mimetype [ mimetype -...]
unauto-view { +...]
unauto_view { * | mimetype ... }

In addition to explicitly telling Mutt to view an attachment with the -MIME viewer defined in the mailcap file, Mutt has support for -automatically viewing MIME attachments while in the pager. -

-To work, you must define a viewer in the mailcap file which uses the -copiousoutput option to denote that it is non-interactive. -Usually, you also use the entry to convert the attachment to a text -representation which you can view in the pager. -

-You then use the auto_view .muttrc command to list the -content-types that you wish to view automatically. For instance, if you -set it to: +MIME viewer defined in the mailcap file from the attachments menu, Mutt +has support for automatically viewing MIME attachments while in the +pager. +

+For this to work, you must define a viewer in the mailcap file which +uses the copiousoutput option to denote that it is +non-interactive. Usually, you also use the entry to convert the +attachment to a text representation which you can view in the pager. +

+You then use the auto_view configuration command to +list the content-types that you wish to view automatically. For +instance, if you set it to:

 auto_view text/html application/x-gunzip \
   application/postscript image/gif application/x-tar-gz
 

-Mutt could use the following mailcap entries to automatically view -attachments of these types. +...Mutt would try to find corresponding entries for rendering +attachments of these types as text. A corresponding mailcap could look +like:

 text/html;      lynx -dump %s; copiousoutput; nametemplate=%s.html
 image/*;        anytopnm %s | pnmscale -xsize 80 -ysize 50 | ppmtopgm | \
@@ -3180,39 +3512,51 @@ application/x-gunzip;   gzcat; copiousoutput
 application/x-tar-gz; gunzip -c %s | tar -tf - ; copiousoutput
 application/postscript; ps2ascii %s; copiousoutput
 

-unauto_view can be used to remove previous entries from the autoview list. -This can be used with message-hook to autoview messages based on size, etc. -“unauto_view *” will remove all previous entries. -

5. MIME Multipart/Alternative

+unauto_view can be used to remove previous entries +from the auto_view list. This can be used with message-hook to +autoview messages based on size, etc. +“unauto_view *” will remove all previous +entries. +

5. MIME Multipart/Alternative

+The multipart/alternative container type only has +child MIME parts which represent the same content in an alternative +way. This is often used to send HTML messages which contain an +alternative plain text representation. +

Mutt has some heuristics for determining which attachment of a -multipart/alternative type to display. First, Mutt will check the -alternative_order list -to determine if one of the available types is preferred. It consists of -a number of mimetypes in order, including support for implicit and -explicit wildcards, for example: +multipart/alternative type to display: +

  1. +First, Mutt will check the alternative_order list to +determine if one of the available types is preferred. It consists of a +number of MIME types in order, including support for implicit and +explicit wildcards. For example:

    -alternative_order text/enriched text/plain text application/postscript image/*
    -

    -Next, Mutt will check if any of the types have a defined -auto_view, and use that. Failing -that, Mutt will look for any text type. As a last attempt, Mutt will -look for any type it knows how to handle. -

    -To remove a MIME type from the alternative_order list, use the -unalternative_order command. -

6. Attachment Searching and Counting

+alternative_order text/enriched text/plain text \ + application/postscript image/* +

  • +Next, Mutt will check if any of the types have a defined auto_view, and use that. +

  • +Failing that, Mutt will look for any text type. +

  • +As a last attempt, Mutt will look for any type it knows how to handle. +

  • +To remove a MIME type from the alternative_order +list, use the unalternative_order command. +

    6. Attachment Searching and Counting

    If you ever lose track of attachments in your mailboxes, Mutt's attachment-counting and -searching support might be for you. You can make your message index display the number of qualifying attachments in each message, or search for messages by attachment count. You also can configure what kinds of attachments qualify for this feature with the -attachments and unattachments commands. +attachments and unattachments +commands.

    -In order to provide this information, Mutt needs to fully MIME-parse -all messages affected first. This can slow down operation especially for +In order to provide this information, Mutt needs to fully MIME-parse all +messages affected first. This can slow down operation especially for remote mail folders such as IMAP because all messages have to be downloaded first regardless whether the user really wants to view them -or not. +or not though using Section 7.2, “Body Caching” usually means to +download the message just once.

    The syntax is:

    attachments @@ -3226,85 +3570,94 @@ The syntax is:
    attachments ?

    -disposition is the attachment's Content-Disposition type — either -inline or attachment. -You can abbreviate this to I or A. -

    -Disposition is prefixed by either a + symbol or a - symbol. If it's -a +, you're saying that you want to allow this disposition and MIME -type to qualify. If it's a -, you're saying that this disposition -and MIME type is an exception to previous + rules. There are examples +disposition is the attachment's Content-Disposition +type — either inline or +attachment. You can abbreviate this to +I or A. +

    +Disposition is prefixed by either a “+” symbol or a +“-” symbol. If it's a “+”, you're saying that +you want to allow this disposition and MIME type to qualify. If it's a +“-”, you're saying that this disposition and MIME type is +an exception to previous “+” rules. There are examples below of how this is useful.

    -mime-type is, unsurprisingly, the MIME type of the attachment you want -to affect. A MIME type is always of the format major/minor, where -major describes the broad category of document you're looking at, and -minor describes the specific type within that category. The major -part of mime-type must be literal text (or the special token “*”), but -the minor part may be a regular expression. (Therefore, “*/.*” matches -any MIME type.) -

    -The MIME types you give to the attachments directive are a kind of -pattern. When you use the attachments directive, the patterns you -specify are added to a list. When you use unattachments, the pattern -is removed from the list. The patterns are not expanded and matched -to specific MIME types at this time — they're just text in a list. -They're only matched when actually evaluating a message. +mime-type is the MIME type of the attachment you +want the command to affect. A MIME type is always of the format +major/minor, where major describes +the broad category of document you're looking at, and +minor describes the specific type within that +category. The major part of mime-type must be literal text (or the +special token “*”), but the minor part +may be a regular expression. (Therefore, +“*/.*” matches any MIME type.) +

    +The MIME types you give to the attachments directive +are a kind of pattern. When you use the attachments +directive, the patterns you specify are added to a list. When you use +unattachments, the pattern is removed from the list. +The patterns are not expanded and matched to specific MIME types at this +time — they're just text in a list. They're only matched when +actually evaluating a message.

    Some examples might help to illustrate. The examples that are not commented out define the default configuration of the lists. -

    Example 5.1. Attachment counting

    -## Removing a pattern from a list removes that pattern literally. It
    -## does not remove any type matching the pattern.
    -##
    -##  attachments   +A */.*
    -##  attachments   +A image/jpeg
    -##  unattachments +A */.*
    -##
    -## This leaves "attached" image/jpeg files on the allowed attachments
    -## list. It does not remove all items, as you might expect, because the
    -## second */.* is not a matching expression at this time.
    -##
    -## Remember: "unattachments" only undoes what "attachments" has done!
    -## It does not trigger any matching on actual messages.
    +

    Example 5.2. Attachment counting

    +
    +# Removing a pattern from a list removes that pattern literally. It
    +# does not remove any type matching the pattern.
    +#
    +#  attachments   +A */.*
    +#  attachments   +A image/jpeg
    +#  unattachments +A */.*
    +#
    +# This leaves "attached" image/jpeg files on the allowed attachments
    +# list. It does not remove all items, as you might expect, because the
    +# second */.* is not a matching expression at this time.
    +#
    +# Remember: "unattachments" only undoes what "attachments" has done!
    +# It does not trigger any matching on actual messages.
     
    -
    -## Qualify any MIME part with an "attachment" disposition, EXCEPT for
    -## text/x-vcard and application/pgp parts. (PGP parts are already known
    -## to mutt, and can be searched for with ~g, ~G, and ~k.)
    -##
    -## I've added x-pkcs7 to this, since it functions (for S/MIME)
    -## analogously to PGP signature attachments. S/MIME isn't supported
    -## in a stock mutt build, but we can still treat it specially here.
    -##
    +# Qualify any MIME part with an "attachment" disposition, EXCEPT for
    +# text/x-vcard and application/pgp parts. (PGP parts are already known
    +# to mutt, and can be searched for with ~g, ~G, and ~k.)
    +#
    +# I've added x-pkcs7 to this, since it functions (for S/MIME)
    +# analogously to PGP signature attachments. S/MIME isn't supported
    +# in a stock mutt build, but we can still treat it specially here.
    +#
    +
     attachments   +A */.*
     attachments   -A text/x-vcard application/pgp.*
     attachments   -A application/x-pkcs7-.*
     
    -## Discount all MIME parts with an "inline" disposition, unless they're
    -## text/plain. (Why inline a text/plain part unless it's external to the
    -## message flow?)
    -##
    +
    +# Discount all MIME parts with an "inline" disposition, unless they're
    +# text/plain. (Why inline a text/plain part unless it's external to the
    +# message flow?)
    +
     attachments   +I text/plain
     
    -## These two lines make Mutt qualify MIME containers.  (So, for example,
    -## a message/rfc822 forward will count as an attachment.)  The first
    -## line is unnecessary if you already have "attach-allow */.*", of
    -## course.  These are off by default!  The MIME elements contained
    -## within a message/* or multipart/* are still examined, even if the
    -## containers themseves don't qualify.
    -##
    +
    +# These two lines make Mutt qualify MIME containers.  (So, for example,
    +# a message/rfc822 forward will count as an attachment.)  The first
    +# line is unnecessary if you already have "attach-allow */.*", of
    +# course.  These are off by default!  The MIME elements contained
    +# within a message/* or multipart/* are still examined, even if the
    +# containers themselves don't qualify.
    +
     #attachments  +A message/.* multipart/.*
     #attachments  +I message/.* multipart/.*
    +
     
    -## You probably don't really care to know about deleted attachments.
    +## You probably don't really care to know about deleted attachments.
     attachments   -A message/external-body
     attachments   -I message/external-body
     

    -Entering the command “attachments ?” -as a command will list your current settings in Muttrc format, so that -it can be pasted elsewhere. -

    7. MIME Lookup

    +Entering the command “attachments ?” as +a command will list your current settings in Muttrc format, so that it +can be pasted elsewhere. +

    7. MIME Lookup

    Usage:

    mime-lookup mimetype @@ -3315,233 +3668,243 @@ Usage: | mimetype ... }

    -Mutt's mime_lookup list specifies a list of mime-types that should not -be treated according to their mailcap entry. This option is designed to -deal with binary types such as application/octet-stream. When an attachment's -mime-type is listed in mime_lookup, then the extension of the filename will -be compared to the list of extensions in the mime.types file. The mime-type -associated with this extension will then be used to process the attachment -according to the rules in the mailcap file and according to any other configuration -options (such as auto_view) specified. Common usage would be: +Mutt's mime_lookup list specifies a list of MIME +types that should not be treated according to their +mailcap entry. This option is designed to deal with binary types such +as application/octet-stream. When an attachment's +MIME type is listed in mime_lookup, then the +extension of the filename will be compared to the list of extensions in +the mime.types file. The MIME type associated with +this extension will then be used to process the attachment according to +the rules in the mailcap file and according to any other configuration +options (such as auto_view) specified. Common usage +would be:

     mime_lookup application/octet-stream application/X-Lotus-Manuscript
     

    -In addition, the unmime_lookup command may be -used to disable this feature for any particular mime-type if it had been -set, for example, in a global .muttrc. -

    Chapter 6. Optional Features

    1. General Notes

    1.1. Enabling/Disabling Features

    +In addition, the unmime_lookup command may be used to +disable this feature for any particular MIME type if it had been set, +for example, in a global .muttrc. +

    Chapter 6. Optional Features

    1. General Notes

    1.1. Enabling/Disabling Features

    Mutt supports several of optional features which can be enabled or -disabled at compile-time by giving the configure script -certain arguments. These are listed in the “Optional features” section of -the configure --help output. +disabled at compile-time by giving the configure +script certain arguments. These are listed in the “Optional +features” section of the configure --help +output.

    Which features are enabled or disabled can later be determined from the output of mutt -v. If a compile option starts with -“+” it is enabled and disabled if prefixed with “-”. For example, if -Mutt was compiled using GnuTLS for encrypted communication instead of -OpenSSL, mutt -v would contain: +“+” it is enabled and disabled if prefixed with +“-”. For example, if Mutt was compiled using GnuTLS for +encrypted communication instead of OpenSSL, mutt -v +would contain:

    --USE_SSL_OPENSSL +USE_SSL_GNUTLS

    1.2. URL Syntax

    +-USE_SSL_OPENSSL +USE_SSL_GNUTLS

    1.2. URL Syntax

    Mutt optionally supports the IMAP, POP3 and SMTP protocols which require to access servers using URLs. The canonical syntax for specifying URLs -in Mutt is (an item enclosed in [] means it is optional and -may be omitted): +in Mutt is (an item enclosed in [] means it is +optional and may be omitted):

    -proto[s]://[username[:password]@]server[:port]/[path]
    +proto[s]://[username[:password]@]server[:port][/path]
     

    proto is the communication protocol: imap for IMAP, pop for POP3 and -smtp for SMTP. If “s” for “secure -communication” is appended, Mutt will attempt to establish an +smtp for SMTP. If “s” for “secure +communication” is appended, Mutt will attempt to establish an encrypted communication using SSL or TLS.

    Since all protocols supported by Mutt support/require authentication, login credentials may be specified in the URL. This has the advantage that multiple IMAP, POP3 or SMTP servers may be specified (which isn't -possible using, for example, -$imap_user). The username -may contain the “@” symbol being used by many mail systems -as part of the login name. A password can be given, too but is not -recommended if the URL is specified in a configuration file on disk. +possible using, for example, $imap_user). The username may contain the +“@” symbol being used by many mail systems as part of the +login name. The special characters “/” +(%2F), “:” (%3A) and +“%” (%25) have to be URL-encoded in +usernames using the %-notation. +

    +A password can be given, too but is not recommended if the URL is +specified in a configuration file on disk.

    If no port number is given, Mutt will use the system's default for the given protocol (usually consulting /etc/services).

    -The optional path is only relevant for IMAP. +The optional path is only relevant for IMAP and ignored elsewhere.

    Example 6.1. URLs

     pops://host/
     imaps://user@host/INBOX/Sent
     smtp://user@host:587/
    -

    2. SSL/TLS Support

    +


    2. SSL/TLS Support

    If Mutt is compiled with IMAP, POP3 and/or SMTP support, it can also be -compiled with support for SSL or TLS using either OpenSSL or GnuTLS ( -by running the configure script with the +compiled with support for SSL or TLS using either OpenSSL or GnuTLS ( by +running the configure script with the --enable-ssl=... option for OpenSSL or --enable-gnutls=... for GnuTLS). Mutt can then attempt to encrypt communication with remote servers if these protocols -are suffixed with “s” for “secure communication”. -

    3. POP3 Support

    -If Mutt is compiled with POP3 support (by running the configure -script with the --enable-pop flag), it has the ability to work -with mailboxes located on a remote POP3 server and fetch mail for local +are suffixed with “s” for “secure +communication”. +

    3. POP3 Support

    +If Mutt is compiled with POP3 support (by running the +configure script with the +--enable-pop flag), it has the ability to work with +mailboxes located on a remote POP3 server and fetch mail for local browsing.

    -Remote POP3 servers can be accessed using URLs with the pop protocol -for unencrypted and pops for encrypted -communication, see Section 1.2, “URL Syntax” for details. +Remote POP3 servers can be accessed using URLs with the +pop protocol for unencrypted and +pops for encrypted communication, see Section 1.2, “URL Syntax” for details.

    Polling for new mail is more expensive over POP3 than locally. For this reason the frequency at which Mutt will check for mail remotely can be -controlled by the -$pop_checkinterval -variable, which defaults to every 60 seconds. +controlled by the $pop_checkinterval variable, which +defaults to every 60 seconds.

    POP is read-only which doesn't allow for some features like editing -messages or changing flags. However, using -Section 7.1, “Header Caching” and Section 7.2, “Body Caching” -Mutt simulates the new/old/read flags as well as flagged and replied. -Mutt applies some logic on top of remote messages but cannot change -them so that modifications of flags are lost when -messages are downloaded from the POP server (either by Mutt or other -tools). +messages or changing flags. However, using Section 7.1, “Header Caching” and Section 7.2, “Body Caching” Mutt +simulates the new/old/read flags as well as flagged and replied. Mutt +applies some logic on top of remote messages but cannot change them so +that modifications of flags are lost when messages are downloaded from +the POP server (either by Mutt or other tools).

    -Another way to access your POP3 mail is the <fetch-mail> function -(default: G). It allows to connect to $pop_host, fetch all your new mail and place it in the -local $spoolfile. After this -point, Mutt runs exactly as if the mail had always been local. -

    Note

    -If you only need to fetch all messages to a -local mailbox you should consider using a specialized program, such as -fetchmail(1), getmail(1) or similar. -

    4. IMAP Support

    -If Mutt was compiled with IMAP support (by running the configure -script with the --enable-imap flag), it has the ability to work +Another way to access your POP3 mail is the +<fetch-mail> function (default: G). It allows +to connect to $pop_host, fetch all your +new mail and place it in the local $spoolfile. After this point, Mutt runs +exactly as if the mail had always been local. +

    Note

    +If you only need to fetch all messages to a local mailbox you should +consider using a specialized program, such as +fetchmail(1), getmail(1) or +similar. +

    4. IMAP Support

    +If Mutt was compiled with IMAP support (by running the +configure script with the +--enable-imap flag), it has the ability to work with folders located on a remote IMAP server.

    -You can access the remote inbox by selecting the folder by its URL -(see Section 1.2, “URL Syntax” for details) using the +You can access the remote inbox by selecting the folder by its URL (see +Section 1.2, “URL Syntax” for details) using the imap or imaps protocol. -Alternatively, a pine-compatible notation is also supported, ie +Alternatively, a pine-compatible notation is also supported, i.e. {[username@]imapserver[:port][/ssl]}path/to/folder

    -Note that not all servers use “/” as the hierarchy separator. Mutt should -correctly notice which separator is being used by the server and convert -paths accordingly. +Note that not all servers use “/” as the hierarchy +separator. Mutt should correctly notice which separator is being used +by the server and convert paths accordingly.

    When browsing folders on an IMAP server, you can toggle whether to look at only the folders you are subscribed to, or all folders with the -toggle-subscribed command. See also the -$imap_list_subscribed variable. -

    -Polling for new mail on an IMAP server can cause noticeable delays. So, you'll -want to carefully tune the -$mail_check -and -$timeout -variables. Reasonable values are: +toggle-subscribed command. See also the $imap_list_subscribed variable. +

    +Polling for new mail on an IMAP server can cause noticeable delays. So, +you'll want to carefully tune the $mail_check and $timeout variables. Reasonable values are:

     set mail_check=90
     set timeout=15
     

    with relatively good results even over slow modem lines. -

    Note

    +

    Note

    Note that if you are using mbox as the mail store on UW servers prior to -v12.250, the server has been reported to disconnect a client if another client -selects the same folder. -

    4.1. The IMAP Folder Browser

    +v12.250, the server has been reported to disconnect a client if another +client selects the same folder. +

    4.1. The IMAP Folder Browser

    As of version 1.2, Mutt supports browsing mailboxes on an IMAP server. This is mostly the same as the local file browser, with the following differences: -

    • -In lieu of file permissions, Mutt displays the string “IMAP”, -possibly followed by the symbol “+”, indicating -that the entry contains both messages and subfolders. On +

      • +In lieu of file permissions, Mutt displays the string +“IMAP”, possibly followed by the symbol “+”, +indicating that the entry contains both messages and subfolders. On Cyrus-like servers folders will often contain both messages and subfolders. -

      • -For the case where an entry can contain both messages and -subfolders, the selection key (bound to enter by default) -will choose to descend into the subfolder view. If you wish to view -the messages in that folder, you must use view-file instead -(bound to space by default). -

      • +

      • +For the case where an entry can contain both messages and subfolders, +the selection key (bound to enter by default) will +choose to descend into the subfolder view. If you wish to view the +messages in that folder, you must use view-file +instead (bound to space by default). +

      • You can create, delete and rename mailboxes with the -<create-mailbox>, <delete-mailbox>, and -<rename-mailbox> commands (default bindings: C, -d and r, respectively). You may also -<subscribe> and <unsubscribe> to mailboxes (normally -these are bound to s and u, respectively). -

    4.2. Authentication

    +<create-mailbox>, +<delete-mailbox>, and +<rename-mailbox> commands (default bindings: +C, d and r, +respectively). You may also <subscribe> and +<unsubscribe> to mailboxes (normally these are +bound to s and u, respectively). +

    4.2. Authentication

    Mutt supports four authentication methods with IMAP servers: SASL, GSSAPI, CRAM-MD5, and LOGIN (there is a patch by Grant Edwards to add NTLM authentication for you poor exchange users out there, but it has -yet to be integrated into the main tree). There is also support for -the pseudo-protocol ANONYMOUS, which allows you to log in to a public -IMAP server without having an account. To use ANONYMOUS, simply make -your username blank or “anonymous”. -

    -SASL is a special super-authenticator, which selects among several protocols -(including GSSAPI, CRAM-MD5, ANONYMOUS, and DIGEST-MD5) the most secure -method available on your host and the server. Using some of these methods -(including DIGEST-MD5 and possibly GSSAPI), your entire session will be -encrypted and invisible to those teeming network snoops. It is the best -option if you have it. To use it, you must have the Cyrus SASL library -installed on your system and compile Mutt with the --with-sasl flag. -

    -Mutt will try whichever methods are compiled in and available on the server, -in the following order: SASL, ANONYMOUS, GSSAPI, CRAM-MD5, LOGIN. +yet to be integrated into the main tree). There is also support for the +pseudo-protocol ANONYMOUS, which allows you to log in to a public IMAP +server without having an account. To use ANONYMOUS, simply make your +username blank or “anonymous”. +

    +SASL is a special super-authenticator, which selects among several +protocols (including GSSAPI, CRAM-MD5, ANONYMOUS, and DIGEST-MD5) the +most secure method available on your host and the server. Using some of +these methods (including DIGEST-MD5 and possibly GSSAPI), your entire +session will be encrypted and invisible to those teeming network +snoops. It is the best option if you have it. To use it, you must have +the Cyrus SASL library installed on your system and compile Mutt with +the --with-sasl flag. +

    +Mutt will try whichever methods are compiled in and available on the +server, in the following order: SASL, ANONYMOUS, GSSAPI, CRAM-MD5, +LOGIN.

    There are a few variables which control authentication: -

    • -$imap_user - controls -the username under which you request authentication on the IMAP server, -for all authenticators. This is overridden by an explicit username in -the mailbox path (ie by using a mailbox name of the form +

      • +$imap_user - controls the username +under which you request authentication on the IMAP server, for all +authenticators. This is overridden by an explicit username in the +mailbox path (i.e. by using a mailbox name of the form {user@host}). -

      • -$imap_pass - a -password which you may preset, used by all authentication methods where -a password is needed. -

      • -$imap_authenticators - a colon-delimited list of IMAP -authentication methods to try, in the order you wish to try them. If -specified, this overrides Mutt's default (attempt everything, in the order -listed above). -

    5. SMTP Support

    +

  • +$imap_pass - a password which you may +preset, used by all authentication methods where a password is needed. +

  • +$imap_authenticators - a +colon-delimited list of IMAP authentication methods to try, in the order +you wish to try them. If specified, this overrides Mutt's default +(attempt everything, in the order listed above). +

  • 5. SMTP Support

    Besides supporting traditional mail delivery through a sendmail-compatible program, Mutt supports delivery through SMTP if it was configured and built with --enable-smtp.

    -If the configuration variable -$smtp_url is set, Mutt -will contact the given SMTP server to deliver messages; if it is unset, -Mutt will use the program specified by $sendmail. +If the configuration variable $smtp_url +is set, Mutt will contact the given SMTP server to deliver messages; if +it is unset, Mutt will use the program specified by $sendmail.

    -For details on the URL syntax, please see Section 1.2, “URL Syntax”. +For details on the URL syntax, please see Section 1.2, “URL Syntax”.

    -The built-in SMTP support supports encryption (the smtps protocol -using SSL or TLS) as well as SMTP authentication using SASL. The authentication mechanisms -for SASL are specified in $smtp_authenticators -defaulting to an empty list which makes Mutt try all available methods -from most-secure to least-secure. -

    6. Managing Multiple Accounts

    +The built-in SMTP support supports encryption (the +smtps protocol using SSL or TLS) as well as SMTP +authentication using SASL. The authentication mechanisms for SASL are +specified in $smtp_authenticators defaulting to +an empty list which makes Mutt try all available methods from +most-secure to least-secure. +

    6. Managing Multiple Accounts

    Usage:

    account-hook pattern command

    -If you happen to have accounts on multiple IMAP, POP and/or SMTP servers, -you may find managing all the authentication settings inconvenient and -error-prone. The account-hook command may help. This hook works like -folder-hook but is invoked whenever Mutt needs to access a remote mailbox -(including inside the folder browser), not just when you open the -mailbox. This includes (for example) polling for new mail, storing Fcc -messages and saving messages to a folder. As a consequence, -account-hook should only be used to set connection-related settings such -as passwords or tunnel commands but not settings such as sender -address or name (because in general it should be considered unpredictable -which account-hook was last used). +If you happen to have accounts on multiple IMAP, POP and/or SMTP +servers, you may find managing all the authentication settings +inconvenient and error-prone. The account-hook command +may help. This hook works like folder-hook but is +invoked whenever Mutt needs to access a remote mailbox (including inside +the folder browser), not just when you open the mailbox. This includes +(for example) polling for new mail, storing Fcc messages and saving +messages to a folder. As a consequence, account-hook should +only be used to set connection-related settings such as passwords or +tunnel commands but not settings such as sender address or name (because +in general it should be considered unpredictable which account-hook was last +used).

    Some examples:

    @@ -3550,11 +3913,8 @@ account-hook imap://host1/ 'set imap_user=me1 imap_pass=foo'
     account-hook imap://host2/ 'set tunnel="ssh host2 /usr/libexec/imapd"'
     account-hook smtp://user@host3/ 'set tunnel="ssh host3 /usr/libexec/smtpd"'
     

    -To manage multiple accounts with, for example, different values of -$record or sender addresses, -folder-hook -has to be be used together with -the mailboxes command. +To manage multiple accounts with, for example, different values of $record or sender addresses, folder-hook has to be be +used together with the mailboxes command.

    Example 6.2. Managing multiple accounts

     mailboxes imap://user@host1/INBOX
     folder-hook imap://user@host1/ 'set folder=imap://host1/ ; set record=+INBOX/Sent'
    @@ -3562,124 +3922,130 @@ folder-hook imap://user@host1/ 'set folder=imap://host1/ ; set record=+INBOX/Sen
     mailboxes imap://user@host2/INBOX
     folder-hook imap://user@host2/ 'set folder=imap://host2/ ; set record=+INBOX/Sent'
     

    -In example -Example 6.2, “Managing multiple accounts” the folders are defined using -mailboxes so Mutt polls them for new -mail. Each folder-hook triggers when -one mailbox below each IMAP account is opened and sets -$folder to the account's root -folder. Next, it sets $record to -the INBOX/Sent folder below the newly -set $folder. Please notice that the -value the “+” -mailbox shortcut refers to depends on -the current value -of $folder and therefore has to be set -separatedly per account. Setting other values -like $from -or $signature is analogous to setting -$record. -

    7. Local Caching

    -Mutt contains two types of local caching: (1) -the so-called “header caching” and (2) the -so-called “body caching” which are both described in this section. +In example Example 6.2, “Managing multiple accounts” the folders are defined +using mailboxes so +Mutt polls them for new mail. Each folder-hook triggers +when one mailbox below each IMAP account is opened and sets $folder to the account's root folder. Next, it +sets $record to the +INBOX/Sent folder below the newly set $folder. Please notice that the value the +“+” mailbox shortcut +refers to depends on the current value of $folder and therefore has to be set separately +per account. Setting other values like $from +or $signature is analogous to setting +$record. +

    7. Local Caching

    +Mutt contains two types of local caching: (1) the +so-called “header caching” and (2) the +so-called “body caching” which are both described in this +section.

    Header caching is optional as it depends on external libraries, body caching is always enabled if Mutt is compiled with POP and/or IMAP support as these use it (body caching requires no external library). -

    7.1. Header Caching

    +

    7.1. Header Caching

    Mutt provides optional support for caching message headers for the following types of folders: IMAP, POP, Maildir and MH. Header caching -greatly improves speed because for remote folders, headers -usually only need to be downloaded once. For Maildir and MH, reading the -headers from a single file is much faster than looking at possibly -thousands of single files (since Maildir and MH use one file per message.) +greatly speeds up opening large folders because for remote folders, +headers usually only need to be downloaded once. For Maildir and MH, +reading the headers from a single file is much faster than looking at +possibly thousands of single files (since Maildir and MH use one file +per message.)

    Header caching can be enabled via the configure script and the ---enable-hcache option. It's not turned on -by default because external database libraries are required: one -of tokyocabinet, qdbm, gdbm or bdb must be present. -

    -If enabled, $header_cache can be -used to either point to a file or a directory. If set to point to -a file, one database file for all folders will be used (which may -result in lower performance), but one file per folder if it points -to a directory. -

    7.2. Body Caching

    +--enable-hcache option. It's not turned on by +default because external database libraries are required: one of +tokyocabinet, qdbm, gdbm or bdb must be present. +

    +If enabled, $header_cache can be +used to either point to a file or a directory. If set to point to a +file, one database file for all folders will be used (which may result +in lower performance), but one file per folder if it points to a +directory. +

    7.2. Body Caching

    Both cache methods can be combined using the same directory for storage (and for IMAP/POP even provide meaningful file names) which simplifies manual maintenance tasks.

    -In addition to caching message headers only, Mutt can also cache -whole message bodies. This results in faster display of messages -for POP and IMAP folders because messages usually have to be -downloaded only once. +In addition to caching message headers only, Mutt can also cache whole +message bodies. This results in faster display of messages for POP and +IMAP folders because messages usually have to be downloaded only once.

    -For configuration, the variable $message_cachedir must point to a -directory. There, Mutt will create a hierarchy of subdirectories +For configuration, the variable $message_cachedir must point to a directory. There, Mutt will +create a hierarchy of subdirectories named like the account and mailbox +path the cache is for. +

    7.3. Cache Directories

    +For using both, header and body caching, $header_cache and $message_cachedir can be safely set +to the same value. +

    +In a header or body cache directory, Mutt creates a directory hierarchy named like: proto:user@hostname where -proto is either “pop” or “imap.” Within -there for each folder, Mutt stores messages in single files. -All files can be removed as needed if the consumed disk space -becomes an issue as Mutt will silently fetch missing items again. -

    7.3. Maintenance

    +proto is either “pop” or +“imap.” Within there, for each folder, Mutt stores messages +in single files and header caches in files with the +“.hcache” extension. All files can be removed as needed if +the consumed disk space becomes an issue as Mutt will silently fetch +missing items again. Pathnames are always stored in UTF-8 encoding. +

    +For Maildir and MH, the header cache files are named after the MD5 +checksum of the path. +

    7.4. Maintenance

    Mutt does not (yet) support maintenance features for header cache database files so that files have to be removed in case they grow too big. It depends on the database library used for header caching whether disk space freed by removing messages is re-used.

    -For body caches, Mutt can keep the local cache in sync with the -remote mailbox if the -$message_cache_clean -variable is set. Cleaning means to remove messages from the cache which -are no longer present in the mailbox which only happens when other mail -clients or instances of Mutt using a different body cache location -delete messages (Mutt itself removes deleted messages from the cache -when syncing a mailbox). As cleaning can take a noticeable amount of time, -it should not be set in general but only occasionally. -

    8. Exact Address Generation

    -Mutt supports the “Name <user@host>” address syntax for reading and -writing messages, the older “user@host (Name)” syntax is only supported when -reading messages. The --enable-exact-address -switch can be given to configure to build it with write-support -for the latter syntax. EXACT_ADDRESS in the output of -mutt -v indicates whether it's supported. -

    9. Sending Anonymous Messages via Mixmaster

    +For body caches, Mutt can keep the local cache in sync with the remote +mailbox if the $message_cache_clean variable is +set. Cleaning means to remove messages from the cache which are no +longer present in the mailbox which only happens when other mail clients +or instances of Mutt using a different body cache location delete +messages (Mutt itself removes deleted messages from the cache when +syncing a mailbox). As cleaning can take a noticeable amount of time, it +should not be set in general but only occasionally. +

    8. Exact Address Generation

    +Mutt supports the “Name <user@host>” address syntax +for reading and writing messages, the older “user@host +(Name)” syntax is only supported when reading messages. The +--enable-exact-address switch can be given to +configure to build it with write-support for the latter +syntax. EXACT_ADDRESS in the output of mutt +-v indicates whether it's supported. +

    9. Sending Anonymous Messages via Mixmaster

    You may also have compiled Mutt to co-operate with Mixmaster, an anonymous remailer. Mixmaster permits you to send your messages anonymously using a chain of remailers. Mixmaster support in Mutt is for -mixmaster version 2.04 (beta 45 appears to be the latest) and 2.03. -It does not support earlier versions or the later so-called version 3 betas, -of which the latest appears to be called 2.9b23. -

    -To use it, you'll have to obey certain restrictions. Most -important, you cannot use the Cc and Bcc headers. To tell -Mutt to use mixmaster, you have to select a remailer chain, using -the mix function on the compose menu. -

    -The chain selection screen is divided into two parts. In the -(larger) upper part, you get a list of remailers you may use. In -the lower part, you see the currently selected chain of remailers. -

    -You can navigate in the chain using the <chain-prev> and -<chain-next> functions, which are by default bound to the left -and right arrows and to the h and l keys (think vi -keyboard bindings). To insert a remailer at the current chain -position, use the <insert> function. To append a remailer behind -the current chain position, use <select-entry> or <append>. -You can also delete entries from the chain, using the corresponding -function. Finally, to abandon your changes, leave the menu, or -<accept> them pressing (by default) the Return key. -

    -Note that different remailers do have different capabilities, -indicated in the %c entry of the remailer menu lines (see -$mix_entry_format). Most important is -the “middleman” capability, indicated by a capital “M”: This -means that the remailer in question cannot be used as the final -element of a chain, but will only forward messages to other -mixmaster remailers. For details on the other capabilities, please -have a look at the mixmaster documentation. -

    Chapter 7. Security Considerations

    +mixmaster version 2.04 or later. +

    +To use it, you'll have to obey certain restrictions. Most important, +you cannot use the Cc and Bcc +headers. To tell Mutt to use mixmaster, you have to select a remailer +chain, using the mix function on the compose menu. +

    +The chain selection screen is divided into two parts. In the (larger) +upper part, you get a list of remailers you may use. In the lower part, +you see the currently selected chain of remailers. +

    +You can navigate in the chain using the +<chain-prev> and +<chain-next> functions, which are by default +bound to the left and right arrows and to the h and +l keys (think vi keyboard bindings). To insert a +remailer at the current chain position, use the +<insert> function. To append a remailer behind +the current chain position, use <select-entry> +or <append>. You can also delete entries from +the chain, using the corresponding function. Finally, to abandon your +changes, leave the menu, or <accept> them +pressing (by default) the Return key. +

    +Note that different remailers do have different capabilities, indicated +in the %c entry of the remailer menu lines (see $mix_entry_format). Most important is +the “middleman” capability, indicated by a capital +“M”: This means that the remailer in question cannot be +used as the final element of a chain, but will only forward messages to +other mixmaster remailers. For details on the other capabilities, +please have a look at the mixmaster documentation. +

    Chapter 7. Security Considerations

    First of all, Mutt contains no security holes included by intention but may contain unknown security holes. As a consequence, please run Mutt only with as few permissions as possible. Especially, do not run Mutt as @@ -3687,7 +4053,7 @@ the super user.

    When configuring Mutt, there're some points to note about secure setups so please read this chapter carefully. -

    1. Passwords

    +

    1. Passwords

    Although Mutt can be told the various passwords for accounts, please never store passwords in configuration files. Besides the fact that the system's operator can always read them, you could forget to mask it out @@ -3695,29 +4061,29 @@ when reporting a bug or asking for help via a mailing list. Even worse, your mail including your password could be archived by internet search engines, mail-to-news gateways etc. It may already be too late before you notice your mistake. -

    2. Temporary Files

    +

    2. Temporary Files

    Mutt uses many temporary files for viewing messages, verifying digital signatures, etc. As long as being used, these files are visible by other users and maybe even readable in case of misconfiguration. Also, a different location for these files may be desired which can be changed -via the $tmpdir variable. -

    3. Information Leaks

    3.1. Message-Id: headers

    +via the $tmpdir variable. +

    3. Information Leaks

    3.1. Message-Id: headers

    Message-Id: headers contain a local part that is to be created in a -unique fashion. In order to do so, Mutt will “leak” some +unique fashion. In order to do so, Mutt will “leak” some information to the outside world when sending messages: the generation of this header includes a step counter which is increased (and rotated) with every message sent. In a longer running mutt session, others can -make assumptions about your mailing habbits depending on the number of +make assumptions about your mailing habits depending on the number of messages sent. If this is not desired, the header can be manually -provided using $edit_headers (though not -recommended). -

    3.2. mailto:-style Links

    +provided using $edit_headers (though +not recommended). +

    3.2. mailto:-style Links

    As Mutt be can be set up to be the mail client to handle mailto: style links in websites, there're security considerations, too. Arbitrary header fields can be embedded in these links which could override existing header fields or attach arbitrary -files using the Attach: -psuedoheader. This may be problematic if the $edit-headers variable is +files using the Attach: +pseudoheader. This may be problematic if the $edit-headers variable is unset, i.e. the user doesn't want to see header fields while editing the message and doesn't pay enough attention to the compose menu's listing of attachments. @@ -3728,66 +4094,62 @@ mailto:joe@host?Attach=~/.gnupg/secring.gpg

    will send out the user's private gnupg keyring to joe@host if the user doesn't follow the information on screen carefully enough. -

    4. External Applications

    +

    4. External Applications

    Mutt in many places has to rely on external applications or for convenience supports mechanisms involving external applications.

    One of these is the mailcap mechanism as defined by RfC1524. Details about a secure use of the mailcap mechanisms is given -in Section 3.2, “Secure Use of Mailcap”. +in Section 3.2, “Secure Use of Mailcap”.

    Besides the mailcap mechanism, Mutt uses a number of other external utilities for operation, for example to provide crypto support, in backtick expansion in configuration files or format string filters. The same security considerations apply for these as for tools involved via mailcap. -

    Chapter 8. Performance Tuning

    1. Reading and Writing Mailboxes

    +

    Chapter 8. Performance Tuning

    1. Reading and Writing Mailboxes

    Mutt's performance when reading mailboxes can be improved in two ways: -

    1. -For remote folders (IMAP and POP) as well as folders using -one-file-per message storage (Maildir and MH), Mutt's -performance can be greatly improved using -header caching. +

      1. +For remote folders (IMAP and POP) as well as folders using one-file-per +message storage (Maildir and MH), Mutt's performance can be greatly +improved using header caching. using a single database per folder. -

      2. -Mutt provides the $read_inc -and $write_inc -variables to specify at which rate to update progress -counters. If these values are too low, Mutt may spend more -time on updating the progress counter than it spends on -actually reading/writing folders. -

        -For example, when opening a maildir folder with a few -thousand messages, the default value for -$read_inc -may be too low. It can be tuned on on a folder-basis using -folder-hooks: +

      3. +Mutt provides the $read_inc and $write_inc variables to specify at which rate +to update progress counters. If these values are too low, Mutt may spend +more time on updating the progress counter than it spends on actually +reading/writing folders. +

        +For example, when opening a maildir folder with a few thousand messages, +the default value for $read_inc may be +too low. It can be tuned on on a folder-basis using folder-hooks:

        -# use very high $read_inc to speed up reading hcache'd maildirs
        +# use very high $read_inc to speed up reading hcache'd maildirs
         folder-hook . 'set read_inc=1000'
        -# use lower value for reading slower remote IMAP folders
        +# use lower value for reading slower remote IMAP folders
         folder-hook ^imap 'set read_inc=100'
        -# use even lower value for reading even slower remote POP folders
        -folder-hook ^pop 'set read_inc=1'

      These settings work on a per-message basis. However, as messages may -greatly differ in size and certain operations are much faster than others, -even per-folder settings of the increment variables may not be +# use even lower value for reading even slower remote POP folders +folder-hook ^pop 'set read_inc=1'

    +These settings work on a per-message basis. However, as messages may +greatly differ in size and certain operations are much faster than +others, even per-folder settings of the increment variables may not be desirable as they produce either too few or too much progress updates. -Thus, Mutt allows to limit the number of progress updates per second it'll -actually send to the terminal using the -$time_inc variable.

    2. Reading Messages from Remote Folders

    -Reading messages from remote folders such as IMAP an POP can be -slow especially for large mailboxes since Mutt only caches a very -limited number of recently viewed messages (usually 10) per -session (so that it will be gone for the next session.) -

    -To improve performance and permanently cache whole messages, -please refer to Mutt's so-called -body caching for details. -

    3. Searching and Limiting

    -When searching mailboxes either via a search or a limit action, for -some patterns Mutt distinguishes between regular expression and string +Thus, Mutt allows to limit the number of progress updates per second +it'll actually send to the terminal using the $time_inc variable. +

    2. Reading Messages from Remote Folders

    +Reading messages from remote folders such as IMAP an POP can be slow +especially for large mailboxes since Mutt only caches a very limited +number of recently viewed messages (usually 10) per session (so that it +will be gone for the next session.) +

    +To improve performance and permanently cache whole messages, please +refer to Mutt's so-called body +caching for details. +

    3. Searching and Limiting

    +When searching mailboxes either via a search or a limit action, for some +patterns Mutt distinguishes between regular expression and string searches. For regular expressions, patterns are prefixed with -“˜” and with “=” for string searches. +“~” and with “=” for string searches.

    Even though a regular expression search is fast, it's several times slower than a pure string search which is noticeable especially on large @@ -3798,16 +4160,17 @@ search pattern. For example, when limiting a large folder to all messages sent to or by an author, it's much faster to search for the initial part of an e-mail address via =Luser@ instead of -˜Luser@. This is especially true for searching +~Luser@. This is especially true for searching message bodies since a larger amount of input has to be searched.

    As for regular expressions, a lower case string search pattern makes Mutt perform a case-insensitive search except for IMAP (because for IMAP -Mutt performs server-side searches which don't support case-insensivity). -

    Chapter 9. Reference

    Table of Contents

    1. Command-Line Options
    2. Configuration Commands
    3. Configuration Variables
    3.1. abort_nosubject
    3.2. abort_unmodified
    3.3. alias_file
    3.4. alias_format
    3.5. allow_8bit
    3.6. allow_ansi
    3.7. arrow_cursor
    3.8. ascii_chars
    3.9. askbcc
    3.10. askcc
    3.11. assumed_charset
    3.12. attach_charset
    3.13. attach_format
    3.14. attach_sep
    3.15. attach_split
    3.16. attribution
    3.17. auto_tag
    3.18. autoedit
    3.19. beep
    3.20. beep_new
    3.21. bounce
    3.22. bounce_delivered
    3.23. braille_friendly
    3.24. certificate_file
    3.25. charset
    3.26. check_mbox_size
    3.27. check_new
    3.28. collapse_unread
    3.29. compose_format
    3.30. config_charset
    3.31. confirmappend
    3.32. confirmcreate
    3.33. connect_timeout
    3.34. content_type
    3.35. copy
    3.36. crypt_autoencrypt
    3.37. crypt_autopgp
    3.38. crypt_autosign
    3.39. crypt_autosmime
    3.40. crypt_replyencrypt
    3.41. crypt_replysign
    3.42. crypt_replysignencrypted
    3.43. crypt_timestamp
    3.44. crypt_use_gpgme
    3.45. crypt_use_pka
    3.46. crypt_verify_sig
    3.47. date_format
    3.48. default_hook
    3.49. delete
    3.50. delete_untag
    3.51. digest_collapse
    3.52. display_filter
    3.53. dotlock_program
    3.54. dsn_notify
    3.55. dsn_return
    3.56. duplicate_threads
    3.57. edit_headers
    3.58. editor
    3.59. encode_from
    3.60. entropy_file
    3.61. envelope_from_address
    3.62. escape
    3.63. fast_reply
    3.64. fcc_attach
    3.65. fcc_clear
    3.66. folder
    3.67. folder_format
    3.68. followup_to
    3.69. force_name
    3.70. forward_decode
    3.71. forward_decrypt
    3.72. forward_edit
    3.73. forward_format
    3.74. forward_quote
    3.75. from
    3.76. gecos_mask
    3.77. hdrs
    3.78. header
    3.79. header_cache
    3.80. header_cache_compress
    3.81. header_cache_pagesize
    3.82. help
    3.83. hidden_host
    3.84. hide_limited
    3.85. hide_missing
    3.86. hide_thread_subject
    3.87. hide_top_limited
    3.88. hide_top_missing
    3.89. history
    3.90. history_file
    3.91. honor_disposition
    3.92. honor_followup_to
    3.93. hostname
    3.94. ignore_linear_white_space
    3.95. ignore_list_reply_to
    3.96. imap_authenticators
    3.97. imap_check_subscribed
    3.98. imap_delim_chars
    3.99. imap_headers
    3.100. imap_idle
    3.101. imap_keepalive
    3.102. imap_list_subscribed
    3.103. imap_login
    3.104. imap_pass
    3.105. imap_passive
    3.106. imap_peek
    3.107. imap_pipeline_depth
    3.108. imap_servernoise
    3.109. imap_user
    3.110. implicit_autoview
    3.111. include
    3.112. include_onlyfirst
    3.113. indent_string
    3.114. index_format
    3.115. ispell
    3.116. keep_flagged
    3.117. locale
    3.118. mail_check
    3.119. mailcap_path
    3.120. mailcap_sanitize
    3.121. maildir_header_cache_verify
    3.122. maildir_trash
    3.123. mark_old
    3.124. markers
    3.125. mask
    3.126. mbox
    3.127. mbox_type
    3.128. menu_context
    3.129. menu_move_off
    3.130. menu_scroll
    3.131. message_cache_clean
    3.132. message_cachedir
    3.133. message_format
    3.134. meta_key
    3.135. metoo
    3.136. mh_purge
    3.137. mh_seq_flagged
    3.138. mh_seq_replied
    3.139. mh_seq_unseen
    3.140. mime_forward
    3.141. mime_forward_decode
    3.142. mime_forward_rest
    3.143. mix_entry_format
    3.144. mixmaster
    3.145. move
    3.146. narrow_tree
    3.147. net_inc
    3.148. pager
    3.149. pager_context
    3.150. pager_format
    3.151. pager_index_lines
    3.152. pager_stop
    3.153. pgp_auto_decode
    3.154. pgp_autoinline
    3.155. pgp_check_exit
    3.156. pgp_clearsign_command
    3.157. pgp_decode_command
    3.158. pgp_decrypt_command
    3.159. pgp_encrypt_only_command
    3.160. pgp_encrypt_sign_command
    3.161. pgp_entry_format
    3.162. pgp_export_command
    3.163. pgp_getkeys_command
    3.164. pgp_good_sign
    3.165. pgp_ignore_subkeys
    3.166. pgp_import_command
    3.167. pgp_list_pubring_command
    3.168. pgp_list_secring_command
    3.169. pgp_long_ids
    3.170. pgp_mime_auto
    3.171. pgp_replyinline
    3.172. pgp_retainable_sigs
    3.173. pgp_show_unusable
    3.174. pgp_sign_as
    3.175. pgp_sign_command
    3.176. pgp_sort_keys
    3.177. pgp_strict_enc
    3.178. pgp_timeout
    3.179. pgp_use_gpg_agent
    3.180. pgp_verify_command
    3.181. pgp_verify_key_command
    3.182. pipe_decode
    3.183. pipe_sep
    3.184. pipe_split
    3.185. pop_auth_try_all
    3.186. pop_authenticators
    3.187. pop_checkinterval
    3.188. pop_delete
    3.189. pop_host
    3.190. pop_last
    3.191. pop_pass
    3.192. pop_reconnect
    3.193. pop_user
    3.194. post_indent_string
    3.195. postpone
    3.196. postponed
    3.197. preconnect
    3.198. print
    3.199. print_command
    3.200. print_decode
    3.201. print_split
    3.202. prompt_after
    3.203. query_command
    3.204. query_format
    3.205. quit
    3.206. quote_regexp
    3.207. read_inc
    3.208. read_only
    3.209. realname
    3.210. recall
    3.211. record
    3.212. reply_regexp
    3.213. reply_self
    3.214. reply_to
    3.215. resolve
    3.216. reverse_alias
    3.217. reverse_name
    3.218. reverse_realname
    3.219. rfc2047_parameters
    3.220. save_address
    3.221. save_empty
    3.222. save_history
    3.223. save_name
    3.224. score
    3.225. score_threshold_delete
    3.226. score_threshold_flag
    3.227. score_threshold_read
    3.228. search_context
    3.229. send_charset
    3.230. sendmail
    3.231. sendmail_wait
    3.232. shell
    3.233. sig_dashes
    3.234. sig_on_top
    3.235. signature
    3.236. simple_search
    3.237. sleep_time
    3.238. smart_wrap
    3.239. smileys
    3.240. smime_ask_cert_label
    3.241. smime_ca_location
    3.242. smime_certificates
    3.243. smime_decrypt_command
    3.244. smime_decrypt_use_default_key
    3.245. smime_default_key
    3.246. smime_encrypt_command
    3.247. smime_encrypt_with
    3.248. smime_get_cert_command
    3.249. smime_get_cert_email_command
    3.250. smime_get_signer_cert_command
    3.251. smime_import_cert_command
    3.252. smime_is_default
    3.253. smime_keys
    3.254. smime_pk7out_command
    3.255. smime_sign_command
    3.256. smime_sign_opaque_command
    3.257. smime_timeout
    3.258. smime_verify_command
    3.259. smime_verify_opaque_command
    3.260. smtp_authenticators
    3.261. smtp_pass
    3.262. smtp_url
    3.263. sort
    3.264. sort_alias
    3.265. sort_aux
    3.266. sort_browser
    3.267. sort_re
    3.268. spam_separator
    3.269. spoolfile
    3.270. ssl_ca_certificates_file
    3.271. ssl_client_cert
    3.272. ssl_force_tls
    3.273. ssl_min_dh_prime_bits
    3.274. ssl_starttls
    3.275. ssl_use_sslv2
    3.276. ssl_use_sslv3
    3.277. ssl_use_tlsv1
    3.278. ssl_usesystemcerts
    3.279. ssl_verify_dates
    3.280. ssl_verify_host
    3.281. status_chars
    3.282. status_format
    3.283. status_on_top
    3.284. strict_threads
    3.285. suspend
    3.286. text_flowed
    3.287. thorough_search
    3.288. thread_received
    3.289. tilde
    3.290. time_inc
    3.291. timeout
    3.292. tmpdir
    3.293. to_chars
    3.294. tunnel
    3.295. uncollapse_jump
    3.296. use_8bitmime
    3.297. use_domain
    3.298. use_envelope_from
    3.299. use_from
    3.300. use_idn
    3.301. use_ipv6
    3.302. user_agent
    3.303. visual
    3.304. wait_key
    3.305. weed
    3.306. wrap
    3.307. wrap_search
    3.308. wrapmargin
    3.309. write_bcc
    3.310. write_inc
    4. Functions
    4.1. Generic Menu
    4.2. Index Menu
    4.3. Pager Menu
    4.4. Alias Menu
    4.5. Query Menu
    4.6. Attach Menu
    4.7. Compose Menu
    4.8. Postpone Menu
    4.9. Browser Menu
    4.10. Pgp Menu
    4.11. Smime Menu
    4.12. Mix Menu
    4.13. Editor Menu

    1. Command-Line Options

    -Running mutt with no arguments will make Mutt attempt to read your spool -mailbox. However, it is possible to read other mailboxes and -to send messages from the command line as well. +Mutt performs server-side searches which don't support +case-insensitivity). +

    Chapter 9. Reference

    Table of Contents

    1. Command-Line Options
    2. Configuration Commands
    3. Configuration Variables
    3.1. abort_nosubject
    3.2. abort_unmodified
    3.3. alias_file
    3.4. alias_format
    3.5. allow_8bit
    3.6. allow_ansi
    3.7. arrow_cursor
    3.8. ascii_chars
    3.9. askbcc
    3.10. askcc
    3.11. assumed_charset
    3.12. attach_charset
    3.13. attach_format
    3.14. attach_sep
    3.15. attach_split
    3.16. attribution
    3.17. auto_tag
    3.18. autoedit
    3.19. beep
    3.20. beep_new
    3.21. bounce
    3.22. bounce_delivered
    3.23. braille_friendly
    3.24. certificate_file
    3.25. charset
    3.26. check_mbox_size
    3.27. check_new
    3.28. collapse_unread
    3.29. compose_format
    3.30. config_charset
    3.31. confirmappend
    3.32. confirmcreate
    3.33. connect_timeout
    3.34. content_type
    3.35. copy
    3.36. crypt_autoencrypt
    3.37. crypt_autopgp
    3.38. crypt_autosign
    3.39. crypt_autosmime
    3.40. crypt_replyencrypt
    3.41. crypt_replysign
    3.42. crypt_replysignencrypted
    3.43. crypt_timestamp
    3.44. crypt_use_gpgme
    3.45. crypt_use_pka
    3.46. crypt_verify_sig
    3.47. date_format
    3.48. default_hook
    3.49. delete
    3.50. delete_untag
    3.51. digest_collapse
    3.52. display_filter
    3.53. dotlock_program
    3.54. dsn_notify
    3.55. dsn_return
    3.56. duplicate_threads
    3.57. edit_headers
    3.58. editor
    3.59. encode_from
    3.60. entropy_file
    3.61. envelope_from_address
    3.62. escape
    3.63. fast_reply
    3.64. fcc_attach
    3.65. fcc_clear
    3.66. folder
    3.67. folder_format
    3.68. followup_to
    3.69. force_name
    3.70. forward_decode
    3.71. forward_decrypt
    3.72. forward_edit
    3.73. forward_format
    3.74. forward_quote
    3.75. from
    3.76. gecos_mask
    3.77. hdrs
    3.78. header
    3.79. header_cache
    3.80. header_cache_compress
    3.81. header_cache_pagesize
    3.82. help
    3.83. hidden_host
    3.84. hide_limited
    3.85. hide_missing
    3.86. hide_thread_subject
    3.87. hide_top_limited
    3.88. hide_top_missing
    3.89. history
    3.90. history_file
    3.91. honor_disposition
    3.92. honor_followup_to
    3.93. hostname
    3.94. ignore_linear_white_space
    3.95. ignore_list_reply_to
    3.96. imap_authenticators
    3.97. imap_check_subscribed
    3.98. imap_delim_chars
    3.99. imap_headers
    3.100. imap_idle
    3.101. imap_keepalive
    3.102. imap_list_subscribed
    3.103. imap_login
    3.104. imap_pass
    3.105. imap_passive
    3.106. imap_peek
    3.107. imap_pipeline_depth
    3.108. imap_servernoise
    3.109. imap_user
    3.110. implicit_autoview
    3.111. include
    3.112. include_onlyfirst
    3.113. indent_string
    3.114. index_format
    3.115. ispell
    3.116. keep_flagged
    3.117. locale
    3.118. mail_check
    3.119. mail_check_recent
    3.120. mailcap_path
    3.121. mailcap_sanitize
    3.122. maildir_header_cache_verify
    3.123. maildir_trash
    3.124. mark_old
    3.125. markers
    3.126. mask
    3.127. mbox
    3.128. mbox_type
    3.129. menu_context
    3.130. menu_move_off
    3.131. menu_scroll
    3.132. message_cache_clean
    3.133. message_cachedir
    3.134. message_format
    3.135. meta_key
    3.136. metoo
    3.137. mh_purge
    3.138. mh_seq_flagged
    3.139. mh_seq_replied
    3.140. mh_seq_unseen
    3.141. mime_forward
    3.142. mime_forward_decode
    3.143. mime_forward_rest
    3.144. mix_entry_format
    3.145. mixmaster
    3.146. move
    3.147. narrow_tree
    3.148. net_inc
    3.149. pager
    3.150. pager_context
    3.151. pager_format
    3.152. pager_index_lines
    3.153. pager_stop
    3.154. pgp_auto_decode
    3.155. pgp_autoinline
    3.156. pgp_check_exit
    3.157. pgp_clearsign_command
    3.158. pgp_decode_command
    3.159. pgp_decrypt_command
    3.160. pgp_encrypt_only_command
    3.161. pgp_encrypt_sign_command
    3.162. pgp_entry_format
    3.163. pgp_export_command
    3.164. pgp_getkeys_command
    3.165. pgp_good_sign
    3.166. pgp_ignore_subkeys
    3.167. pgp_import_command
    3.168. pgp_list_pubring_command
    3.169. pgp_list_secring_command
    3.170. pgp_long_ids
    3.171. pgp_mime_auto
    3.172. pgp_replyinline
    3.173. pgp_retainable_sigs
    3.174. pgp_show_unusable
    3.175. pgp_sign_as
    3.176. pgp_sign_command
    3.177. pgp_sort_keys
    3.178. pgp_strict_enc
    3.179. pgp_timeout
    3.180. pgp_use_gpg_agent
    3.181. pgp_verify_command
    3.182. pgp_verify_key_command
    3.183. pipe_decode
    3.184. pipe_sep
    3.185. pipe_split
    3.186. pop_auth_try_all
    3.187. pop_authenticators
    3.188. pop_checkinterval
    3.189. pop_delete
    3.190. pop_host
    3.191. pop_last
    3.192. pop_pass
    3.193. pop_reconnect
    3.194. pop_user
    3.195. post_indent_string
    3.196. postpone
    3.197. postponed
    3.198. preconnect
    3.199. print
    3.200. print_command
    3.201. print_decode
    3.202. print_split
    3.203. prompt_after
    3.204. query_command
    3.205. query_format
    3.206. quit
    3.207. quote_regexp
    3.208. read_inc
    3.209. read_only
    3.210. realname
    3.211. recall
    3.212. record
    3.213. reply_regexp
    3.214. reply_self
    3.215. reply_to
    3.216. resolve
    3.217. reverse_alias
    3.218. reverse_name
    3.219. reverse_realname
    3.220. rfc2047_parameters
    3.221. save_address
    3.222. save_empty
    3.223. save_history
    3.224. save_name
    3.225. score
    3.226. score_threshold_delete
    3.227. score_threshold_flag
    3.228. score_threshold_read
    3.229. search_context
    3.230. send_charset
    3.231. sendmail
    3.232. sendmail_wait
    3.233. shell
    3.234. sig_dashes
    3.235. sig_on_top
    3.236. signature
    3.237. simple_search
    3.238. sleep_time
    3.239. smart_wrap
    3.240. smileys
    3.241. smime_ask_cert_label
    3.242. smime_ca_location
    3.243. smime_certificates
    3.244. smime_decrypt_command
    3.245. smime_decrypt_use_default_key
    3.246. smime_default_key
    3.247. smime_encrypt_command
    3.248. smime_encrypt_with
    3.249. smime_get_cert_command
    3.250. smime_get_cert_email_command
    3.251. smime_get_signer_cert_command
    3.252. smime_import_cert_command
    3.253. smime_is_default
    3.254. smime_keys
    3.255. smime_pk7out_command
    3.256. smime_sign_command
    3.257. smime_sign_opaque_command
    3.258. smime_timeout
    3.259. smime_verify_command
    3.260. smime_verify_opaque_command
    3.261. smtp_authenticators
    3.262. smtp_pass
    3.263. smtp_url
    3.264. sort
    3.265. sort_alias
    3.266. sort_aux
    3.267. sort_browser
    3.268. sort_re
    3.269. spam_separator
    3.270. spoolfile
    3.271. ssl_ca_certificates_file
    3.272. ssl_client_cert
    3.273. ssl_force_tls
    3.274. ssl_min_dh_prime_bits
    3.275. ssl_starttls
    3.276. ssl_use_sslv2
    3.277. ssl_use_sslv3
    3.278. ssl_use_tlsv1
    3.279. ssl_usesystemcerts
    3.280. ssl_verify_dates
    3.281. ssl_verify_host
    3.282. status_chars
    3.283. status_format
    3.284. status_on_top
    3.285. strict_threads
    3.286. suspend
    3.287. text_flowed
    3.288. thorough_search
    3.289. thread_received
    3.290. tilde
    3.291. time_inc
    3.292. timeout
    3.293. tmpdir
    3.294. to_chars
    3.295. tunnel
    3.296. uncollapse_jump
    3.297. use_8bitmime
    3.298. use_domain
    3.299. use_envelope_from
    3.300. use_from
    3.301. use_idn
    3.302. use_ipv6
    3.303. user_agent
    3.304. visual
    3.305. wait_key
    3.306. weed
    3.307. wrap
    3.308. wrap_headers
    3.309. wrap_search
    3.310. wrapmargin
    3.311. write_bcc
    3.312. write_inc
    4. Functions
    4.1. Generic Menu
    4.2. Index Menu
    4.3. Pager Menu
    4.4. Alias Menu
    4.5. Query Menu
    4.6. Attachment Menu
    4.7. Compose Menu
    4.8. Postpone Menu
    4.9. Browser Menu
    4.10. Pgp Menu
    4.11. Smime Menu
    4.12. Mixmaster Menu
    4.13. Editor Menu

    1. Command-Line Options

    +Running mutt with no arguments will make Mutt attempt +to read your spool mailbox. However, it is possible to read other +mailboxes and to send messages from the command line as well.

    Table 9.1. Command line options

    OptionDescription
    -Aexpand an alias
    -aattach a file to a message
    -bspecify a blind carbon-copy (BCC) address
    -cspecify a carbon-copy (Cc) address
    -Dprint the value of all Mutt variables to stdout
    -especify a config command to be run after initialization files are read
    -fspecify a mailbox to load
    -Fspecify an alternate file to read initialization commands
    -hprint help on command line options
    -Hspecify a draft file from which to read a header and body
    -ispecify a file to include in a message composition
    -mspecify a default mailbox type
    -ndo not read the system Muttrc
    -precall a postponed message
    -Qquery a configuration variable
    -Ropen mailbox in read-only mode
    -sspecify a subject (enclose in quotes if it contains spaces)
    -vshow version number and compile-time definitions
    -xsimulate the mailx(1) compose mode
    -yshow a menu containing the files specified by the mailboxes command
    -zexit immediately if there are no messages in the mailbox
    -Zopen the first folder with new message, exit immediately if none

    To read messages in a mailbox

    mutt [-nz] [-F @@ -3831,32 +4194,42 @@ To compose a new message file [...] -- -] +] address -...

    -Mutt also supports a “batch” mode to send prepared messages. Simply redirect -input from the file you wish to send. For example, + | +mailto_url + ...

    +Mutt also supports a “batch” mode to send prepared +messages. Simply redirect input from the file you wish to send. For +example,

    -mutt -s "data set for run #2" professor@bigschool.edu < ˜/run2.dat

    -will send a message to <professor@bigschool.edu> with a subject -of “data set for run #2”. In the body of the message will be the contents -of the file “˜/run2.dat”. -

    -All files passed with -a file will be attached as a MIME -part to the message. To attach a single or several files, use “--” to separate files and -recipient addresses: +mutt -s "data set for run #2" professor@bigschool.edu < ~/run2.dat

    +will send a message to +<professor@bigschool.edu> with a subject of +“data set for run #2”. In the body of the message will be +the contents of the file “~/run2.dat”. +

    +All files passed with -a file +will be attached as a MIME part to the message. To attach a single or +several files, use “--” to separate files and recipient +addresses:

     mutt -a image.png -- some@one.org

    or

    -mutt -a *.png -- some@one.org

    Note

    +mutt -a *.png -- some@one.org

    Note

    The -a option must be last in the option list. -

    2. Configuration Commands

    +

    +In addition to accepting a list of email addresses, Mutt also accepts a URL with +the mailto: schema as specified in RFC2368. This is useful +when configuring a web browser to launch Mutt when clicking on mailto links. +

    +mutt mailto:some@one.org?subject=test&cc=other@one.org

    2. Configuration Commands

    The following are the commands understood by Mutt: -

    3. Configuration Variables

    3.1. abort_nosubject

    Type: quadoption
    Default: ask-yes

    If set to yes, when composing messages and no subject is given at the subject prompt, composition will be aborted. If set to no, composing messages with no subject given at the subject prompt will never be aborted. -

    3.2. abort_unmodified

    Type: quadoption
    +

    3.2. abort_unmodified

    Type: quadoption
    Default: yes

    If set to yes, composition will automatically abort after editing the message body if no changes are made to the file (this check only happens after the first edit of the file). When set to no, composition will never be aborted. -

    3.3. alias_file

    Type: path
    -Default: “˜/.muttrc”

    +

    3.3. alias_file

    Type: path
    +Default: “~/.muttrc”

    The default file in which to save aliases created by the <create-alias> function. Entries added to this file are -encoded in the character set specified by $config_charset if it +encoded in the character set specified by $config_charset if it is set or the current character set otherwise.

    Note: Mutt will not automatically source this file; you must -explicitly use the “source” command for it to be executed in case +explicitly use the “source” command for it to be executed in case this option points to a dedicated alias file.

    The default for this option is the currently used muttrc file, or -“˜/.muttrc” if no user muttrc was found. -

    3.4. alias_format

    Type: string
    -Default: “%4n %2f %t %-10a   %r”

    -Specifies the format of the data displayed for the “alias” menu. The +“~/.muttrc” if no user muttrc was found. +

    3.4. alias_format

    Type: string
    +Default: “%4n %2f %t %-10a   %r”

    +Specifies the format of the data displayed for the “alias” menu. The following printf(3)-style sequences are available:

    %a alias name -
    %f flags - currently, a “d” for an alias marked for deletion +
    %f flags - currently, a “d” for an alias marked for deletion
    %n index number
    %r address which alias expands to
    %t character which indicates if the alias is tagged for inclusion -

    3.5. allow_8bit

    Type: boolean
    +

    3.5. allow_8bit

    Type: boolean
    Default: yes

    Controls whether 8-bit data is converted to 7-bit using either Quoted- Printable or Base64 encoding when sending mail. -

    3.6. allow_ansi

    Type: boolean
    +

    3.6. allow_ansi

    Type: boolean
    Default: no

    Controls whether ANSI color codes in messages (and color tags in rich text messages) are to be interpreted. @@ -4217,34 +4590,34 @@ message could include a line like [-- PGP output follows ...

    and give it the same color as your attachment color (see also -$crypt_timestamp). -

    3.7. arrow_cursor

    Type: boolean
    +$crypt_timestamp). +

    3.7. arrow_cursor

    Type: boolean
    Default: no

    -When set, an arrow (“->”) will be used to indicate the current entry +When set, an arrow (“->”) will be used to indicate the current entry in menus instead of highlighting the whole line. On slow network or modem links this will make response faster because there is less that has to be redrawn on the screen when moving to the next or previous entries in the menu. -

    3.8. ascii_chars

    Type: boolean
    +

    3.8. ascii_chars

    Type: boolean
    Default: no

    If set, Mutt will use plain ASCII characters when displaying thread and attachment trees, instead of the default ACS characters. -

    3.9. askbcc

    Type: boolean
    +

    3.9. askbcc

    Type: boolean
    Default: no

    If set, Mutt will prompt you for blind-carbon-copy (Bcc) recipients before editing an outgoing message. -

    3.10. askcc

    Type: boolean
    +

    3.10. askcc

    Type: boolean
    Default: no

    If set, Mutt will prompt you for carbon-copy (Cc) recipients before editing the body of an outgoing message. -

    3.11. assumed_charset

    Type: string
    +

    3.11. assumed_charset

    Type: string
    Default: (empty)

    This variable is a colon-separated list of character encoding schemes for messages without character encoding indication. Header field values and message body content without character encoding indication would be assumed that they are written in one of this list. By default, all the header fields and message body without any charset -indication are assumed to be in “us-ascii”. +indication are assumed to be in “us-ascii”.

    For example, Japanese users might prefer this: @@ -4252,74 +4625,74 @@ For example, Japanese users might prefer this: set assumed_charset="iso-2022-jp:euc-jp:shift_jis:utf-8"

    However, only the first content is valid for the message body. -

    3.12. attach_charset

    Type: string
    +

    3.12. attach_charset

    Type: string
    Default: (empty)

    This variable is a colon-separated list of character encoding schemes for text file attachments. Mutt uses this setting to guess which encoding files being attached are encoded in to convert them to -a proper character set given in $send_charset. +a proper character set given in $send_charset.

    -If unset, the value of $charset will be used instead. +If unset, the value of $charset will be used instead. For example, the following configuration would work for Japanese text handling:

     set attach_charset="iso-2022-jp:euc-jp:shift_jis:utf-8"
     

    -Note: for Japanese users, “iso-2022-*” must be put at the head +Note: for Japanese users, “iso-2022-*” must be put at the head of the value as shown above if included. -

    3.13. attach_format

    Type: string
    -Default: “%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] ”

    -This variable describes the format of the “attachment” menu. The +

    3.13. attach_format

    Type: string
    +Default: “%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] ”

    +This variable describes the format of the “attachment” menu. The following printf(3)-style sequences are understood:

    %C charset -
    %c requires charset conversion (“n” or “c”) +
    %c requires charset conversion (“n” or “c”)
    %D deleted flag
    %d description
    %e MIME content-transfer-encoding
    %f filename -
    %I disposition (“I” for inline, “A” for attachment) +
    %I disposition (“I” for inline, “A” for attachment)
    %m major MIME type
    %M MIME subtype
    %n attachment number -
    %Q “Q”, if MIME part qualifies for attachment counting +
    %Q “Q”, if MIME part qualifies for attachment counting
    %s size
    %t tagged flag
    %T graphic tree characters
    %u unlink (=to delete) flag
    %X number of qualifying MIME parts in this part and its children -(please see the “attachments” section for possible speed effects) -
    %>X right justify the rest of the string and pad with character “X” -
    %|X pad to the end of the line with character “X” -
    %*X soft-fill with character “X” as pad +(please see the “attachments” section for possible speed effects) +
    %>X right justify the rest of the string and pad with character “X” +
    %|X pad to the end of the line with character “X” +
    %*X soft-fill with character “X” as pad

    -For an explanation of “soft-fill”, see the $index_format documentation. -

    3.14. attach_sep

    Type: string
    -Default: “\n”

    +For an explanation of “soft-fill”, see the $index_format documentation. +

    3.14. attach_sep

    Type: string
    +Default: “\n”

    The separator to add between attachments when operating (saving, printing, piping, etc) on a list of tagged attachments. -

    3.15. attach_split

    Type: boolean
    +

    3.15. attach_split

    Type: boolean
    Default: yes

    If this variable is unset, when operating (saving, printing, piping, etc) on a list of tagged attachments, Mutt will concatenate the attachments and will operate on them as a single attachment. The -$attach_sep separator is added after each attachment. When set, +$attach_sep separator is added after each attachment. When set, Mutt will operate on the attachments one by one. -

    3.16. attribution

    Type: string
    -Default: “On %d, %n wrote:”

    +

    3.16. attribution

    Type: string
    +Default: “On %d, %n wrote:”

    This is the string that will precede a message which has been included in a reply. For a full listing of defined printf(3)-like sequences see -the section on $index_format. -

    3.17. auto_tag

    Type: boolean
    +the section on $index_format. +

    3.17. auto_tag

    Type: boolean
    Default: no

    When set, functions in the index menu which affect a message will be applied to all tagged messages (if there are any). When -unset, you must first use the <tag-prefix> function (bound to “;” +unset, you must first use the <tag-prefix> function (bound to “;” by default) to make the next function apply to all tagged messages. -

    3.18. autoedit

    Type: boolean
    +

    3.18. autoedit

    Type: boolean
    Default: no

    -When set along with $edit_headers, Mutt will skip the initial +When set along with $edit_headers, Mutt will skip the initial send-menu (prompting for subject and recipients) and allow you to immediately begin editing the body of your message. The send-menu may still be accessed once you have finished @@ -4329,34 +4702,34 @@ editing the body of your message. on the recipients when composing a new (non-reply) message, as the initial list of recipients is empty.

    -Also see $fast_reply. -

    3.19. beep

    Type: boolean
    +Also see $fast_reply. +

    3.19. beep

    Type: boolean
    Default: yes

    When this variable is set, mutt will beep when an error occurs. -

    3.20. beep_new

    Type: boolean
    +

    3.20. beep_new

    Type: boolean
    Default: no

    When this variable is set, mutt will beep whenever it prints a message notifying you of new mail. This is independent of the setting of the -$beep variable. -

    3.21. bounce

    Type: quadoption
    +$beep variable. +

    3.21. bounce

    Type: quadoption
    Default: ask-yes

    Controls whether you will be asked to confirm bouncing messages. If set to yes you don't get asked if you want to bounce a message. Setting this variable to no is not generally useful, and thus not recommended, because you are unable to bounce messages. -

    3.22. bounce_delivered

    Type: boolean
    +

    3.22. bounce_delivered

    Type: boolean
    Default: yes

    When this variable is set, mutt will include Delivered-To headers when bouncing messages. Postfix users may wish to unset this variable. -

    3.23. braille_friendly

    Type: boolean
    +

    3.23. braille_friendly

    Type: boolean
    Default: no

    When this variable is set, mutt will place the cursor at the beginning -of the current line in menus, even when the $arrow_cursor variable +of the current line in menus, even when the $arrow_cursor variable is unset, making it easier for blind persons using Braille displays to follow these menus. The option is unset by default because many visual terminals don't permit making the cursor invisible. -

    3.24. certificate_file

    Type: path
    -Default: “˜/.mutt_certificates”

    +

    3.24. certificate_file

    Type: path
    +Default: “~/.mutt_certificates”

    This variable specifies the file where the certificates you trust are saved. When an unknown certificate is encountered, you are asked if you accept it or not. If you accept it, the certificate can also @@ -4371,17 +4744,17 @@ Example:

     set certificate_file=~/.mutt/certificates
    -

    3.25. charset

    Type: string
    +

    3.25. charset

    Type: string
    Default: (empty)

    Character set your terminal uses to display and enter textual data. -It is also the fallback for $send_charset. +It is also the fallback for $send_charset.

    Upon startup Mutt tries to derive this value from environment variables such as $LC_CTYPE or $LANG.

    -Note: It should only be set in case Mutt isn't abled to determine the +Note: It should only be set in case Mutt isn't able to determine the character set used correctly. -

    3.26. check_mbox_size

    Type: boolean
    +

    3.26. check_mbox_size

    Type: boolean
    Default: no

    When this variable is set, mutt will use file size attribute instead of access time when checking for new mail in mbox and mmdf folders. @@ -4389,12 +4762,12 @@ access time when checking for new mail in mbox and mmdf folders. This variable is unset by default and should only be enabled when new mail detection for these folder types is unreliable or doesn't work.

    -Note that enabling this variable should happen before any “mailboxes” +Note that enabling this variable should happen before any “mailboxes” directives occur in configuration files regarding mbox or mmdf folders because mutt needs to determine the initial new mail status of such a mailbox by performing a fast mailbox scan when it is defined. Afterwards the new mail status is tracked by file size changes. -

    3.27. check_new

    Type: boolean
    +

    3.27. check_new

    Type: boolean
    Default: yes

    Note: this option only affects maildir and MH style mailboxes. @@ -4405,14 +4778,14 @@ take quite some time since it involves scanning the directory and checking each file to see if it has already been looked at. If this variable is unset, no check for new mail is performed while the mailbox is open. -

    3.28. collapse_unread

    Type: boolean
    +

    3.28. collapse_unread

    Type: boolean
    Default: yes

    When unset, Mutt will not collapse a thread if it contains any unread messages. -

    3.29. compose_format

    Type: string
    -Default: “-- Mutt: Compose  [Approx. msg size: %l   Atts: %a]%>-”

    -Controls the format of the status line displayed in the “compose” -menu. This string is similar to $status_format, but has its own +

    3.29. compose_format

    Type: string
    +Default: “-- Mutt: Compose  [Approx. msg size: %l   Atts: %a]%>-”

    +Controls the format of the status line displayed in the “compose” +menu. This string is similar to $status_format, but has its own set of printf(3)-like sequences:

    %a total number of attachments @@ -4420,78 +4793,78 @@ set of printf(3)-like sequences:
    %l approximate size (in bytes) of the current message
    %v Mutt version string

    -See the text describing the $status_format option for more -information on how to set $compose_format. -

    3.30. config_charset

    Type: string
    +See the text describing the $status_format option for more +information on how to set $compose_format. +

    3.30. config_charset

    Type: string
    Default: (empty)

    When defined, Mutt will recode commands in rc files from this -encoding to the current character set as specified by $charset -and aliases written to $alias_file from the current character set. +encoding to the current character set as specified by $charset +and aliases written to $alias_file from the current character set.

    -Please note that if setting $charset it must be done before -setting $config_charset. +Please note that if setting $charset it must be done before +setting $config_charset.

    Recoding should be avoided as it may render unconvertable characters as question marks which can lead to undesired side effects (for example in regular expressions). -

    3.31. confirmappend

    Type: boolean
    +

    3.31. confirmappend

    Type: boolean
    Default: yes

    When set, Mutt will prompt for confirmation when appending messages to an existing mailbox. -

    3.32. confirmcreate

    Type: boolean
    +

    3.32. confirmcreate

    Type: boolean
    Default: yes

    When set, Mutt will prompt for confirmation when saving messages to a mailbox which does not yet exist before creating it. -

    3.33. connect_timeout

    Type: number
    +

    3.33. connect_timeout

    Type: number
    Default: 30

    Causes Mutt to timeout a network connection (for IMAP, POP or SMTP) after this many seconds if the connection is not able to be established. A negative value causes Mutt to wait indefinitely for the connection attempt to succeed. -

    3.34. content_type

    Type: string
    -Default: “text/plain”

    +

    3.34. content_type

    Type: string
    +Default: “text/plain”

    Sets the default Content-Type for the body of newly composed messages. -

    3.35. copy

    Type: quadoption
    +

    3.35. copy

    Type: quadoption
    Default: yes

    This variable controls whether or not copies of your outgoing messages -will be saved for later references. Also see $record, -$save_name, $force_name and “fcc-hook”. -

    3.36. crypt_autoencrypt

    Type: boolean
    +will be saved for later references. Also see $record, +$save_name, $force_name and “fcc-hook”. +

    3.36. crypt_autoencrypt

    Type: boolean
    Default: no

    Setting this variable will cause Mutt to always attempt to PGP encrypt outgoing messages. This is probably only useful in -connection to the “send-hook” command. It can be overridden +connection to the “send-hook” command. It can be overridden by use of the pgp menu, when encryption is not required or -signing is requested as well. If $smime_is_default is set, +signing is requested as well. If $smime_is_default is set, then OpenSSL is used instead to create S/MIME messages and settings can be overridden by use of the smime menu instead. (Crypto only) -

    3.37. crypt_autopgp

    Type: boolean
    +

    3.37. crypt_autopgp

    Type: boolean
    Default: yes

    This variable controls whether or not mutt may automatically enable -PGP encryption/signing for messages. See also $crypt_autoencrypt, -$crypt_replyencrypt, -$crypt_autosign, $crypt_replysign and $smime_is_default. -

    3.38. crypt_autosign

    Type: boolean
    +PGP encryption/signing for messages. See also $crypt_autoencrypt, +$crypt_replyencrypt, +$crypt_autosign, $crypt_replysign and $smime_is_default. +

    3.38. crypt_autosign

    Type: boolean
    Default: no

    Setting this variable will cause Mutt to always attempt to cryptographically sign outgoing messages. This can be overridden by use of the pgp menu, when signing is not required or -encryption is requested as well. If $smime_is_default is set, +encryption is requested as well. If $smime_is_default is set, then OpenSSL is used instead to create S/MIME messages and settings can be overridden by use of the smime menu instead of the pgp menu. (Crypto only) -

    3.39. crypt_autosmime

    Type: boolean
    +

    3.39. crypt_autosmime

    Type: boolean
    Default: yes

    This variable controls whether or not mutt may automatically enable -S/MIME encryption/signing for messages. See also $crypt_autoencrypt, -$crypt_replyencrypt, -$crypt_autosign, $crypt_replysign and $smime_is_default. -

    3.40. crypt_replyencrypt

    Type: boolean
    +S/MIME encryption/signing for messages. See also $crypt_autoencrypt, +$crypt_replyencrypt, +$crypt_autosign, $crypt_replysign and $smime_is_default. +

    3.40. crypt_replyencrypt

    Type: boolean
    Default: yes

    If set, automatically PGP or OpenSSL encrypt replies to messages which are encrypted. (Crypto only) -

    3.41. crypt_replysign

    Type: boolean
    +

    3.41. crypt_replysign

    Type: boolean
    Default: no

    If set, automatically PGP or OpenSSL sign replies to messages which are signed. @@ -4499,56 +4872,56 @@ signed. Note: this does not work on messages that are encrypted and signed! (Crypto only) -

    3.42. crypt_replysignencrypted

    Type: boolean
    +

    3.42. crypt_replysignencrypted

    Type: boolean
    Default: no

    If set, automatically PGP or OpenSSL sign replies to messages which are encrypted. This makes sense in combination with -$crypt_replyencrypt, because it allows you to sign all +$crypt_replyencrypt, because it allows you to sign all messages which are automatically encrypted. This works around -the problem noted in $crypt_replysign, that mutt is not able +the problem noted in $crypt_replysign, that mutt is not able to find out whether an encrypted message is also signed. (Crypto only) -

    3.43. crypt_timestamp

    Type: boolean
    +

    3.43. crypt_timestamp

    Type: boolean
    Default: yes

    If set, mutt will include a time stamp in the lines surrounding PGP or S/MIME output, so spoofing such lines is more difficult. If you are using colors to mark these lines, and rely on these, you may unset this setting. (Crypto only) -

    3.44. crypt_use_gpgme

    Type: boolean
    +

    3.44. crypt_use_gpgme

    Type: boolean
    Default: no

    This variable controls the use of the GPGME-enabled crypto backends. If it is set and Mutt was built with gpgme support, the gpgme code for S/MIME and PGP will be used instead of the classic code. Note that you need to set this option in .muttrc; it won't have any effect when used interactively. -

    3.45. crypt_use_pka

    Type: boolean
    +

    3.45. crypt_use_pka

    Type: boolean
    Default: no

    Controls whether mutt uses PKA (see http://www.g10code.de/docs/pka-intro.de.pdf) during signature verification (only supported by the GPGME backend). -

    3.46. crypt_verify_sig

    Type: quadoption
    +

    3.46. crypt_verify_sig

    Type: quadoption
    Default: yes

    -If “yes”, always attempt to verify PGP or S/MIME signatures. -If “ask-*”, ask whether or not to verify the signature. -If \Fi“no”, never attempt to verify cryptographic signatures. +If “yes”, always attempt to verify PGP or S/MIME signatures. +If “ask-*”, ask whether or not to verify the signature. +If “no”, never attempt to verify cryptographic signatures. (Crypto only) -

    3.47. date_format

    Type: string
    -Default: “!%a, %b %d, %Y at %I:%M:%S%p %Z”

    -This variable controls the format of the date printed by the “%d” -sequence in $index_format. This is passed to the strftime(3) +

    3.47. date_format

    Type: string
    +Default: “!%a, %b %d, %Y at %I:%M:%S%p %Z”

    +This variable controls the format of the date printed by the “%d” +sequence in $index_format. This is passed to the strftime(3) function to process the date, see the man page for the proper syntax.

    -Unless the first character in the string is a bang (“!”), the month +Unless the first character in the string is a bang (“!”), the month and week day names are expanded according to the locale specified in -the variable $locale. If the first character in the string is a +the variable $locale. If the first character in the string is a bang, the bang is discarded, and the month and week day names in the rest of the string are expanded in the C locale (that is in US English). -

    3.48. default_hook

    Type: string
    -Default: “˜f %s !˜P | (˜P ˜C %s)”

    -This variable controls how “message-hook”, “reply-hook”, “send-hook”, -“send2-hook”, “save-hook”, and “fcc-hook” will +

    3.48. default_hook

    Type: string
    +Default: “~f %s !~P | (~P ~C %s)”

    +This variable controls how “message-hook”, “reply-hook”, “send-hook”, +“send2-hook”, “save-hook”, and “fcc-hook” will be interpreted if they are specified with only a simple regexp, instead of a matching pattern. The hooks are expanded when they are declared, so a hook will be interpreted according to the value of this @@ -4557,33 +4930,33 @@ variable at the time the hook is declared. The default value matches if the message is either from a user matching the regular expression given, or if it is from you (if the from address matches -“alternates”) and is to or cc'ed to a user matching the given +“alternates”) and is to or cc'ed to a user matching the given regular expression. -

    3.49. delete

    Type: quadoption
    +

    3.49. delete

    Type: quadoption
    Default: ask-yes

    Controls whether or not messages are really deleted when closing or synchronizing a mailbox. If set to yes, messages marked for deleting will automatically be purged without prompting. If set to no, messages marked for deletion will be kept in the mailbox. -

    3.50. delete_untag

    Type: boolean
    +

    3.50. delete_untag

    Type: boolean
    Default: yes

    If this option is set, mutt will untag messages when marking them for deletion. This applies when you either explicitly delete a message, or when you save it to another folder. -

    3.51. digest_collapse

    Type: boolean
    +

    3.51. digest_collapse

    Type: boolean
    Default: yes

    If this option is set, mutt's received-attachments menu will not show the subparts of -individual messages in a multipart/digest. To see these subparts, press “v” on that menu. -

    3.52. display_filter

    Type: path
    +individual messages in a multipart/digest. To see these subparts, press “v” on that menu. +

    3.52. display_filter

    Type: path
    Default: (empty)

    When set, specifies a command used to filter messages. When a message -is viewed it is passed as standard input to $display_filter, and the +is viewed it is passed as standard input to $display_filter, and the filtered message is read from the standard output. -

    3.53. dotlock_program

    Type: path
    -Default: “/usr/local/bin/mutt_dotlock”

    +

    3.53. dotlock_program

    Type: path
    +Default: “/usr/local/bin/mutt_dotlock”

    Contains the path of the mutt_dotlock(8) binary to be used by mutt. -

    3.54. dsn_notify

    Type: string
    +

    3.54. dsn_notify

    Type: string
    Default: (empty)

    This variable sets the request for when notification is returned. The string consists of a comma separated list (no spaces!) of one or more @@ -4597,12 +4970,12 @@ Example:

     set dsn_notify="failure,delay"
     

    -Note: when using $sendmail for delivery, you should not enable +Note: when using $sendmail for delivery, you should not enable this unless you are either using Sendmail 8.8.x or greater or a MTA providing a sendmail(1)-compatible interface supporting the -N option -for DSN. For SMTP delivery, DSN support is autodetected so that it +for DSN. For SMTP delivery, DSN support is auto-detected so that it depends on the server whether DSN will be used or not. -

    3.55. dsn_return

    Type: string
    +

    3.55. dsn_return

    Type: string
    Default: (empty)

    This variable controls how much of your message is returned in DSN messages. It may be set to either hdrs to return just the @@ -4613,102 +4986,103 @@ Example:

     set dsn_return=hdrs
     

    -Note: when using $sendmail for delivery, you should not enable +Note: when using $sendmail for delivery, you should not enable this unless you are either using Sendmail 8.8.x or greater or a MTA providing a sendmail(1)-compatible interface supporting the -R option -for DSN. For SMTP delivery, DSN support is autodetected so that it +for DSN. For SMTP delivery, DSN support is auto-detected so that it depends on the server whether DSN will be used or not. -

    3.56. duplicate_threads

    Type: boolean
    +

    3.56. duplicate_threads

    Type: boolean
    Default: yes

    -This variable controls whether mutt, when $sort is set to threads, threads +This variable controls whether mutt, when $sort is set to threads, threads messages with the same Message-Id together. If it is set, it will indicate that it thinks they are duplicates of each other with an equals sign in the thread tree. -

    3.57. edit_headers

    Type: boolean
    +

    3.57. edit_headers

    Type: boolean
    Default: no

    This option allows you to edit the header of your outgoing messages along with the body of your message.

    Note that changes made to the References: and Date: headers are ignored for interoperability reasons. -

    3.58. editor

    Type: path
    +

    3.58. editor

    Type: path
    Default: (empty)

    This variable specifies which editor is used by mutt. It defaults to the value of the $VISUAL, or $EDITOR, environment -variable, or to the string “vi” if neither of those are set. -

    3.59. encode_from

    Type: boolean
    +variable, or to the string “vi” if neither of those are set. +

    3.59. encode_from

    Type: boolean
    Default: no

    When set, mutt will quoted-printable encode messages when -they contain the string “From ” (note the trailing space) in the beginning of a line. +they contain the string “From ” (note the trailing space) in the beginning of a line. This is useful to avoid the tampering certain mail delivery and transport agents tend to do with messages (in order to prevent tools from misinterpreting the line as a mbox message separator). -

    3.60. entropy_file

    Type: path
    +

    3.60. entropy_file

    Type: path
    Default: (empty)

    The file which includes random data that is used to initialize SSL library functions. -

    3.61. envelope_from_address

    Type: e-mail address
    +

    3.61. envelope_from_address

    Type: e-mail address
    Default: (empty)

    Manually sets the envelope sender for outgoing messages. -This value is ignored if $use_envelope_from is unset. -

    3.62. escape

    Type: string
    -Default: “˜”

    -Escape character to use for functions in the builtin editor. -

    3.63. fast_reply

    Type: boolean
    +This value is ignored if $use_envelope_from is unset. +

    3.62. escape

    Type: string
    +Default: “~”

    +Escape character to use for functions in the built-in editor. +

    3.63. fast_reply

    Type: boolean
    Default: no

    When set, the initial prompt for recipients and subject are skipped when replying to messages, and the initial prompt for subject is skipped when forwarding messages.

    -Note: this variable has no effect when the $autoedit +Note: this variable has no effect when the $autoedit variable is set. -

    3.64. fcc_attach

    Type: quadoption
    +

    3.64. fcc_attach

    Type: quadoption
    Default: yes

    This variable controls whether or not attachments on outgoing messages are saved along with the main body of your message. -

    3.65. fcc_clear

    Type: boolean
    +

    3.65. fcc_clear

    Type: boolean
    Default: no

    When this variable is set, FCCs will be stored unencrypted and unsigned, even when the actual message is encrypted and/or signed. (PGP only) -

    3.66. folder

    Type: path
    -Default: “˜/Mail”

    -Specifies the default location of your mailboxes. A “+” or “=” at the +

    3.66. folder

    Type: path
    +Default: “~/Mail”

    +Specifies the default location of your mailboxes. A “+” or “=” at the beginning of a pathname will be expanded to the value of this variable. Note that if you change this variable (from the default) value you need to make sure that the assignment occurs before -you use “+” or “=” for any other variables since expansion takes place -when handling the “mailboxes” command. -

    3.67. folder_format

    Type: string
    -Default: “%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f”

    +you use “+” or “=” for any other variables since expansion takes place +when handling the “mailboxes” command. +

    3.67. folder_format

    Type: string
    +Default: “%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f”

    This variable allows you to customize the file browser display to your -personal taste. This string is similar to $index_format, but has +personal taste. This string is similar to $index_format, but has its own set of printf(3)-like sequences:

    %C current file number
    %d date/time folder was last modified -
    %f filename (“/” is appended to directory names, -“@” to symbolic links and “*” to executable +
    %D date/time folder was last modified using $date_format. +
    %f filename (“/” is appended to directory names, +“@” to symbolic links and “*” to executable files)
    %F file permissions
    %g group name (or numeric gid, if missing)
    %l number of hard links
    %N N if folder has new mail, blank otherwise
    %s size in bytes -
    %t “*” if the file is tagged, blank otherwise +
    %t “*” if the file is tagged, blank otherwise
    %u owner name (or numeric uid, if missing) -
    %>X right justify the rest of the string and pad with character “X” -
    %|X pad to the end of the line with character “X” -
    %*X soft-fill with character “X” as pad +
    %>X right justify the rest of the string and pad with character “X” +
    %|X pad to the end of the line with character “X” +
    %*X soft-fill with character “X” as pad

    -For an explanation of “soft-fill”, see the $index_format documentation. -

    3.68. followup_to

    Type: boolean
    +For an explanation of “soft-fill”, see the $index_format documentation. +

    3.68. followup_to

    Type: boolean
    Default: yes

    -Controls whether or not the “Mail-Followup-To:” header field is +Controls whether or not the “Mail-Followup-To:” header field is generated when sending mail. When set, Mutt will generate this field when you are replying to a known mailing list, specified with -the “subscribe” or “lists” commands. +the “subscribe” or “lists” commands.

    This field has two purposes. First, preventing you from receiving duplicate copies of replies to messages which you send @@ -4722,72 +5096,72 @@ email address for unsubscribed lists. Without this header, a group reply to your message sent to a subscribed list will be sent to both the list and your address, resulting in two copies of the same email for you. -

    3.69. force_name

    Type: boolean
    +

    3.69. force_name

    Type: boolean
    Default: no

    -This variable is similar to $save_name, except that Mutt will +This variable is similar to $save_name, except that Mutt will store a copy of your outgoing message by the username of the address you are sending to even if that mailbox does not exist.

    -Also see the $record variable. -

    3.70. forward_decode

    Type: boolean
    +Also see the $record variable. +

    3.70. forward_decode

    Type: boolean
    Default: yes

    Controls the decoding of complex MIME messages into text/plain when forwarding a message. The message header is also RFC2047 decoded. -This variable is only used, if $mime_forward is unset, -otherwise $mime_forward_decode is used instead. -

    3.71. forward_decrypt

    Type: boolean
    +This variable is only used, if $mime_forward is unset, +otherwise $mime_forward_decode is used instead. +

    3.71. forward_decrypt

    Type: boolean
    Default: yes

    Controls the handling of encrypted messages when forwarding a message. When set, the outer layer of encryption is stripped off. This -variable is only used if $mime_forward is set and -$mime_forward_decode is unset. +variable is only used if $mime_forward is set and +$mime_forward_decode is unset. (PGP only) -

    3.72. forward_edit

    Type: quadoption
    +

    3.72. forward_edit

    Type: quadoption
    Default: yes

    This quadoption controls whether or not the user is automatically placed in the editor when forwarding messages. For those who always want -to forward with no modification, use a setting of “no”. -

    3.73. forward_format

    Type: string
    -Default: “[%a: %s]”

    +to forward with no modification, use a setting of “no”. +

    3.73. forward_format

    Type: string
    +Default: “[%a: %s]”

    This variable controls the default subject when forwarding a message. -It uses the same format sequences as the $index_format variable. -

    3.74. forward_quote

    Type: boolean
    +It uses the same format sequences as the $index_format variable. +

    3.74. forward_quote

    Type: boolean
    Default: no

    When set, forwarded messages included in the main body of the -message (when $mime_forward is unset) will be quoted using -$indent_string. -

    3.75. from

    Type: e-mail address
    +message (when $mime_forward is unset) will be quoted using +$indent_string. +

    3.75. from

    Type: e-mail address
    Default: (empty)

    When set, this variable contains a default from address. It -can be overridden using “my_hdr” (including from a “send-hook”) and -$reverse_name. This variable is ignored if $use_from is unset. +can be overridden using “my_hdr” (including from a “send-hook”) and +$reverse_name. This variable is ignored if $use_from is unset.

    This setting defaults to the contents of the environment variable $EMAIL. -

    3.76. gecos_mask

    Type: regular expression
    -Default: “^[^,]*”

    +

    3.76. gecos_mask

    Type: regular expression
    +Default: “^[^,]*”

    A regular expression used by mutt to parse the GECOS field of a password entry when expanding the alias. The default value -will return the string up to the first “,” encountered. -If the GECOS field contains a string like “lastname, firstname” then you -should set it to “.*”. +will return the string up to the first “,” encountered. +If the GECOS field contains a string like “lastname, firstname” then you +should set it to “.*”.

    This can be useful if you see the following behavior: you address an e-mail -to user ID “stevef” whose full name is “Steve Franklin”. If mutt expands -“stevef” to “"Franklin" stevef@foo.bar” then you should set the $gecos_mask to +to user ID “stevef” whose full name is “Steve Franklin”. If mutt expands +“stevef” to “"Franklin" stevef@foo.bar” then you should set the $gecos_mask to a regular expression that will match the whole name so mutt will expand -“Franklin” to “Franklin, Steve”. -

    3.77. hdrs

    Type: boolean
    +“Franklin” to “Franklin, Steve”. +

    3.77. hdrs

    Type: boolean
    Default: yes

    -When unset, the header fields normally added by the “my_hdr” +When unset, the header fields normally added by the “my_hdr” command are not created. This variable must be unset before composing a new message or replying in order to take effect. If set, the user defined header fields are added to every new message. -

    3.78. header

    Type: boolean
    +

    3.78. header

    Type: boolean
    Default: no

    When set, this variable causes Mutt to include the header of the message you are replying to into the edit buffer. -The $weed setting applies. -

    3.79. header_cache

    Type: path
    +The $weed setting applies. +

    3.79. header_cache

    Type: path
    Default: (empty)

    This variable points to the header cache database. If pointing to a directory Mutt will contain a header cache @@ -4796,22 +5170,22 @@ be a single global header cache. By default it is uns caching will be used.

    Header caching can greatly improve speed when opening POP, IMAP -MH or Maildir folders, see “caching” for details. -

    3.80. header_cache_compress

    Type: boolean
    +MH or Maildir folders, see “caching” for details. +

    3.80. header_cache_compress

    Type: boolean
    Default: yes

    When mutt is compiled with qdbm or tokyocabinet as header cache backend, this option determines whether the database will be compressed. Compression results in database files roughly being one fifth -of the usual diskspace, but the uncompression can result in a +of the usual diskspace, but the decompression can result in a slower opening of cached folder(s) which in general is still much faster than opening non header cached folders. -

    3.81. header_cache_pagesize

    Type: string
    -Default: “16384”

    +

    3.81. header_cache_pagesize

    Type: string
    +Default: “16384”

    When mutt is compiled with either gdbm or bdb4 as the header cache backend, this option changes the database page size. Too large or too small values can waste space, memory, or CPU time. The default should be more or less optimal for most use cases. -

    3.82. help

    Type: boolean
    +

    3.82. help

    Type: boolean
    Default: yes

    When set, help lines describing the bindings for the major functions provided by each menu are displayed on the first line of the screen. @@ -4821,95 +5195,95 @@ function is bound to a sequence rather than a single keystroke. Also, the help line may not be updated if a binding is changed while Mutt is running. Since this variable is primarily aimed at new users, neither of these should present a major problem. -

    3.83. hidden_host

    Type: boolean
    +

    3.83. hidden_host

    Type: boolean
    Default: no

    -When set, mutt will skip the host name part of $hostname variable +When set, mutt will skip the host name part of $hostname variable when adding the domain part to addresses. This variable does not affect the generation of Message-IDs, and it will not lead to the cut-off of first-level domains. -

    3.84. hide_limited

    Type: boolean
    +

    3.84. hide_limited

    Type: boolean
    Default: no

    When set, mutt will not show the presence of messages that are hidden by limiting, in the thread tree. -

    3.85. hide_missing

    Type: boolean
    +

    3.85. hide_missing

    Type: boolean
    Default: yes

    When set, mutt will not show the presence of missing messages in the thread tree. -

    3.86. hide_thread_subject

    Type: boolean
    +

    3.86. hide_thread_subject

    Type: boolean
    Default: yes

    When set, mutt will not show the subject of messages in the thread tree that have the same subject as their parent or closest previously displayed sibling. -

    3.87. hide_top_limited

    Type: boolean
    +

    3.87. hide_top_limited

    Type: boolean
    Default: no

    When set, mutt will not show the presence of messages that are hidden by limiting, at the top of threads in the thread tree. Note that when -$hide_limited is set, this option will have no effect. -

    3.88. hide_top_missing

    Type: boolean
    +$hide_limited is set, this option will have no effect. +

    3.88. hide_top_missing

    Type: boolean
    Default: yes

    When set, mutt will not show the presence of missing messages at the -top of threads in the thread tree. Note that when $hide_missing is +top of threads in the thread tree. Note that when $hide_missing is set, this option will have no effect. -

    3.89. history

    Type: number
    +

    3.89. history

    Type: number
    Default: 10

    This variable controls the size (in number of strings remembered) of the string history buffer per category. The buffer is cleared each time the variable is set. -

    3.90. history_file

    Type: path
    -Default: “˜/.mutthistory”

    +

    3.90. history_file

    Type: path
    +Default: “~/.mutthistory”

    The file in which Mutt will save its history. -

    3.91. honor_disposition

    Type: boolean
    +

    3.91. honor_disposition

    Type: boolean
    Default: no

    When set, Mutt will not display attachments with a -disposition of “attachment” inline even if it could +disposition of “attachment” inline even if it could render the part to plain text. These MIME parts can only be viewed from the attachment menu.

    If unset, Mutt will render all MIME parts it can properly transform to plain text. -

    3.92. honor_followup_to

    Type: quadoption
    +

    3.92. honor_followup_to

    Type: quadoption
    Default: yes

    This variable controls whether or not a Mail-Followup-To header is honored when group-replying to a message. -

    3.93. hostname

    Type: string
    +

    3.93. hostname

    Type: string
    Default: (empty)

    Specifies the fully-qualified hostname of the system mutt is running on containing the host's name and the DNS domain it belongs to. It is used -as the domain part (after “@”) for local email addresses as well as +as the domain part (after “@”) for local email addresses as well as Message-Id headers.

    Its value is determined at startup as follows: If the node's name as returned by the uname(3) function contains the hostname and the -domain, these are used to construct $hostname. If there is no -domain part returned, Mutt will look for a “domain” or “search” +domain, these are used to construct $hostname. If there is no +domain part returned, Mutt will look for a “domain” or “search” line in /etc/resolv.conf to determine the domain. Optionally, Mutt can be compiled with a fixed domain name in which case a detected one is not used.

    -Also see $use_domain and $hidden_host. -

    3.94. ignore_linear_white_space

    Type: boolean
    +Also see $use_domain and $hidden_host. +

    3.94. ignore_linear_white_space

    Type: boolean
    Default: no

    This option replaces linear-white-space between encoded-word and text to a single space to prevent the display of MIME-encoded -“Subject:” field from being divided into multiple lines. -

    3.95. ignore_list_reply_to

    Type: boolean
    +“Subject:” field from being divided into multiple lines. +

    3.95. ignore_list_reply_to

    Type: boolean
    Default: no

    -Affects the behaviour of the <reply> function when replying to -messages from mailing lists (as defined by the “subscribe” or -“lists” commands). When set, if the “Reply-To:” field is -set to the same value as the “To:” field, Mutt assumes that the -“Reply-To:” field was set by the mailing list to automate responses +Affects the behavior of the <reply> function when replying to +messages from mailing lists (as defined by the “subscribe” or +“lists” commands). When set, if the “Reply-To:” field is +set to the same value as the “To:” field, Mutt assumes that the +“Reply-To:” field was set by the mailing list to automate responses to the list, and will ignore this field. To direct a response to the mailing list when this option is set, use the <list-reply> function; <group-reply> will reply to both the sender and the list. -

    3.96. imap_authenticators

    Type: string
    +

    3.96. imap_authenticators

    Type: string
    Default: (empty)

    This is a colon-delimited list of authentication methods mutt may attempt to use to log in to an IMAP server, in the order mutt should -try them. Authentication methods are either “login” or the right -side of an IMAP “AUTH=xxx” capability string, eg “digest-md5”, “gssapi” -or “cram-md5”. This option is case-insensitive. If it's +try them. Authentication methods are either “login” or the right +side of an IMAP “AUTH=xxx” capability string, e.g. “digest-md5”, “gssapi” +or “cram-md5”. This option is case-insensitive. If it's unset (the default) mutt will try all available methods, in order from most-secure to least-secure.

    @@ -4921,37 +5295,37 @@ set imap_authenticators="gssapi:cram-md5:login" Note: Mutt will only fall back to other authentication methods if the previous methods are unavailable. If a method is available but authentication fails, mutt will not connect to the IMAP server. -

    3.97. imap_check_subscribed

    Type: boolean
    +

    3.97. imap_check_subscribed

    Type: boolean
    Default: no

    When set, mutt will fetch the set of subscribed folders from your server on connection, and add them to the set of mailboxes -it polls for new mail just as if you had issued individual “mailboxes” +it polls for new mail just as if you had issued individual “mailboxes” commands. -

    3.98. imap_delim_chars

    Type: string
    -Default: “/.”

    +

    3.98. imap_delim_chars

    Type: string
    +Default: “/.”

    This contains the list of characters which you would like to treat as folder separators for displaying IMAP paths. In particular it -helps in using the “=” shortcut for your folder variable. -

    3.99. imap_headers

    Type: string
    +helps in using the “=” shortcut for your folder variable. +

    3.99. imap_headers

    Type: string
    Default: (empty)

    Mutt requests these header fields in addition to the default headers -(“Date:”, “From:”, “Subject:”, “To:”, “Cc:”, “Message-Id:”, -“References:”, “Content-Type:”, “Content-Description:”, “In-Reply-To:”, -“Reply-To:”, “Lines:”, “List-Post:”, “X-Label:”) from IMAP +(“Date:”, “From:”, “Subject:”, “To:”, “Cc:”, “Message-Id:”, +“References:”, “Content-Type:”, “Content-Description:”, “In-Reply-To:”, +“Reply-To:”, “Lines:”, “List-Post:”, “X-Label:”) from IMAP servers before displaying the index menu. You may want to add more headers for spam detection.

    Note: This is a space separated list, items should be uppercase -and not contain the colon, e.g. “X-BOGOSITY X-SPAM-STATUS” for the -“X-Bogosity:” and “X-Spam-Status:” header fields. -

    3.100. imap_idle

    Type: boolean
    +and not contain the colon, e.g. “X-BOGOSITY X-SPAM-STATUS” for the +“X-Bogosity:” and “X-Spam-Status:” header fields. +

    3.100. imap_idle

    Type: boolean
    Default: no

    When set, mutt will attempt to use the IMAP IDLE extension to check for new mail in the current mailbox. Some servers (dovecot was the inspiration for this option) react badly to mutt's implementation. If your connection seems to freeze up periodically, try unsetting this. -

    3.101. imap_keepalive

    Type: number
    +

    3.101. imap_keepalive

    Type: number
    Default: 900

    This variable specifies the maximum amount of time in seconds that mutt will wait before polling open IMAP connections, to prevent the server @@ -4960,17 +5334,17 @@ well within the RFC-specified minimum amount of time (30 minutes) before a server is allowed to do this, but in practice the RFC does get violated every now and then. Reduce this number if you find yourself getting disconnected from your IMAP server due to inactivity. -

    3.102. imap_list_subscribed

    Type: boolean
    +

    3.102. imap_list_subscribed

    Type: boolean
    Default: no

    This variable configures whether IMAP folder browsing will look for only subscribed folders or all folders. This can be toggled in the IMAP browser with the <toggle-subscribed> function. -

    3.103. imap_login

    Type: string
    +

    3.103. imap_login

    Type: string
    Default: (empty)

    Your login name on the IMAP server.

    -This variable defaults to the value of $imap_user. -

    3.104. imap_pass

    Type: string
    +This variable defaults to the value of $imap_user. +

    3.104. imap_pass

    Type: string
    Default: (empty)

    Specifies the password for your IMAP account. If unset, Mutt will prompt you for your password when you invoke the <imap-fetch-mail> function @@ -4979,20 +5353,20 @@ or try to open an IMAP folder. Warning: you should only use this option when you are on a fairly secure machine, because the superuser can read your muttrc even if you are the only one who can read the file. -

    3.105. imap_passive

    Type: boolean
    +

    3.105. imap_passive

    Type: boolean
    Default: yes

    When set, mutt will not open new IMAP connections to check for new mail. Mutt will only check for new mail over existing IMAP connections. This is useful if you don't want to be prompted to user/password pairs on mutt invocation, or if opening the connection is slow. -

    3.106. imap_peek

    Type: boolean
    +

    3.106. imap_peek

    Type: boolean
    Default: yes

    When set, mutt will avoid implicitly marking your mail as read whenever you fetch a message from the server. This is generally a good thing, but can make closing an IMAP folder somewhat slower. This option exists to appease speed freaks. -

    3.107. imap_pipeline_depth

    Type: number
    +

    3.107. imap_pipeline_depth

    Type: number
    Default: 15

    Controls the number of IMAP commands that may be queued up before they are sent to the server. A deeper pipeline reduces the amount of time @@ -5001,51 +5375,51 @@ more responsive. But not all servers correctly handle pipelined commands, so if you have problems you might want to try setting this variable to 0.

    Note: Changes to this variable have no effect on open connections. -

    3.108. imap_servernoise

    Type: boolean
    +

    3.108. imap_servernoise

    Type: boolean
    Default: yes

    When set, mutt will display warning messages from the IMAP server as error messages. Since these messages are often harmless, or generated due to configuration problems on the server which are out of the users' hands, you may wish to suppress them at some point. -

    3.109. imap_user

    Type: string
    +

    3.109. imap_user

    Type: string
    Default: (empty)

    The name of the user whose mail you intend to access on the IMAP server.

    This variable defaults to your user name on the local machine. -

    3.110. implicit_autoview

    Type: boolean
    +

    3.110. implicit_autoview

    Type: boolean
    Default: no

    -If set to “yes”, mutt will look for a mailcap entry with the -“copiousoutput” flag set for every MIME attachment it doesn't have +If set to “yes”, mutt will look for a mailcap entry with the +“copiousoutput” flag set for every MIME attachment it doesn't have an internal viewer defined for. If such an entry is found, mutt will use the viewer defined in that entry to convert the body part to text form. -

    3.111. include

    Type: quadoption
    +

    3.111. include

    Type: quadoption
    Default: ask-yes

    Controls whether or not a copy of the message(s) you are replying to is included in your reply. -

    3.112. include_onlyfirst

    Type: boolean
    +

    3.112. include_onlyfirst

    Type: boolean
    Default: no

    Controls whether or not Mutt includes only the first attachment of the message you are replying. -

    3.113. indent_string

    Type: string
    -Default: “> ”

    +

    3.113. indent_string

    Type: string
    +Default: “> ”

    Specifies the string to prepend to each line of text quoted in a message to which you are replying. You are strongly encouraged not to change this value, as it tends to agitate the more fanatical netizens.

    -The value of this option is ignored if $text_flowed is set, too because +The value of this option is ignored if $text_flowed is set, too because the quoting mechanism is strictly defined for format=flowed.

    This option is a format string, please see the description of -$index_format for supported printf(3)-style sequences. -

    3.114. index_format

    Type: string
    -Default: “%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s”

    +$index_format for supported printf(3)-style sequences. +

    3.114. index_format

    Type: string
    +Default: “%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s”

    This variable allows you to customize the message index display to your personal taste.

    -“Format strings” are similar to the strings used in the C +“Format strings” are similar to the strings used in the C function printf(3) to format output (see the man page for more details). The following sequences are defined in Mutt: @@ -5056,9 +5430,9 @@ The following sequences are defined in Mutt:

    %c number of characters (bytes) in the message
    %C current message number
    %d date and time of the message in the format specified by -$date_format converted to sender's time zone +$date_format converted to sender's time zone
    %D date and time of the message in the format specified by -$date_format converted to the local time zone +$date_format converted to the local time zone
    %e current message number in thread
    %E number of messages in current thread
    %f sender (address + real name), either From: or Return-Path: @@ -5067,8 +5441,8 @@ The following sequences are defined in Mutt:
    %i message-id of the current message
    %l number of lines in the message (does not work with maildir, mh, and possibly IMAP folders) -
    %L If an address in the “To:” or “Cc:” header field matches an address -defined by the users “subscribe” command, this displays +
    %L If an address in the “To:” or “Cc:” header field matches an address +defined by the users “subscribe” command, this displays "To <list-name>", otherwise the same as %F.
    %m total number of message in the mailbox
    %M number of hidden messages if the thread is collapsed. @@ -5077,37 +5451,37 @@ defined by the users “su
    %O original save folder where mutt would formerly have stashed the message: list name or recipient name if not sent to a list -
    %P progress indicator for the builtin pager (how much of the file has been displayed) +
    %P progress indicator for the built-in pager (how much of the file has been displayed)
    %s subject of the message -
    %S status of the message (“N”/“D”/“d”/“!”/“r”/*) -
    %t “To:” field (recipients) -
    %T the appropriate character from the $to_chars string +
    %S status of the message (“N”/“D”/“d”/“!”/“r”/*) +
    %t “To:” field (recipients) +
    %T the appropriate character from the $to_chars string
    %u user (login) name of the author
    %v first name of the author, or the recipient if the message is from you
    %X number of attachments -(please see the “attachments” section for possible speed effects) -
    %y “X-Label:” field, if present -
    %Y “X-Label:” field, if present, and (1) not at part of a thread tree, -(2) at the top of a thread, or (3) “X-Label:” is different from -preceding message's “X-Label:”. +(please see the “attachments” section for possible speed effects) +
    %y “X-Label:” field, if present +
    %Y “X-Label:” field, if present, and (1) not at part of a thread tree, +(2) at the top of a thread, or (3) “X-Label:” is different from +preceding message's “X-Label:”.
    %Z message status flags
    %{fmt} the date and time of the message is converted to sender's -time zone, and “fmt” is expanded by the library function +time zone, and “fmt” is expanded by the library function strftime(3); a leading bang disables locales
    %[fmt] the date and time of the message is converted to the local -time zone, and “fmt” is expanded by the library function +time zone, and “fmt” is expanded by the library function strftime(3); a leading bang disables locales
    %(fmt) the local date and time when the message was received. -“fmt” is expanded by the library function strftime(3); +“fmt” is expanded by the library function strftime(3); a leading bang disables locales -
    %<fmt> the current local time. “fmt” is expanded by the library +
    %<fmt> the current local time. “fmt” is expanded by the library function strftime(3); a leading bang disables locales. -
    %>X right justify the rest of the string and pad with character “X” -
    %|X pad to the end of the line with character “X” -
    %*X soft-fill with character “X” as pad +
    %>X right justify the rest of the string and pad with character “X” +
    %|X pad to the end of the line with character “X” +
    %*X soft-fill with character “X” as pad

    -“Soft-fill” deserves some explanation: Normal right-justification -will print everything to the left of the “%>”, displaying padding and +“Soft-fill” deserves some explanation: Normal right-justification +will print everything to the left of the “%>”, displaying padding and whatever lies to the right only if there's room. By contrast, soft-fill gives priority to the right-hand side, guaranteeing space to display it and showing padding only if there's still room. If @@ -5115,28 +5489,37 @@ necessary, soft-fill will eat text leftwards to make room for rightward text.

    Note that these expandos are supported in -“save-hook”, “fcc-hook” and “fcc-save-hook”, too. -

    3.115. ispell

    Type: path
    -Default: “ispell”

    +“save-hook”, “fcc-hook” and “fcc-save-hook”, too. +

    3.115. ispell

    Type: path
    +Default: “ispell”

    How to invoke ispell (GNU's spell-checking software). -

    3.116. keep_flagged

    Type: boolean
    +

    3.116. keep_flagged

    Type: boolean
    Default: no

    If set, read messages marked as flagged will not be moved -from your spool mailbox to your $mbox mailbox, or as a result of -a “mbox-hook” command. -

    3.117. locale

    Type: string
    -Default: “C”

    +from your spool mailbox to your $mbox mailbox, or as a result of +a “mbox-hook” command. +

    3.117. locale

    Type: string
    +Default: “C”

    The locale used by strftime(3) to format dates. Legal values are the strings your system accepts for the locale environment variable $LC_TIME. -

    3.118. mail_check

    Type: number
    +

    3.118. mail_check

    Type: number
    Default: 5

    This variable configures how often (in seconds) mutt should look for -new mail. Also see the $timeout variable. -

    3.119. mailcap_path

    Type: string
    +new mail. Also see the $timeout variable. +

    3.119. mail_check_recent

    Type: boolean
    +Default: yes

    +When set, Mutt will only notify you about new mail that has been received +since the last time you opened the mailbox. When unset, Mutt will notify you +if any new mail exists in the mailbox, regardless of whether you have visited it +recently. +

    +When $mark_old is set, Mutt does not consider the mailbox to contain new +mail if only old messages exist. +

    3.120. mailcap_path

    Type: string
    Default: (empty)

    This variable specifies which files to consult when attempting to display MIME bodies not directly supported by Mutt. -

    3.120. mailcap_sanitize

    Type: boolean
    +

    3.121. mailcap_sanitize

    Type: boolean
    Default: yes

    If set, mutt will restrict possible characters in mailcap % expandos to a well-defined set of safe characters. This is the safe setting, @@ -5144,69 +5527,69 @@ but we are not sure it doesn't break some more advanced MIME stuff.

    DON'T CHANGE THIS SETTING UNLESS YOU ARE REALLY SURE WHAT YOU ARE DOING! -

    3.121. maildir_header_cache_verify

    Type: boolean
    +

    3.122. maildir_header_cache_verify

    Type: boolean
    Default: yes

    Check for Maildir unaware programs other than mutt having modified maildir files when the header cache is in use. This incurs one stat(2) per message every time the folder is opened (which can be very slow for NFS folders). -

    3.122. maildir_trash

    Type: boolean
    +

    3.123. maildir_trash

    Type: boolean
    Default: no

    If set, messages marked as deleted will be saved with the maildir trashed flag instead of unlinked. Note: this only applies to maildir-style mailboxes. Setting it will have no effect on other mailbox types. -

    3.123. mark_old

    Type: boolean
    +

    3.124. mark_old

    Type: boolean
    Default: yes

    Controls whether or not mutt marks new unread messages as old if you exit a mailbox without reading them. With this option set, the next time you start mutt, the messages -will show up with an “O” next to them in the index menu, +will show up with an “O” next to them in the index menu, indicating that they are old. -

    3.124. markers

    Type: boolean
    +

    3.125. markers

    Type: boolean
    Default: yes

    Controls the display of wrapped lines in the internal pager. If set, a -“+” marker is displayed at the beginning of wrapped lines. +“+” marker is displayed at the beginning of wrapped lines.

    -Also see the $smart_wrap variable. -

    3.125. mask

    Type: regular expression
    -Default: “!^\.[^.]”

    +Also see the $smart_wrap variable. +

    3.126. mask

    Type: regular expression
    +Default: “!^\.[^.]”

    A regular expression used in the file browser, optionally preceded by -the not operator “!”. Only files whose names match this mask +the not operator “!”. Only files whose names match this mask will be shown. The match is always case-sensitive. -

    3.126. mbox

    Type: path
    -Default: “˜/mbox”

    -This specifies the folder into which read mail in your $spoolfile +

    3.127. mbox

    Type: path
    +Default: “~/mbox”

    +This specifies the folder into which read mail in your $spoolfile folder will be appended.

    -Also see the $move variable. -

    3.127. mbox_type

    Type: folder magic
    +Also see the $move variable. +

    3.128. mbox_type

    Type: folder magic
    Default: mbox

    The default mailbox type used when creating new folders. May be any of -“mbox”, “MMDF”, “MH” and “Maildir”. This is overriden by the +“mbox”, “MMDF”, “MH” and “Maildir”. This is overridden by the -m command-line option. -

    3.128. menu_context

    Type: number
    +

    3.129. menu_context

    Type: number
    Default: 0

    This variable controls the number of lines of context that are given -when scrolling through menus. (Similar to $pager_context.) -

    3.129. menu_move_off

    Type: boolean
    +when scrolling through menus. (Similar to $pager_context.) +

    3.130. menu_move_off

    Type: boolean
    Default: yes

    When unset, the bottom entry of menus will never scroll up past the bottom of the screen, unless there are less entries than lines. When set, the bottom entry may move off the bottom. -

    3.130. menu_scroll

    Type: boolean
    +

    3.131. menu_scroll

    Type: boolean
    Default: no

    When set, menus will be scrolled up or down one line when you attempt to move across a screen boundary. If unset, the screen is cleared and the next or previous page of the menu is displayed (useful for slow links to avoid many redraws). -

    3.131. message_cache_clean

    Type: boolean
    +

    3.132. message_cache_clean

    Type: boolean
    Default: no

    If set, mutt will clean out obsolete entries from the message cache when the mailbox is synchronized. You probably only want to set it every once in a while, since it can be a little slow (especially for large folders). -

    3.132. message_cachedir

    Type: path
    +

    3.133. message_cachedir

    Type: path
    Default: (empty)

    Set this to a directory and mutt will cache copies of messages from your IMAP and POP servers here. You are free to remove entries at any @@ -5216,65 +5599,65 @@ When setting this variable to a directory, mutt needs to fetch every remote message only once and can perform regular expression searches as fast as for local folders.

    -Also see the $message_cache_clean variable. -

    3.133. message_format

    Type: string
    -Default: “%s”

    -This is the string displayed in the “attachment” menu for +Also see the $message_cache_clean variable. +

    3.134. message_format

    Type: string
    +Default: “%s”

    +This is the string displayed in the “attachment” menu for attachments of type message/rfc822. For a full listing of defined -printf(3)-like sequences see the section on $index_format. -

    3.134. meta_key

    Type: boolean
    +printf(3)-like sequences see the section on $index_format. +

    3.135. meta_key

    Type: boolean
    Default: no

    If set, forces Mutt to interpret keystrokes with the high bit (bit 8) set as if the user had pressed the Esc key and whatever key remains after having the high bit removed. For example, if the key pressed has an ASCII value of 0xf8, then this is treated as if the user had -pressed Esc then “x”. This is because the result of removing the +pressed Esc then “x”. This is because the result of removing the high bit from 0xf8 is 0x78, which is the ASCII character -“x”. -

    3.135. metoo

    Type: boolean
    +“x”. +

    3.136. metoo

    Type: boolean
    Default: no

    -If unset, Mutt will remove your address (see the “alternates” +If unset, Mutt will remove your address (see the “alternates” command) from the list of recipients when replying to a message. -

    3.136. mh_purge

    Type: boolean
    +

    3.137. mh_purge

    Type: boolean
    Default: no

    -When unset, mutt will mimic mh's behaviour and rename deleted messages +When unset, mutt will mimic mh's behavior and rename deleted messages to ,<old file name> in mh folders instead of really deleting them. This leaves the message on disk but makes programs reading the folder ignore it. If the variable is set, the message files will simply be deleted.

    -This option is similar to $maildir_trash for Maildir folders. -

    3.137. mh_seq_flagged

    Type: string
    -Default: “flagged”

    +This option is similar to $maildir_trash for Maildir folders. +

    3.138. mh_seq_flagged

    Type: string
    +Default: “flagged”

    The name of the MH sequence used for flagged messages. -

    3.138. mh_seq_replied

    Type: string
    -Default: “replied”

    +

    3.139. mh_seq_replied

    Type: string
    +Default: “replied”

    The name of the MH sequence used to tag replied messages. -

    3.139. mh_seq_unseen

    Type: string
    -Default: “unseen”

    +

    3.140. mh_seq_unseen

    Type: string
    +Default: “unseen”

    The name of the MH sequence used for unseen messages. -

    3.140. mime_forward

    Type: quadoption
    +

    3.141. mime_forward

    Type: quadoption
    Default: no

    When set, the message you are forwarding will be attached as a separate message/rfc822 MIME part instead of included in the main body of the message. This is useful for forwarding MIME messages so the receiver can properly view the message as it was delivered to you. If you like to switch between MIME and not MIME from mail to mail, set this -variable to “ask-no” or “ask-yes”. +variable to “ask-no” or “ask-yes”.

    -Also see $forward_decode and $mime_forward_decode. -

    3.141. mime_forward_decode

    Type: boolean
    +Also see $forward_decode and $mime_forward_decode. +

    3.142. mime_forward_decode

    Type: boolean
    Default: no

    Controls the decoding of complex MIME messages into text/plain when -forwarding a message while $mime_forward is set. Otherwise -$forward_decode is used instead. -

    3.142. mime_forward_rest

    Type: quadoption
    +forwarding a message while $mime_forward is set. Otherwise +$forward_decode is used instead. +

    3.143. mime_forward_rest

    Type: quadoption
    Default: yes

    When forwarding multiple attachments of a MIME message from the attachment menu, attachments which cannot be decoded in a reasonable manner will be attached to the newly composed message if this option is set. -

    3.143. mix_entry_format

    Type: string
    -Default: “%4n %c %-16s %a”

    +

    3.144. mix_entry_format

    Type: string
    +Default: “%4n %c %-16s %a”

    This variable describes the format of a remailer line on the mixmaster chain selection screen. The following printf(3)-like sequences are supported: @@ -5283,32 +5666,32 @@ supported: %c Remailer capabilities. %s The remailer's short name. %a The remailer's e-mail address. -

    3.144. mixmaster

    Type: path
    -Default: “mixmaster”

    +

    3.145. mixmaster

    Type: path
    +Default: “mixmaster”

    This variable contains the path to the Mixmaster binary on your system. It is used with various sets of parameters to gather the list of known remailers, and to finally send a message through the mixmaster chain. -

    3.145. move

    Type: quadoption
    +

    3.146. move

    Type: quadoption
    Default: no

    Controls whether or not Mutt will move read messages -from your spool mailbox to your $mbox mailbox, or as a result of -a “mbox-hook” command. -

    3.146. narrow_tree

    Type: boolean
    +from your spool mailbox to your $mbox mailbox, or as a result of +a “mbox-hook” command. +

    3.147. narrow_tree

    Type: boolean
    Default: no

    This variable, when set, makes the thread tree narrower, allowing deeper threads to fit on the screen. -

    3.147. net_inc

    Type: number
    +

    3.148. net_inc

    Type: number
    Default: 10

    Operations that expect to transfer a large amount of data over the -network will update their progress every $net_inc kilobytes. +network will update their progress every $net_inc kilobytes. If set to 0, no progress messages will be displayed.

    -See also $read_inc, $write_inc and $net_inc. -

    3.148. pager

    Type: path
    -Default: “builtin”

    +See also $read_inc, $write_inc and $net_inc. +

    3.149. pager

    Type: path
    +Default: “builtin”

    This variable specifies which pager you would like to use to view -messages. The value “builtin” means to use the builtin pager, otherwise this +messages. The value “builtin” means to use the built-in pager, otherwise this variable should specify the pathname of the external pager you would like to use.

    @@ -5316,7 +5699,7 @@ Using an external pager may have some disadvantages: Additional keystrokes are necessary because you can't call mutt functions directly from the pager, and screen resizes cause lines longer than the screen width to be badly formatted in the help menu. -

    3.149. pager_context

    Type: number
    +

    3.150. pager_context

    Type: number
    Default: 0

    This variable controls the number of lines of context that are given when displaying the next or previous page in the internal pager. By @@ -5326,13 +5709,13 @@ at the top of the next page (0 lines of context). This variable also specifies the amount of context given for search results. If positive, this many lines will be given before a match, if 0, the match will be top-aligned. -

    3.150. pager_format

    Type: string
    -Default: “-%Z- %C/%m: %-20.20n   %s%*  -- (%P)”

    -This variable controls the format of the one-line message “status” +

    3.151. pager_format

    Type: string
    +Default: “-%Z- %C/%m: %-20.20n   %s%*  -- (%P)”

    +This variable controls the format of the one-line message “status” displayed before each message in either the internal or an external -pager. The valid sequences are listed in the $index_format +pager. The valid sequences are listed in the $index_format section. -

    3.151. pager_index_lines

    Type: number
    +

    3.152. pager_index_lines

    Type: number
    Default: 0

    Determines the number of lines of a mini-index which is shown when in the pager. The current message, unless near the top or bottom of the @@ -5343,14 +5726,14 @@ remain to be read in the current thread. One of the lines is reserved for the status bar from the index, so a setting of 6 will only show 5 lines of the actual index. A value of 0 results in no index being shown. If the number of messages in the current folder -is less than $pager_index_lines, then the index will only use as +is less than $pager_index_lines, then the index will only use as many lines as it needs. -

    3.152. pager_stop

    Type: boolean
    +

    3.153. pager_stop

    Type: boolean
    Default: no

    When set, the internal-pager will not move to the next message when you are at the end of a message and invoke the <next-page> function. -

    3.153. pgp_auto_decode

    Type: boolean
    +

    3.154. pgp_auto_decode

    Type: boolean
    Default: no

    If set, mutt will automatically attempt to decrypt traditional PGP messages whenever the user performs an operation which ordinarily would @@ -5358,7 +5741,7 @@ result in the contents of the message being operated on. For example, if the user displays a pgp-traditional message which has not been manually checked with the <check-traditional-pgp> function, mutt will automatically check the message for traditional pgp. -

    3.154. pgp_autoinline

    Type: boolean
    +

    3.155. pgp_autoinline

    Type: boolean
    Default: no

    This option controls whether Mutt generates old-style inline (traditional) PGP encrypted or signed messages under certain @@ -5370,27 +5753,27 @@ which consist of more than a single MIME part. Mutt can be configured to ask before sending PGP/MIME messages when inline (traditional) would not work.

    -Also see the $pgp_mime_auto variable. +Also see the $pgp_mime_auto variable.

    Also note that using the old-style PGP message format is strongly deprecated. (PGP only) -

    3.155. pgp_check_exit

    Type: boolean
    +

    3.156. pgp_check_exit

    Type: boolean
    Default: yes

    If set, mutt will check the exit code of the PGP subprocess when signing or encrypting. A non-zero exit code means that the subprocess failed. (PGP only) -

    3.156. pgp_clearsign_command

    Type: string
    +

    3.157. pgp_clearsign_command

    Type: string
    Default: (empty)

    -This format is used to create an old-style “clearsigned” PGP +This format is used to create an old-style “clearsigned” PGP message. Note that the use of this format is strongly deprecated.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.157. pgp_decode_command

    Type: string
    +

    3.158. pgp_decode_command

    Type: string
    Default: (empty)

    This format strings specifies a command which is used to decode application/pgp attachments. @@ -5402,7 +5785,7 @@ string otherwise. Note: This may be used with a %? construct. %f Expands to the name of a file containing a message. %s Expands to the name of a file containing the signature part of a multipart/signed attachment when verifying it. -%a The value of $pgp_sign_as. +%a The value of $pgp_sign_as. %r One or more key IDs.

    For examples on how to configure these formats for the various versions @@ -5410,31 +5793,31 @@ of PGP which are floating around, see the pgp and gpg sample configuration files the samples/ subdirectory which has been installed on your system alongside the documentation. (PGP only) -

    3.158. pgp_decrypt_command

    Type: string
    +

    3.159. pgp_decrypt_command

    Type: string
    Default: (empty)

    This command is used to decrypt a PGP encrypted message.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.159. pgp_encrypt_only_command

    Type: string
    +

    3.160. pgp_encrypt_only_command

    Type: string
    Default: (empty)

    This command is used to encrypt a body part without signing it.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.160. pgp_encrypt_sign_command

    Type: string
    +

    3.161. pgp_encrypt_sign_command

    Type: string
    Default: (empty)

    This command is used to both sign and encrypt a body part.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.161. pgp_entry_format

    Type: string
    -Default: “%4n %t%f %4l/0x%k %-4a %2c %u”

    +

    3.162. pgp_entry_format

    Type: string
    +Default: “%4n %t%f %4l/0x%k %-4a %2c %u”

    This variable allows you to customize the PGP key selection menu to -your personal taste. This string is similar to $index_format, but +your personal taste. This string is similar to $index_format, but has its own set of printf(3)-like sequences:

    %n number @@ -5448,42 +5831,42 @@ has its own set of printf(3)-like sequences:
    %[<s>] date of the key where <s> is an strftime(3) expression

    (PGP only) -

    3.162. pgp_export_command

    Type: string
    +

    3.163. pgp_export_command

    Type: string
    Default: (empty)

    This command is used to export a public key from the user's key ring.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.163. pgp_getkeys_command

    Type: string
    +

    3.164. pgp_getkeys_command

    Type: string
    Default: (empty)

    This command is invoked whenever mutt will need public key information. -Of the sequences supported by $pgp_decode_command, %r is the only +Of the sequences supported by $pgp_decode_command, %r is the only printf(3)-like sequence used with this format. (PGP only) -

    3.164. pgp_good_sign

    Type: regular expression
    +

    3.165. pgp_good_sign

    Type: regular expression
    Default: (empty)

    If you assign a text to this variable, then a PGP signature is only -considered verified if the output from $pgp_verify_command contains +considered verified if the output from $pgp_verify_command contains the text. Use this variable if the exit code from the command is 0 even for bad signatures. (PGP only) -

    3.165. pgp_ignore_subkeys

    Type: boolean
    +

    3.166. pgp_ignore_subkeys

    Type: boolean
    Default: yes

    Setting this variable will cause Mutt to ignore OpenPGP subkeys. Instead, the principal key will inherit the subkeys' capabilities. Unset this if you want to play interesting key selection games. (PGP only) -

    3.166. pgp_import_command

    Type: string
    +

    3.167. pgp_import_command

    Type: string
    Default: (empty)

    This command is used to import a key from a message into the user's public key ring.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.167. pgp_list_pubring_command

    Type: string
    +

    3.168. pgp_list_pubring_command

    Type: string
    Default: (empty)

    This command is used to list the public key ring's contents. The output format must be analogous to the one used by @@ -5494,10 +5877,10 @@ gpg --list-keys --with-colons. This format is also generated by the pgpring utility which comes with mutt.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.168. pgp_list_secring_command

    Type: string
    +

    3.169. pgp_list_secring_command

    Type: string
    Default: (empty)

    This command is used to list the secret key ring's contents. The output format must be analogous to the one used by: @@ -5508,14 +5891,14 @@ gpg --list-keys --with-colons. This format is also generated by the pgpring utility which comes with mutt.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.169. pgp_long_ids

    Type: boolean
    +

    3.170. pgp_long_ids

    Type: boolean
    Default: no

    If set, use 64 bit PGP key IDs, if unset use the normal 32 bit key IDs. (PGP only) -

    3.170. pgp_mime_auto

    Type: quadoption
    +

    3.171. pgp_mime_auto

    Type: quadoption
    Default: ask-yes

    This option controls whether Mutt will prompt you for automatically sending a (signed/encrypted) message using @@ -5524,7 +5907,7 @@ PGP/MIME when inline (traditional) fails (for any reason). Also note that using the old-style PGP message format is strongly deprecated. (PGP only) -

    3.171. pgp_replyinline

    Type: boolean
    +

    3.172. pgp_replyinline

    Type: boolean
    Default: no

    Setting this variable will cause Mutt to always attempt to create an inline (traditional) message when replying to a @@ -5539,12 +5922,12 @@ which consist of more than a single MIME part. Mutt can be configured to ask before sending PGP/MIME messages when inline (traditional) would not work.

    -Also see the $pgp_mime_auto variable. +Also see the $pgp_mime_auto variable.

    Also note that using the old-style PGP message format is strongly deprecated. (PGP only) -

    3.172. pgp_retainable_sigs

    Type: boolean
    +

    3.173. pgp_retainable_sigs

    Type: boolean
    Default: no

    If set, signed and encrypted messages will consist of nested multipart/signed and multipart/encrypted body parts. @@ -5553,27 +5936,27 @@ This is useful for applications like encrypted and signed mailing lists, where the outer layer (multipart/encrypted) can be easily removed, while the inner multipart/signed part is retained. (PGP only) -

    3.173. pgp_show_unusable

    Type: boolean
    +

    3.174. pgp_show_unusable

    Type: boolean
    Default: yes

    If set, mutt will display non-usable keys on the PGP key selection menu. This includes keys which have been revoked, have expired, or -have been marked as “disabled” by the user. +have been marked as “disabled” by the user. (PGP only) -

    3.174. pgp_sign_as

    Type: string
    +

    3.175. pgp_sign_as

    Type: string
    Default: (empty)

    If you have more than one key pair, this option allows you to specify which of your private keys to use. It is recommended that you use the keyid form to specify your key (e.g. 0x00112233). (PGP only) -

    3.175. pgp_sign_command

    Type: string
    +

    3.176. pgp_sign_command

    Type: string
    Default: (empty)

    This command is used to create the detached PGP signature for a multipart/signed PGP/MIME body part.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.176. pgp_sort_keys

    Type: sort order
    +

    3.177. pgp_sort_keys

    Type: sort order
    Default: address

    Specifies how the entries in the pgp menu are sorted. The following are legal values: @@ -5584,69 +5967,69 @@ following are legal values: trust sort by the trust of the key

    If you prefer reverse order of the above values, prefix it with -“reverse-”. +“reverse-”. (PGP only) -

    3.177. pgp_strict_enc

    Type: boolean
    +

    3.178. pgp_strict_enc

    Type: boolean
    Default: yes

    If set, Mutt will automatically encode PGP/MIME signed messages as quoted-printable. Please note that unsetting this variable may lead to problems with non-verifyable PGP signatures, so only change this if you know what you are doing. (PGP only) -

    3.178. pgp_timeout

    Type: number
    +

    3.179. pgp_timeout

    Type: number
    Default: 300

    The number of seconds after which a cached passphrase will expire if not used. (PGP only) -

    3.179. pgp_use_gpg_agent

    Type: boolean
    +

    3.180. pgp_use_gpg_agent

    Type: boolean
    Default: no

    If set, mutt will use a possibly-running gpg-agent(1) process. (PGP only) -

    3.180. pgp_verify_command

    Type: string
    +

    3.181. pgp_verify_command

    Type: string
    Default: (empty)

    This command is used to verify PGP signatures.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.181. pgp_verify_key_command

    Type: string
    +

    3.182. pgp_verify_key_command

    Type: string
    Default: (empty)

    This command is used to verify key information from the key selection menu.

    -This is a format string, see the $pgp_decode_command command for +This is a format string, see the $pgp_decode_command command for possible printf(3)-like sequences. (PGP only) -

    3.182. pipe_decode

    Type: boolean
    +

    3.183. pipe_decode

    Type: boolean
    Default: no

    Used in connection with the <pipe-message> command. When unset, Mutt will pipe the messages without any preprocessing. When set, Mutt will weed headers and will attempt to decode the messages first. -

    3.183. pipe_sep

    Type: string
    -Default: “\n”

    +

    3.184. pipe_sep

    Type: string
    +Default: “\n”

    The separator to add between messages when piping a list of tagged messages to an external Unix command. -

    3.184. pipe_split

    Type: boolean
    +

    3.185. pipe_split

    Type: boolean
    Default: no

    Used in connection with the <pipe-message> function following <tag-prefix>. If this variable is unset, when piping a list of tagged messages Mutt will concatenate the messages and will pipe them all concatenated. When set, Mutt will pipe the messages one by one. In both cases the messages are piped in the current sorted order, -and the $pipe_sep separator is added after each message. -

    3.185. pop_auth_try_all

    Type: boolean
    +and the $pipe_sep separator is added after each message. +

    3.186. pop_auth_try_all

    Type: boolean
    Default: yes

    If set, Mutt will try all available authentication methods. When unset, Mutt will only fall back to other authentication methods if the previous methods are unavailable. If a method is available but authentication fails, Mutt will not connect to the POP server. -

    3.186. pop_authenticators

    Type: string
    +

    3.187. pop_authenticators

    Type: string
    Default: (empty)

    This is a colon-delimited list of authentication methods mutt may attempt to use to log in to an POP server, in the order mutt should -try them. Authentication methods are either “user”, “apop” or any -SASL mechanism, eg “digest-md5”, “gssapi” or “cram-md5”. +try them. Authentication methods are either “user”, “apop” or any +SASL mechanism, e.g. “digest-md5”, “gssapi” or “cram-md5”. This option is case-insensitive. If this option is unset (the default) mutt will try all available methods, in order from most-secure to least-secure. @@ -5655,30 +6038,30 @@ Example:

     set pop_authenticators="digest-md5:apop:user"
    -

    3.187. pop_checkinterval

    Type: number
    +

    3.188. pop_checkinterval

    Type: number
    Default: 60

    This variable configures how often (in seconds) mutt should look for new mail in the currently selected mailbox if it is a POP mailbox. -

    3.188. pop_delete

    Type: quadoption
    +

    3.189. pop_delete

    Type: quadoption
    Default: ask-no

    If set, Mutt will delete successfully downloaded messages from the POP server when using the <fetch-mail> function. When unset, Mutt will download messages but also leave them on the POP server. -

    3.189. pop_host

    Type: string
    +

    3.190. pop_host

    Type: string
    Default: (empty)

    The name of your POP server for the <fetch-mail> function. You -can also specify an alternative port, username and password, ie: +can also specify an alternative port, username and password, i.e.:

     [pop[s]://][username[:password]@]popserver[:port]
     

    -where “[...]” denotes an optional part. -

    3.190. pop_last

    Type: boolean
    +where “[...]” denotes an optional part. +

    3.191. pop_last

    Type: boolean
    Default: no

    -If this variable is set, mutt will try to use the “LAST” POP command +If this variable is set, mutt will try to use the “LAST” POP command for retrieving only unread messages from the POP server when using the <fetch-mail> function. -

    3.191. pop_pass

    Type: string
    +

    3.192. pop_pass

    Type: string
    Default: (empty)

    Specifies the password for your POP account. If unset, Mutt will prompt you for your password when you open a POP mailbox. @@ -5686,33 +6069,33 @@ prompt you for your password when you open a POP mailbox. Warning: you should only use this option when you are on a fairly secure machine, because the superuser can read your muttrc even if you are the only one who can read the file. -

    3.192. pop_reconnect

    Type: quadoption
    +

    3.193. pop_reconnect

    Type: quadoption
    Default: ask-yes

    Controls whether or not Mutt will try to reconnect to the POP server if the connection is lost. -

    3.193. pop_user

    Type: string
    +

    3.194. pop_user

    Type: string
    Default: (empty)

    Your login name on the POP server.

    This variable defaults to your user name on the local machine. -

    3.194. post_indent_string

    Type: string
    +

    3.195. post_indent_string

    Type: string
    Default: (empty)

    -Similar to the $attribution variable, Mutt will append this +Similar to the $attribution variable, Mutt will append this string after the inclusion of a message which is being replied to. -

    3.195. postpone

    Type: quadoption
    +

    3.196. postpone

    Type: quadoption
    Default: ask-yes

    -Controls whether or not messages are saved in the $postponed +Controls whether or not messages are saved in the $postponed mailbox when you elect not to send immediately.

    -Also see the $recall variable. -

    3.196. postponed

    Type: path
    -Default: “˜/postponed”

    -Mutt allows you to indefinitely “postpone sending a message” which +Also see the $recall variable. +

    3.197. postponed

    Type: path
    +Default: “~/postponed”

    +Mutt allows you to indefinitely “postpone sending a message” which you are editing. When you choose to postpone a message, Mutt saves it in the mailbox specified by this variable.

    -Also see the $postpone variable. -

    3.197. preconnect

    Type: string
    +Also see the $postpone variable. +

    3.198. preconnect

    Type: string
    Default: (empty)

    If set, a shell command to be executed if mutt fails to establish a connection to the server. This is useful for setting up secure @@ -5723,88 +6106,91 @@ status, mutt gives up opening the server. Example: set preconnect="ssh -f -q -L 1234:mailhost.net:143 mailhost.net \ sleep 20 < /dev/null > /dev/null"

    -Mailbox “foo” on “mailhost.net” can now be reached -as “{localhost:1234}foo”. +Mailbox “foo” on “mailhost.net” can now be reached +as “{localhost:1234}foo”.

    Note: For this example to work, you must be able to log in to the remote machine without having to enter a password. -

    3.198. print

    Type: quadoption
    +

    3.199. print

    Type: quadoption
    Default: ask-no

    Controls whether or not Mutt really prints messages. -This is set to “ask-no” by default, because some people -accidentally hit “p” often. -

    3.199. print_command

    Type: path
    -Default: “lpr”

    +This is set to “ask-no” by default, because some people +accidentally hit “p” often. +

    3.200. print_command

    Type: path
    +Default: “lpr”

    This specifies the command pipe that should be used to print messages. -

    3.200. print_decode

    Type: boolean
    +

    3.201. print_decode

    Type: boolean
    Default: yes

    Used in connection with the <print-message> command. If this option is set, the message is decoded before it is passed to the -external command specified by $print_command. If this option +external command specified by $print_command. If this option is unset, no processing will be applied to the message when printing it. The latter setting may be useful if you are using some advanced printer filter which is able to properly format e-mail messages for printing. -

    3.201. print_split

    Type: boolean
    +

    3.202. print_split

    Type: boolean
    Default: no

    Used in connection with the <print-message> command. If this option -is set, the command specified by $print_command is executed once for +is set, the command specified by $print_command is executed once for each message which is to be printed. If this option is unset, -the command specified by $print_command is executed only once, and +the command specified by $print_command is executed only once, and all the messages are concatenated, with a form feed as the message separator.

    Those who use the enscript(1) program's mail-printing mode will most likely want to set this option. -

    3.202. prompt_after

    Type: boolean
    +

    3.203. prompt_after

    Type: boolean
    Default: yes

    -If you use an external $pager, setting this variable will +If you use an external $pager, setting this variable will cause Mutt to prompt you for a command when the pager exits rather than returning to the index menu. If unset, Mutt will return to the index menu when the external pager exits. -

    3.203. query_command

    Type: path
    +

    3.204. query_command

    Type: path
    Default: (empty)

    -This specifies the command that mutt will use to make external address -queries. The string should contain a “%s”, which will be substituted -with the query string the user types. See “query” for more -information. -

    3.204. query_format

    Type: string
    -Default: “%4c %t %-25.25a %-25.25n %?e?(%e)?”

    -This variable describes the format of the “query” menu. The +This specifies the command Mutt will use to make external address +queries. The string may contain a “%s”, which will be substituted +with the query string the user types. Mutt will add quotes around the +string substituted for “%s” automatically according to shell quoting +rules, so you should avoid adding your own. If no “%s” is found in +the string, Mutt will append the user's query to the end of the string. +See “query” for more information. +

    3.205. query_format

    Type: string
    +Default: “%4c %t %-25.25a %-25.25n %?e?(%e)?”

    +This variable describes the format of the “query” menu. The following printf(3)-style sequences are understood:

    %a destination address
    %c current entry number
    %e extra information *
    %n destination name -
    %t “*” if current entry is tagged, a space otherwise -
    %>X right justify the rest of the string and pad with “X” -
    %|X pad to the end of the line with “X” -
    %*X soft-fill with character “X” as pad +
    %t “*” if current entry is tagged, a space otherwise +
    %>X right justify the rest of the string and pad with “X” +
    %|X pad to the end of the line with “X” +
    %*X soft-fill with character “X” as pad

    -For an explanation of “soft-fill”, see the $index_format documentation. +For an explanation of “soft-fill”, see the $index_format documentation.

    -* = can be optionally printed if nonzero, see the $status_format documentation. -

    3.205. quit

    Type: quadoption
    +* = can be optionally printed if nonzero, see the $status_format documentation. +

    3.206. quit

    Type: quadoption
    Default: yes

    -This variable controls whether “quit” and “exit” actually quit +This variable controls whether “quit” and “exit” actually quit from mutt. If this option is set, they do quit, if it is unset, they have no effect, and if it is set to ask-yes or ask-no, you are prompted for confirmation when you try to quit. -

    3.206. quote_regexp

    Type: regular expression
    -Default: “^([ \t]*[|>:}#])+”

    +

    3.207. quote_regexp

    Type: regular expression
    +Default: “^([ \t]*[|>:}#])+”

    A regular expression used in the internal pager to determine quoted sections of text in the body of a message. Quoted text may be filtered out using the <toggle-quoted> command, or colored according to the -“color quoted” family of directives. +“color quoted” family of directives.

    -Higher levels of quoting may be colored differently (“color quoted1”, -“color quoted2”, etc.). The quoting level is determined by removing +Higher levels of quoting may be colored differently (“color quoted1”, +“color quoted2”, etc.). The quoting level is determined by removing the last character from the matched text and recursively reapplying the regular expression until it fails to produce a match.

    -Match detection may be overridden by the $smileys regular expression. -

    3.207. read_inc

    Type: number
    +Match detection may be overridden by the $smileys regular expression. +

    3.208. read_inc

    Type: number
    Default: 10

    If set to a value greater than 0, Mutt will display which message it is currently on when reading a mailbox or when performing search actions @@ -5816,20 +6202,20 @@ reading or searching large mailboxes which may take some time. When set to 0, only a single message will appear before the reading the mailbox.

    -Also see the $write_inc, $net_inc and $time_inc variables and the -“tuning” section of the manual for performance considerations. -

    3.208. read_only

    Type: boolean
    +Also see the $write_inc, $net_inc and $time_inc variables and the +“tuning” section of the manual for performance considerations. +

    3.209. read_only

    Type: boolean
    Default: no

    If set, all folders are opened in read-only mode. -

    3.209. realname

    Type: string
    +

    3.210. realname

    Type: string
    Default: (empty)

    -This variable specifies what “real” or “personal” name should be used +This variable specifies what “real” or “personal” name should be used when sending messages.

    By default, this is the GECOS field from /etc/passwd. Note that this variable will not be used when the user has set a real name -in the $from variable. -

    3.210. recall

    Type: quadoption
    +in the $from variable. +

    3.211. recall

    Type: quadoption
    Default: ask-yes

    Controls whether or not Mutt recalls postponed messages when composing a new message. @@ -5837,29 +6223,29 @@ when composing a new message. Setting this variable to is not generally useful, and thus not recommended.

    -Also see $postponed variable. -

    3.211. record

    Type: path
    -Default: “˜/sent”

    +Also see $postponed variable. +

    3.212. record

    Type: path
    +Default: “~/sent”

    This specifies the file into which your outgoing messages should be appended. (This is meant as the primary method for saving a copy of -your messages, but another way to do this is using the “my_hdr” -command to create a “Bcc:” field with your email address in it.) +your messages, but another way to do this is using the “my_hdr” +command to create a “Bcc:” field with your email address in it.)

    -The value of $record is overridden by the $force_name and -$save_name variables, and the “fcc-hook” command. -

    3.212. reply_regexp

    Type: regular expression
    -Default: “^(re([\[0-9\]+])*|aw):[ \t]*”

    +The value of $record is overridden by the $force_name and +$save_name variables, and the “fcc-hook” command. +

    3.213. reply_regexp

    Type: regular expression
    +Default: “^(re([\[0-9\]+])*|aw):[ \t]*”

    A regular expression used to recognize reply messages when threading and replying. The default value corresponds to the English "Re:" and the German "Aw:". -

    3.213. reply_self

    Type: boolean
    +

    3.214. reply_self

    Type: boolean
    Default: no

    If unset and you are replying to a message sent by you, Mutt will assume that you want to reply to the recipients of that message rather than to yourself.

    -Also see the “alternates” command. -

    3.214. reply_to

    Type: quadoption
    +Also see the “alternates” command. +

    3.215. reply_to

    Type: quadoption
    Default: ask-yes

    If set, when replying to a message, Mutt will use the address listed in the Reply-to: header as the recipient of the reply. If unset, @@ -5867,14 +6253,14 @@ it will use the address in the From: header field instead. This option is useful for reading a mailing list that sets the Reply-To: header field to the list address and you want to send a private message to the author of a message. -

    3.215. resolve

    Type: boolean
    +

    3.216. resolve

    Type: boolean
    Default: yes

    When set, the cursor will be automatically advanced to the next (possibly undeleted) message whenever a command that modifies the current message is executed. -

    3.216. reverse_alias

    Type: boolean
    +

    3.217. reverse_alias

    Type: boolean
    Default: no

    -This variable controls whether or not Mutt will display the “personal” +This variable controls whether or not Mutt will display the “personal” name from your aliases in the index menu if it finds an alias that matches the message's sender. For example, if you have the following alias: @@ -5887,28 +6273,28 @@ and then you receive mail which contains the following header:

     From: abd30425@somewhere.net
     

    -It would be displayed in the index menu as “Joe User” instead of -“abd30425@somewhere.net.” This is useful when the person's e-mail +It would be displayed in the index menu as “Joe User” instead of +“abd30425@somewhere.net.” This is useful when the person's e-mail address is not human friendly. -

    3.217. reverse_name

    Type: boolean
    +

    3.218. reverse_name

    Type: boolean
    Default: no

    It may sometimes arrive that you receive mail to a certain machine, move the messages to another machine, and reply to some the messages from there. If this variable is set, the default From: line of the reply messages is built using the address where you received the messages you are replying to if that address matches your -“alternates”. If the variable is unset, or the address that would be -used doesn't match your “alternates”, the From: line will use +“alternates”. If the variable is unset, or the address that would be +used doesn't match your “alternates”, the From: line will use your address on the current machine.

    -Also see the “alternates” command. -

    3.218. reverse_realname

    Type: boolean
    +Also see the “alternates” command. +

    3.219. reverse_realname

    Type: boolean
    Default: yes

    -This variable fine-tunes the behaviour of the $reverse_name feature. +This variable fine-tunes the behavior of the $reverse_name feature. When it is set, mutt will use the address from incoming messages as-is, possibly including eventual real names. When it is unset, mutt will -override any such real names with the setting of the $realname variable. -

    3.219. rfc2047_parameters

    Type: boolean
    +override any such real names with the setting of the $realname variable. +

    3.220. rfc2047_parameters

    Type: boolean
    Default: no

    When this variable is set, Mutt will decode RFC2047-encoded MIME parameters. You want to set this variable when mutt suggests you @@ -5927,79 +6313,79 @@ wild. Also note that setting this parameter will not have the effect that mutt generates this kind of encoding. Instead, mutt will unconditionally use the encoding specified in RFC2231. -

    3.220. save_address

    Type: boolean
    +

    3.221. save_address

    Type: boolean
    Default: no

    If set, mutt will take the sender's full address when choosing a -default folder for saving a mail. If $save_name or $force_name +default folder for saving a mail. If $save_name or $force_name is set too, the selection of the Fcc folder will be changed as well. -

    3.221. save_empty

    Type: boolean
    +

    3.222. save_empty

    Type: boolean
    Default: yes

    When unset, mailboxes which contain no saved messages will be removed -when closed (the exception is $spoolfile which is never removed). +when closed (the exception is $spoolfile which is never removed). If set, mailboxes are never removed.

    Note: This only applies to mbox and MMDF folders, Mutt does not delete MH and Maildir directories. -

    3.222. save_history

    Type: number
    +

    3.223. save_history

    Type: number
    Default: 0

    This variable controls the size of the history (per category) saved in the -$history_file file. -

    3.223. save_name

    Type: boolean
    +$history_file file. +

    3.224. save_name

    Type: boolean
    Default: no

    This variable controls how copies of outgoing messages are saved. When set, a check is made to see if a mailbox specified by the recipient address exists (this is done by searching for a mailbox in -the $folder directory with the username part of the +the $folder directory with the username part of the recipient address). If the mailbox exists, the outgoing message will be saved to that mailbox, otherwise the message is saved to the -$record mailbox. +$record mailbox.

    -Also see the $force_name variable. -

    3.224. score

    Type: boolean
    +Also see the $force_name variable. +

    3.225. score

    Type: boolean
    Default: yes

    When this variable is unset, scoring is turned off. This can be useful to selectively disable scoring for certain folders when the -$score_threshold_delete variable and related are used. -

    3.225. score_threshold_delete

    Type: number
    +$score_threshold_delete variable and related are used. +

    3.226. score_threshold_delete

    Type: number
    Default: -1

    Messages which have been assigned a score equal to or lower than the value of this variable are automatically marked for deletion by mutt. Since mutt scores are always greater than or equal to zero, the default setting of this variable will never mark a message for deletion. -

    3.226. score_threshold_flag

    Type: number
    +

    3.227. score_threshold_flag

    Type: number
    Default: 9999

    Messages which have been assigned a score greater than or equal to this variable's value are automatically marked "flagged". -

    3.227. score_threshold_read

    Type: number
    +

    3.228. score_threshold_read

    Type: number
    Default: -1

    Messages which have been assigned a score equal to or lower than the value of this variable are automatically marked as read by mutt. Since mutt scores are always greater than or equal to zero, the default setting of this variable will never mark a message read. -

    3.228. search_context

    Type: number
    +

    3.229. search_context

    Type: number
    Default: 0

    For the pager, this variable specifies the number of lines shown before search results. By default, search results will be top-aligned. -

    3.229. send_charset

    Type: string
    -Default: “us-ascii:iso-8859-1:utf-8”

    +

    3.230. send_charset

    Type: string
    +Default: “us-ascii:iso-8859-1:utf-8”

    A colon-delimited list of character sets for outgoing messages. Mutt will use the first character set into which the text can be converted exactly. -If your $charset is not “iso-8859-1” and recipients may not -understand “UTF-8”, it is advisable to include in the list an +If your $charset is not “iso-8859-1” and recipients may not +understand “UTF-8”, it is advisable to include in the list an appropriate widely used standard character set (such as -“iso-8859-2”, “koi8-r” or “iso-2022-jp”) either instead of or after -“iso-8859-1”. +“iso-8859-2”, “koi8-r” or “iso-2022-jp”) either instead of or after +“iso-8859-1”.

    In case the text cannot be converted into one of these exactly, -mutt uses $charset as a fallback. -

    3.230. sendmail

    Type: path
    -Default: “/usr/sbin/sendmail -oem -oi”

    +mutt uses $charset as a fallback. +

    3.231. sendmail

    Type: path
    +Default: “/usr/sbin/sendmail -oem -oi”

    Specifies the program and arguments used to deliver mail sent by Mutt. Mutt expects that the specified program interprets additional arguments as recipient addresses. -

    3.231. sendmail_wait

    Type: number
    +

    3.232. sendmail_wait

    Type: number
    Default: 0

    -Specifies the number of seconds to wait for the $sendmail process +Specifies the number of seconds to wait for the $sendmail process to finish before giving up and putting delivery in the background.

    Mutt interprets the value of this variable as follows: @@ -6011,70 +6397,70 @@ Mutt interprets the value of this variable as follows: Note that if you specify a value other than 0, the output of the child process will be put in a temporary file. If there is some error, you will be informed as to where to find the output. -

    3.232. shell

    Type: path
    +

    3.233. shell

    Type: path
    Default: (empty)

    Command to use when spawning a subshell. By default, the user's login shell from /etc/passwd is used. -

    3.233. sig_dashes

    Type: boolean
    +

    3.234. sig_dashes

    Type: boolean
    Default: yes

    -If set, a line containing “-- ” (note the trailing space) will be inserted before your -$signature. It is strongly recommended that you not unset +If set, a line containing “-- ” (note the trailing space) will be inserted before your +$signature. It is strongly recommended that you not unset this variable unless your signature contains just your name. The -reason for this is because many software packages use “-- \n” to +reason for this is because many software packages use “-- \n” to detect your signature. For example, Mutt has the ability to highlight -the signature in a different color in the builtin pager. -

    3.234. sig_on_top

    Type: boolean
    +the signature in a different color in the built-in pager. +

    3.235. sig_on_top

    Type: boolean
    Default: no

    If set, the signature will be included before any quoted or forwarded text. It is strongly recommended that you do not set this variable unless you really know what you are doing, and are prepared to take some heat from netiquette guardians. -

    3.235. signature

    Type: path
    -Default: “˜/.signature”

    +

    3.236. signature

    Type: path
    +Default: “~/.signature”

    Specifies the filename of your signature, which is appended to all -outgoing messages. If the filename ends with a pipe (“|”), it is +outgoing messages. If the filename ends with a pipe (“|”), it is assumed that filename is a shell command and input should be read from its standard output. -

    3.236. simple_search

    Type: string
    -Default: “˜f %s | ˜s %s”

    +

    3.237. simple_search

    Type: string
    +Default: “~f %s | ~s %s”

    Specifies how Mutt should expand a simple search into a real search -pattern. A simple search is one that does not contain any of the “˜” pattern -operators. See “patterns” for more information on search patterns. +pattern. A simple search is one that does not contain any of the “~” pattern +operators. See “patterns” for more information on search patterns.

    -For example, if you simply type “joe” at a search or limit prompt, Mutt +For example, if you simply type “joe” at a search or limit prompt, Mutt will automatically expand it to the value specified by this variable by -replacing “%s” with the supplied string. -For the default value, “joe” would be expanded to: “˜f joe | ˜s joe”. -

    3.237. sleep_time

    Type: number
    +replacing “%s” with the supplied string. +For the default value, “joe” would be expanded to: “~f joe | ~s joe”. +

    3.238. sleep_time

    Type: number
    Default: 1

    Specifies time, in seconds, to pause while displaying certain informational messages, while moving from folder to folder and after expunging messages from the current folder. The default is to pause one second, so a value of zero for this option suppresses the pause. -

    3.238. smart_wrap

    Type: boolean
    +

    3.239. smart_wrap

    Type: boolean
    Default: yes

    Controls the display of lines longer than the screen width in the internal pager. If set, long lines are wrapped at a word boundary. If unset, lines are simply wrapped at the screen edge. Also see the -$markers variable. -

    3.239. smileys

    Type: regular expression
    -Default: “(>From )|(:[-^]?[][)(><}{|/DP])”

    +$markers variable. +

    3.240. smileys

    Type: regular expression
    +Default: “(>From )|(:[-^]?[][)(><}{|/DP])”

    The pager uses this variable to catch some common false -positives of $quote_regexp, most notably smileys and not consider -a line quoted text if it also matches $smileys. This mostly +positives of $quote_regexp, most notably smileys and not consider +a line quoted text if it also matches $smileys. This mostly happens at the beginning of a line. -

    3.240. smime_ask_cert_label

    Type: boolean
    +

    3.241. smime_ask_cert_label

    Type: boolean
    Default: yes

    This flag controls whether you want to be asked to enter a label for a certificate about to be added to the database or not. It is set by default. (S/MIME only) -

    3.241. smime_ca_location

    Type: path
    +

    3.242. smime_ca_location

    Type: path
    Default: (empty)

    This variable contains the name of either a directory, or a file which contains trusted certificates for use with OpenSSL. (S/MIME only) -

    3.242. smime_certificates

    Type: path
    +

    3.243. smime_certificates

    Type: path
    Default: (empty)

    Since for S/MIME there is no pubring/secring as with PGP, mutt has to handle storage and retrieval of keys by itself. This is very basic right @@ -6084,7 +6470,7 @@ OpenSSL. There is an index file which contains mailbox-address keyid pairs, and which can be manually edited. This option points to the location of the certificates. (S/MIME only) -

    3.243. smime_decrypt_command

    Type: string
    +

    3.244. smime_decrypt_command

    Type: string
    Default: (empty)

    This format string specifies a command which is used to decrypt application/x-pkcs7-mime attachments. @@ -6095,82 +6481,82 @@ similar to PGP's:

    %f Expands to the name of a file containing a message.
    %s Expands to the name of a file containing the signature part of a multipart/signed attachment when verifying it. -
    %k The key-pair specified with $smime_default_key +
    %k The key-pair specified with $smime_default_key
    %c One or more certificate IDs.
    %a The algorithm used for encryption. -
    %C CA location: Depending on whether $smime_ca_location +
    %C CA location: Depending on whether $smime_ca_location points to a directory or file, this expands to - “-CApath $smime_ca_location” or “-CAfile $smime_ca_location”. + “-CApath $smime_ca_location” or “-CAfile $smime_ca_location”.

    For examples on how to configure these formats, see the smime.rc in the samples/ subdirectory which has been installed on your system alongside the documentation. (S/MIME only) -

    3.244. smime_decrypt_use_default_key

    Type: boolean
    +

    3.245. smime_decrypt_use_default_key

    Type: boolean
    Default: yes

    If set (default) this tells mutt to use the default key for decryption. Otherwise, if managing multiple certificate-key-pairs, mutt will try to use the mailbox-address to determine the key to use. It will ask you to supply a key, if it can't find one. (S/MIME only) -

    3.245. smime_default_key

    Type: string
    +

    3.246. smime_default_key

    Type: string
    Default: (empty)

    This is the default key-pair to use for signing. This must be set to the keyid (the hash-value that OpenSSL generates) to work properly (S/MIME only) -

    3.246. smime_encrypt_command

    Type: string
    +

    3.247. smime_encrypt_command

    Type: string
    Default: (empty)

    This command is used to create encrypted S/MIME messages.

    -This is a format string, see the $smime_decrypt_command command for +This is a format string, see the $smime_decrypt_command command for possible printf(3)-like sequences. (S/MIME only) -

    3.247. smime_encrypt_with

    Type: string
    +

    3.248. smime_encrypt_with

    Type: string
    Default: (empty)

    This sets the algorithm that should be used for encryption. -Valid choices are “des”, “des3”, “rc2-40”, “rc2-64”, “rc2-128”. -If unset, “3des” (TripleDES) is used. +Valid choices are “des”, “des3”, “rc2-40”, “rc2-64”, “rc2-128”. +If unset, “3des” (TripleDES) is used. (S/MIME only) -

    3.248. smime_get_cert_command

    Type: string
    +

    3.249. smime_get_cert_command

    Type: string
    Default: (empty)

    This command is used to extract X509 certificates from a PKCS7 structure.

    -This is a format string, see the $smime_decrypt_command command for +This is a format string, see the $smime_decrypt_command command for possible printf(3)-like sequences. (S/MIME only) -

    3.249. smime_get_cert_email_command

    Type: string
    +

    3.250. smime_get_cert_email_command

    Type: string
    Default: (empty)

    This command is used to extract the mail address(es) used for storing X509 certificates, and for verification purposes (to check whether the certificate was issued for the sender's mailbox).

    -This is a format string, see the $smime_decrypt_command command for +This is a format string, see the $smime_decrypt_command command for possible printf(3)-like sequences. (S/MIME only) -

    3.250. smime_get_signer_cert_command

    Type: string
    +

    3.251. smime_get_signer_cert_command

    Type: string
    Default: (empty)

    This command is used to extract only the signers X509 certificate from a S/MIME signature, so that the certificate's owner may get compared to the -email's “From:” field. +email's “From:” field.

    -This is a format string, see the $smime_decrypt_command command for +This is a format string, see the $smime_decrypt_command command for possible printf(3)-like sequences. (S/MIME only) -

    3.251. smime_import_cert_command

    Type: string
    +

    3.252. smime_import_cert_command

    Type: string
    Default: (empty)

    This command is used to import a certificate via smime_keys.

    -This is a format string, see the $smime_decrypt_command command for +This is a format string, see the $smime_decrypt_command command for possible printf(3)-like sequences. (S/MIME only) -

    3.252. smime_is_default

    Type: boolean
    +

    3.253. smime_is_default

    Type: boolean
    Default: no

    -The default behaviour of mutt is to use PGP on all auto-sign/encryption +The default behavior of mutt is to use PGP on all auto-sign/encryption operations. To override and to use OpenSSL instead this must be set. However, this has no effect while replying, since mutt will automatically select the same application that was used to sign/encrypt the original -message. (Note that this variable can be overridden by unsetting $crypt_autosmime.) +message. (Note that this variable can be overridden by unsetting $crypt_autosmime.) (S/MIME only) -

    3.253. smime_keys

    Type: path
    +

    3.254. smime_keys

    Type: path
    Default: (empty)

    Since for S/MIME there is no pubring/secring as with PGP, mutt has to handle storage and retrieval of keys/certs by itself. This is very basic right now, @@ -6179,58 +6565,58 @@ named as the hash-value retrieved from OpenSSL. There is an index file which contains mailbox-address keyid pair, and which can be manually edited. This option points to the location of the private keys. (S/MIME only) -

    3.254. smime_pk7out_command

    Type: string
    +

    3.255. smime_pk7out_command

    Type: string
    Default: (empty)

    This command is used to extract PKCS7 structures of S/MIME signatures, in order to extract the public X509 certificate(s).

    -This is a format string, see the $smime_decrypt_command command for +This is a format string, see the $smime_decrypt_command command for possible printf(3)-like sequences. (S/MIME only) -

    3.255. smime_sign_command

    Type: string
    +

    3.256. smime_sign_command

    Type: string
    Default: (empty)

    This command is used to created S/MIME signatures of type multipart/signed, which can be read by all mail clients.

    -This is a format string, see the $smime_decrypt_command command for +This is a format string, see the $smime_decrypt_command command for possible printf(3)-like sequences. (S/MIME only) -

    3.256. smime_sign_opaque_command

    Type: string
    +

    3.257. smime_sign_opaque_command

    Type: string
    Default: (empty)

    This command is used to created S/MIME signatures of type application/x-pkcs7-signature, which can only be handled by mail clients supporting the S/MIME extension.

    -This is a format string, see the $smime_decrypt_command command for +This is a format string, see the $smime_decrypt_command command for possible printf(3)-like sequences. (S/MIME only) -

    3.257. smime_timeout

    Type: number
    +

    3.258. smime_timeout

    Type: number
    Default: 300

    The number of seconds after which a cached passphrase will expire if not used. (S/MIME only) -

    3.258. smime_verify_command

    Type: string
    +

    3.259. smime_verify_command

    Type: string
    Default: (empty)

    This command is used to verify S/MIME signatures of type multipart/signed.

    -This is a format string, see the $smime_decrypt_command command for +This is a format string, see the $smime_decrypt_command command for possible printf(3)-like sequences. (S/MIME only) -

    3.259. smime_verify_opaque_command

    Type: string
    +

    3.260. smime_verify_opaque_command

    Type: string
    Default: (empty)

    This command is used to verify S/MIME signatures of type application/x-pkcs7-mime.

    -This is a format string, see the $smime_decrypt_command command for +This is a format string, see the $smime_decrypt_command command for possible printf(3)-like sequences. (S/MIME only) -

    3.260. smtp_authenticators

    Type: string
    +

    3.261. smtp_authenticators

    Type: string
    Default: (empty)

    This is a colon-delimited list of authentication methods mutt may attempt to use to log in to an SMTP server, in the order mutt should -try them. Authentication methods are any SASL mechanism, eg -“digest-md5”, “gssapi” or “cram-md5”. -This option is case-insensitive. If it is “unset” +try them. Authentication methods are any SASL mechanism, e.g. +“digest-md5”, “gssapi” or “cram-md5”. +This option is case-insensitive. If it is “unset” (the default) mutt will try all available methods, in order from most-secure to least-secure.

    @@ -6238,109 +6624,109 @@ Example:

     set smtp_authenticators="digest-md5:cram-md5"
    -

    3.261. smtp_pass

    Type: string
    +

    3.262. smtp_pass

    Type: string
    Default: (empty)

    Specifies the password for your SMTP account. If unset, Mutt will prompt you for your password when you first send mail via SMTP. -See $smtp_url to configure mutt to send mail via SMTP. +See $smtp_url to configure mutt to send mail via SMTP.

    Warning: you should only use this option when you are on a fairly secure machine, because the superuser can read your muttrc even if you are the only one who can read the file. -

    3.262. smtp_url

    Type: string
    +

    3.263. smtp_url

    Type: string
    Default: (empty)

    Defines the SMTP smarthost where sent messages should relayed for -delivery. This should take the form of an SMTP URL, eg: +delivery. This should take the form of an SMTP URL, e.g.:

    -smtp[s]://[user[:pass]@]host[:port]/
    +smtp[s]://[user[:pass]@]host[:port]
     

    -where “[...]” denotes an optional part. -Setting this variable overrides the value of the $sendmail +where “[...]” denotes an optional part. +Setting this variable overrides the value of the $sendmail variable. -

    3.263. sort

    Type: sort order
    +

    3.264. sort

    Type: sort order
    Default: date

    -Specifies how to sort messages in the “index” menu. Valid values +Specifies how to sort messages in the “index” menu. Valid values are: -

    • date or date-sent -

    • date-received -

    • from -

    • mailbox-order (unsorted) -

    • score -

    • size -

    • spam -

    • subject -

    • threads -

    • to +

      • date or date-sent +

      • date-received +

      • from +

      • mailbox-order (unsorted) +

      • score +

      • size +

      • spam +

      • subject +

      • threads +

      • to

      -You may optionally use the “reverse-” prefix to specify reverse sorting -order (example: “set sort=reverse-date-sent”). -

    3.264. sort_alias

    Type: sort order
    +You may optionally use the “reverse-” prefix to specify reverse sorting +order (example: “set sort=reverse-date-sent”). +

    3.265. sort_alias

    Type: sort order
    Default: alias

    -Specifies how the entries in the “alias” menu are sorted. The +Specifies how the entries in the “alias” menu are sorted. The following are legal values: -

    • address (sort alphabetically by email address) -

    • alias (sort alphabetically by alias name) -

    • unsorted (leave in order specified in .muttrc) -

    3.265. sort_aux

    Type: sort order
    +

    • address (sort alphabetically by email address) +

    • alias (sort alphabetically by alias name) +

    • unsorted (leave in order specified in .muttrc) +

    3.266. sort_aux

    Type: sort order
    Default: date

    When sorting by threads, this variable controls how threads are sorted in relation to other threads, and how the branches of the thread trees -are sorted. This can be set to any value that $sort can, except -“threads” (in that case, mutt will just use “date-sent”). You can also -specify the “last-” prefix in addition to the “reverse-” prefix, but “last-” -must come after “reverse-”. The “last-” prefix causes messages to be +are sorted. This can be set to any value that $sort can, except +“threads” (in that case, mutt will just use “date-sent”). You can also +specify the “last-” prefix in addition to the “reverse-” prefix, but “last-” +must come after “reverse-”. The “last-” prefix causes messages to be sorted against its siblings by which has the last descendant, using -the rest of $sort_aux as an ordering. For instance, +the rest of $sort_aux as an ordering. For instance,

     set sort_aux=last-date-received
     

    would mean that if a new message is received in a thread, that thread becomes the last one displayed (or the first, if -you have “set sort=reverse-threads”.) +you have “set sort=reverse-threads”.)

    -Note: For reversed $sort -order $sort_aux is reversed again (which is not the right thing to do, +Note: For reversed $sort +order $sort_aux is reversed again (which is not the right thing to do, but kept to not break any existing configuration setting). -

    3.266. sort_browser

    Type: sort order
    +

    3.267. sort_browser

    Type: sort order
    Default: alpha

    Specifies how to sort entries in the file browser. By default, the entries are sorted alphabetically. Valid values: -

    • alpha (alphabetically) -

    • date -

    • size -

    • unsorted +

      • alpha (alphabetically) +

      • date +

      • size +

      • unsorted

      -You may optionally use the “reverse-” prefix to specify reverse sorting -order (example: “set sort_browser=reverse-date”). -

    3.267. sort_re

    Type: boolean
    +You may optionally use the “reverse-” prefix to specify reverse sorting +order (example: “set sort_browser=reverse-date”). +

    3.268. sort_re

    Type: boolean
    Default: yes

    This variable is only useful when sorting by threads with -$strict_threads unset. In that case, it changes the heuristic -mutt uses to thread messages by subject. With $sort_re set, mutt will +$strict_threads unset. In that case, it changes the heuristic +mutt uses to thread messages by subject. With $sort_re set, mutt will only attach a message as the child of another message by subject if the subject of the child message starts with a substring matching the -setting of $reply_regexp. With $sort_re unset, mutt will attach +setting of $reply_regexp. With $sort_re unset, mutt will attach the message whether or not this is the case, as long as the -non-$reply_regexp parts of both messages are identical. -

    3.268. spam_separator

    Type: string
    -Default: “,”

    +non-$reply_regexp parts of both messages are identical. +

    3.269. spam_separator

    Type: string
    +Default: “,”

    This variable controls what happens when multiple spam headers are matched: if unset, each successive header will overwrite any previous matches value for the spam label. If set, each successive match will append to the previous, using this variable's value as a separator. -

    3.269. spoolfile

    Type: path
    +

    3.270. spoolfile

    Type: path
    Default: (empty)

    If your spool mailbox is in a non-default place where Mutt cannot find it, you can specify its location with this variable. Mutt will initially set this variable to the value of the environment variable $MAIL or $MAILDIR if either is defined. -

    3.270. ssl_ca_certificates_file

    Type: path
    +

    3.271. ssl_ca_certificates_file

    Type: path
    Default: (empty)

    This variable specifies a file containing trusted CA certificates. Any server certificate that is signed with one of these CA @@ -6350,72 +6736,72 @@ Example:

     set ssl_ca_certificates_file=/etc/ssl/certs/ca-certificates.crt
    -

    3.271. ssl_client_cert

    Type: path
    +

    3.272. ssl_client_cert

    Type: path
    Default: (empty)

    The file containing a client certificate and its associated private key. -

    3.272. ssl_force_tls

    Type: boolean
    +

    3.273. ssl_force_tls

    Type: boolean
    Default: no

    If this variable is set, Mutt will require that all connections to remote servers be encrypted. Furthermore it will attempt to negotiate TLS even if the server does not advertise the capability, since it would otherwise have to abort the connection anyway. This -option supersedes $ssl_starttls. -

    3.273. ssl_min_dh_prime_bits

    Type: number
    +option supersedes $ssl_starttls. +

    3.274. ssl_min_dh_prime_bits

    Type: number
    Default: 0

    This variable specifies the minimum acceptable prime size (in bits) for use in any Diffie-Hellman key exchange. A value of 0 will use the default from the GNUTLS library. -

    3.274. ssl_starttls

    Type: quadoption
    +

    3.275. ssl_starttls

    Type: quadoption
    Default: yes

    If set (the default), mutt will attempt to use STARTTLS on servers advertising the capability. When unset, mutt will not attempt to use STARTTLS regardless of the server's capabilities. -

    3.275. ssl_use_sslv2

    Type: boolean
    +

    3.276. ssl_use_sslv2

    Type: boolean
    Default: no

    This variable specifies whether to attempt to use SSLv2 in the SSL authentication process. -

    3.276. ssl_use_sslv3

    Type: boolean
    +

    3.277. ssl_use_sslv3

    Type: boolean
    Default: yes

    This variable specifies whether to attempt to use SSLv3 in the SSL authentication process. -

    3.277. ssl_use_tlsv1

    Type: boolean
    +

    3.278. ssl_use_tlsv1

    Type: boolean
    Default: yes

    This variable specifies whether to attempt to use TLSv1 in the SSL authentication process. -

    3.278. ssl_usesystemcerts

    Type: boolean
    +

    3.279. ssl_usesystemcerts

    Type: boolean
    Default: yes

    If set to yes, mutt will use CA certificates in the system-wide certificate store when checking if a server certificate is signed by a trusted CA. -

    3.279. ssl_verify_dates

    Type: boolean
    +

    3.280. ssl_verify_dates

    Type: boolean
    Default: yes

    If set (the default), mutt will not automatically accept a server certificate that is either not yet valid or already expired. You should only unset this for particular known hosts, using the -<account-hook> function. -

    3.280. ssl_verify_host

    Type: boolean
    +<account-hook> function. +

    3.281. ssl_verify_host

    Type: boolean
    Default: yes

    If set (the default), mutt will not automatically accept a server certificate whose host name does not match the host used in your folder URL. You should only unset this for particular known hosts, using -the <account-hook> function. -

    3.281. status_chars

    Type: string
    -Default: “-*%A”

    -Controls the characters used by the “%r” indicator in -$status_format. The first character is used when the mailbox is +the <account-hook> function. +

    3.282. status_chars

    Type: string
    +Default: “-*%A”

    +Controls the characters used by the “%r” indicator in +$status_format. The first character is used when the mailbox is unchanged. The second is used when the mailbox has been changed, and it needs to be resynchronized. The third is used if the mailbox is in read-only mode, or if the mailbox will not be written when exiting that mailbox (You can toggle whether to write changes to a mailbox -with the <toggle-write> operation, bound by default to “%”). The fourth +with the <toggle-write> operation, bound by default to “%”). The fourth is used to indicate that the current folder has been opened in attach- message mode (Certain operations like composing a new mail, replying, forwarding, etc. are not permitted in this mode). -

    3.282. status_format

    Type: string
    -Default: “-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---”

    -Controls the format of the status line displayed in the “index” -menu. This string is similar to $index_format, but has its own +

    3.283. status_format

    Type: string
    +Default: “-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---”

    +Controls the format of the status line displayed in the “index” +menu. This string is similar to $index_format, but has its own set of printf(3)-like sequences:

    %b number of mailboxes with new mail * @@ -6433,18 +6819,18 @@ set of printf(3)-like sequences:
    %p number of postponed messages *
    %P percentage of the way through the index
    %r modified/read-only/won't-write/attach-message indicator, -according to $status_chars -
    %s current sorting mode ($sort) -
    %S current aux sorting method ($sort_aux) +according to $status_chars +
    %s current sorting mode ($sort) +
    %S current aux sorting method ($sort_aux)
    %t number of tagged messages *
    %u number of unread messages *
    %v Mutt version string
    %V currently active limit pattern, if any * -
    %>X right justify the rest of the string and pad with “X” -
    %|X pad to the end of the line with “X” -
    %*X soft-fill with character “X” as pad +
    %>X right justify the rest of the string and pad with “X” +
    %|X pad to the end of the line with “X” +
    %*X soft-fill with character “X” as pad

    -For an explanation of “soft-fill”, see the $index_format documentation. +For an explanation of “soft-fill”, see the $index_format documentation.

    * = can be optionally printed if nonzero

    @@ -6475,46 +6861,46 @@ If the value of sequence_char is non-zero be expanded, otherwise else_string will be expanded.

    You can force the result of any printf(3)-like sequence to be lowercase -by prefixing the sequence character with an underscore (“_”) sign. +by prefixing the sequence character with an underscore (“_”) sign. For example, if you want to display the local hostname in lowercase, -you would use: “%_h”. +you would use: “%_h”.

    -If you prefix the sequence character with a colon (“:”) character, mutt +If you prefix the sequence character with a colon (“:”) character, mutt will replace any dots in the expansion by underscores. This might be helpful with IMAP folders that don't like dots in folder names. -

    3.283. status_on_top

    Type: boolean
    +

    3.284. status_on_top

    Type: boolean
    Default: no

    -Setting this variable causes the “status bar” to be displayed on -the first line of the screen rather than near the bottom. If $help +Setting this variable causes the “status bar” to be displayed on +the first line of the screen rather than near the bottom. If $help is set, too it'll be placed at the bottom. -

    3.284. strict_threads

    Type: boolean
    +

    3.285. strict_threads

    Type: boolean
    Default: no

    -If set, threading will only make use of the “In-Reply-To” and -“References:” fields when you $sort by message threads. By +If set, threading will only make use of the “In-Reply-To” and +“References:” fields when you $sort by message threads. By default, messages with the same subject are grouped together in -“pseudo threads.”. This may not always be desirable, such as in a +“pseudo threads.”. This may not always be desirable, such as in a personal mailbox where you might have several unrelated messages with -the subjects like “hi” which will get grouped together. See also -$sort_re for a less drastic way of controlling this -behaviour. -

    3.285. suspend

    Type: boolean
    +the subjects like “hi” which will get grouped together. See also +$sort_re for a less drastic way of controlling this +behavior. +

    3.286. suspend

    Type: boolean
    Default: yes

    When unset, mutt won't stop when the user presses the terminal's -susp key, usually “^Z”. This is useful if you run mutt -inside an xterm using a command like “xterm -e mutt”. -

    3.286. text_flowed

    Type: boolean
    +susp key, usually “^Z”. This is useful if you run mutt +inside an xterm using a command like “xterm -e mutt”. +

    3.287. text_flowed

    Type: boolean
    Default: no

    -When set, mutt will generate “format=flowed” bodies with a content type -of “text/plain; format=flowed”. +When set, mutt will generate “format=flowed” bodies with a content type +of “text/plain; format=flowed”. This format is easier to handle for some mailing software, and generally just looks like ordinary text. To actually make use of this format's features, you'll need support in your editor.

    -Note that $indent_string is ignored when this option is set. -

    3.287. thorough_search

    Type: boolean
    -Default: no

    -Affects the ˜b and ˜h search operations described in -section “patterns”. If set, the headers and body/attachments of +Note that $indent_string is ignored when this option is set. +

    3.288. thorough_search

    Type: boolean
    +Default: yes

    +Affects the ~b and ~h search operations described in +section “patterns”. If set, the headers and body/attachments of messages to be searched are decoded before searching. If unset, messages are searched as they appear in the folder.

    @@ -6523,26 +6909,26 @@ this value because decoding also includes MIME parsing/decoding and possible character set conversions. Otherwise mutt will attempt to match against the raw message received (for example quoted-printable encoded or with encoded headers) which may lead to incorrect search results. -

    3.288. thread_received

    Type: boolean
    +

    3.289. thread_received

    Type: boolean
    Default: no

    When set, mutt uses the date received rather than the date sent to thread messages by subject. -

    3.289. tilde

    Type: boolean
    +

    3.290. tilde

    Type: boolean
    Default: no

    When set, the internal-pager will pad blank lines to the bottom of the -screen with a tilde (“˜”). -

    3.290. time_inc

    Type: number
    +screen with a tilde (“~”). +

    3.291. time_inc

    Type: number
    Default: 0

    -Along with $read_inc, $write_inc, and $net_inc, this +Along with $read_inc, $write_inc, and $net_inc, this variable controls the frequency with which progress updates are -displayed. It suppresses updates less than $time_inc milliseconds +displayed. It suppresses updates less than $time_inc milliseconds apart. This can improve throughput on systems with slow terminals, or when running mutt on a remote system.

    -Also see the “tuning” section of the manual for performance considerations. -

    3.291. timeout

    Type: number
    +Also see the “tuning” section of the manual for performance considerations. +

    3.292. timeout

    Type: number
    Default: 600

    -When Mutt is waiting for user input either idleing in menus or +When Mutt is waiting for user input either idling in menus or in an interactive prompt, Mutt would block until input is present. Depending on the context, this would prevent certain operations from working, like checking for new mail or keeping @@ -6553,25 +6939,25 @@ until it aborts waiting for input, performs these operations and continues to wait for input.

    A value of zero or less will cause Mutt to never time out. -

    3.292. tmpdir

    Type: path
    +

    3.293. tmpdir

    Type: path
    Default: (empty)

    This variable allows you to specify where Mutt will place its temporary files needed for displaying and composing messages. If this variable is not set, the environment variable $TMPDIR is -used. If $TMPDIR is not set then “/tmp” is used. -

    3.293. to_chars

    Type: string
    -Default: “ +TCFL”

    +used. If $TMPDIR is not set then “/tmp” is used. +

    3.294. to_chars

    Type: string
    +Default: “ +TCFL”

    Controls the character used to indicate mail addressed to you. The first character is the one used when the mail is not addressed to your address. The second is used when you are the only recipient of the message. The third is when your address -appears in the “To:” header field, but you are not the only recipient of +appears in the “To:” header field, but you are not the only recipient of the message. The fourth character is used when your -address is specified in the “Cc:” header field, but you are not the only +address is specified in the “Cc:” header field, but you are not the only recipient. The fifth character is used to indicate mail that was sent by you. The sixth character is used to indicate when a mail was sent to a mailing-list you subscribe to. -

    3.294. tunnel

    Type: string
    +

    3.295. tunnel

    Type: string
    Default: (empty)

    Setting this variable will cause mutt to open a pipe to a command instead of a raw socket. You may be able to use this to set up @@ -6584,124 +6970,135 @@ Note: For this example to work you must be able to log in to the remote machine without having to enter a password.

    When set, Mutt uses the tunnel for all remote connections. -Please see “account-hook” in the manual for how to use different +Please see “account-hook” in the manual for how to use different tunnel commands per connection. -

    3.295. uncollapse_jump

    Type: boolean
    +

    3.296. uncollapse_jump

    Type: boolean
    Default: no

    When set, Mutt will jump to the next unread message, if any, when the current thread is uncollapsed. -

    3.296. use_8bitmime

    Type: boolean
    +

    3.297. use_8bitmime

    Type: boolean
    Default: no

    Warning: do not set this variable unless you are using a version of sendmail which supports the -B8BITMIME flag (such as sendmail 8.8.x) or you may not be able to send mail.

    -When set, Mutt will invoke $sendmail with the -B8BITMIME +When set, Mutt will invoke $sendmail with the -B8BITMIME flag when sending 8-bit messages to enable ESMTP negotiation. -

    3.297. use_domain

    Type: boolean
    +

    3.298. use_domain

    Type: boolean
    Default: yes

    When set, Mutt will qualify all local addresses (ones without the -“@host” portion) with the value of $hostname. If unset, no +“@host” portion) with the value of $hostname. If unset, no addresses will be qualified. -

    3.298. use_envelope_from

    Type: boolean
    +

    3.299. use_envelope_from

    Type: boolean
    Default: no

    When set, mutt will set the envelope sender of the message. -If $envelope_from_address is set, it will be used as the sender +If $envelope_from_address is set, it will be used as the sender address. If unset, mutt will attempt to derive the sender from the -“From:” header. +“From:” header.

    Note that this information is passed to sendmail command using the -f command line switch. Therefore setting this option is not useful -if the $sendmail variable already contains -f or if the -executable pointed to by $sendmail doesn't support the -f switch. -

    3.299. use_from

    Type: boolean
    +if the $sendmail variable already contains -f or if the +executable pointed to by $sendmail doesn't support the -f switch. +

    3.300. use_from

    Type: boolean
    Default: yes

    -When set, Mutt will generate the “From:” header field when -sending messages. If unset, no “From:” header field will be -generated unless the user explicitly sets one using the “my_hdr” +When set, Mutt will generate the “From:” header field when +sending messages. If unset, no “From:” header field will be +generated unless the user explicitly sets one using the “my_hdr” command. -

    3.300. use_idn

    Type: boolean
    +

    3.301. use_idn

    Type: boolean
    Default: yes

    When set, Mutt will show you international domain names decoded. Note: You can use IDNs for addresses even if this is unset. This variable only affects decoding. -

    3.301. use_ipv6

    Type: boolean
    +

    3.302. use_ipv6

    Type: boolean
    Default: yes

    When set, Mutt will look for IPv6 addresses of hosts it tries to contact. If this option is unset, Mutt will restrict itself to IPv4 addresses. Normally, the default should work. -

    3.302. user_agent

    Type: boolean
    +

    3.303. user_agent

    Type: boolean
    Default: yes

    -When set, mutt will add a “User-Agent:” header to outgoing +When set, mutt will add a “User-Agent:” header to outgoing messages, indicating which version of mutt was used for composing them. -

    3.303. visual

    Type: path
    +

    3.304. visual

    Type: path
    Default: (empty)

    -Specifies the visual editor to invoke when the “˜v” command is -given in the builtin editor. -

    3.304. wait_key

    Type: boolean
    +Specifies the visual editor to invoke when the “~v” command is +given in the built-in editor. +

    3.305. wait_key

    Type: boolean
    Default: yes

    Controls whether Mutt will ask you to press a key after an external command has been invoked by these functions: <shell-escape>, <pipe-message>, <pipe-entry>, <print-message>, and <print-entry> commands.

    -It is also used when viewing attachments with “auto_view”, provided +It is also used when viewing attachments with “auto_view”, provided that the corresponding mailcap entry has a needsterminal flag, and the external program is interactive.

    When set, Mutt will always ask for a key. When unset, Mutt will wait for a key only if the external command returned a non-zero status. -

    3.305. weed

    Type: boolean
    +

    3.306. weed

    Type: boolean
    Default: yes

    When set, mutt will weed headers when displaying, forwarding, printing, or replying to messages. -

    3.306. wrap

    Type: number
    +

    3.307. wrap

    Type: number
    Default: 0

    -When set to a positive value, mutt will wrap text at $wrap characters. -When set to a negative value, mutt will wrap text so that there are $wrap -characters of empty space on the right side of the terminal. -

    3.307. wrap_search

    Type: boolean
    +When set to a positive value, mutt will wrap text at $wrap characters. +When set to a negative value, mutt will wrap text so that there are $wrap +characters of empty space on the right side of the terminal. Setting it +to zero makes mutt wrap at the terminal width. +

    3.308. wrap_headers

    Type: number
    +Default: 78

    +This option specifies the number of characters to use for wrapping +an outgoing message's headers. Allowed values are between 78 and 998 +inclusive. +

    +Note: This option usually shouldn't be changed. RFC5233 +recommends a line length of 78 (the default), so please only change +this setting when you know what you're doing. +

    3.309. wrap_search

    Type: boolean
    Default: yes

    Controls whether searches wrap around the end.

    When set, searches will wrap around the first (or last) item. When unset, incremental searches will not wrap. -

    3.308. wrapmargin

    Type: number
    +

    3.310. wrapmargin

    Type: number
    Default: 0

    -(DEPRECATED) Equivalent to setting $wrap with a negative value. -

    3.309. write_bcc

    Type: boolean
    +(DEPRECATED) Equivalent to setting $wrap with a negative value. +

    3.311. write_bcc

    Type: boolean
    Default: yes

    -Controls whether mutt writes out the “Bcc:” header when preparing +Controls whether mutt writes out the “Bcc:” header when preparing messages to be sent. Exim users may wish to unset this. If mutt -is set to deliver directly via SMTP (see $smtp_url), this -option does nothing: mutt will never write out the “Bcc:” header +is set to deliver directly via SMTP (see $smtp_url), this +option does nothing: mutt will never write out the “Bcc:” header in this case. -

    3.310. write_inc

    Type: number
    +

    3.312. write_inc

    Type: number
    Default: 10

    When writing a mailbox, a message will be printed every -$write_inc messages to indicate progress. If set to 0, only a +$write_inc messages to indicate progress. If set to 0, only a single message will be displayed before writing a mailbox.

    -Also see the $read_inc, $net_inc and $time_inc variables and the -“tuning” section of the manual for performance considerations. -

    4. Functions

    +Also see the $read_inc, $net_inc and $time_inc variables and the +“tuning” section of the manual for performance considerations. +

    4. Functions

    The following is the list of available functions listed by the mapping in which they are available. The default key setting is given, and an explanation of what the function does. The key bindings of these -functions can be changed with the bind +functions can be changed with the bind command. -

    4.1. Generic Menu

    +

    4.1. Generic Menu

    The generic menu is not a real menu, but specifies common functions (such as movement) available in all menus except for pager and editor. Changing settings for this menu will affect the default bindings for all menus (except as noted). -

    Table 9.2. Default generic Function Bindings

    FunctionDefault keyDescription
    <top-page>Hmove to the top of the page
    <next-entry>jmove to the next entry
    <previous-entry>kmove to the previous entry
    <bottom-page>Lmove to the bottom of the page
    <refresh>^Lclear and redraw the screen
    <middle-page>Mmove to the middle of the page
    <search-next>nsearch for next match
    <exit>qexit this menu
    <tag-entry>ttag the current entry
    <next-page>zmove to the next page
    <previous-page>Zmove to the previous page
    <last-entry>*move to the last entry
    <first-entry>=move to the first entry
    <enter-command>:enter a muttrc command
    <next-line>>scroll down one line
    <previous-line><scroll up one line
    <half-up>[scroll up 1/2 page
    <half-down>]scroll down 1/2 page
    <help>?this screen
    <tag-prefix>;apply next function to tagged messages
    <tag-prefix-cond> apply next function ONLY to tagged messages
    <end-cond> end of conditional execution (noop)
    <shell-escape>!invoke a command in a subshell
    <select-entry><Return>select the current entry
    <search>/search for a regular expression
    <search-reverse>Esc /search backwards for a regular expression
    <search-opposite> search for next match in opposite direction
    <jump> jump to an index number
    <current-top> move entry to top of screen
    <current-middle> move entry to middle of screen
    <current-bottom> move entry to bottom of screen
    <what-key> display the keycode for a key press

    4.2. Index Menu

    Table 9.3. Default index Function Bindings

    FunctionDefault keyDescription
    <create-alias>acreate an alias from a message sender
    <bounce-message>bremail a message to another user
    <break-thread>#break the thread in two
    <change-folder>copen a different folder
    <change-folder-readonly>Esc copen a different folder in read only mode
    <next-unread-mailbox> open next mailbox with new mail
    <collapse-thread>Esc vcollapse/uncollapse current thread
    <collapse-all>Esc Vcollapse/uncollapse all threads
    <copy-message>Ccopy a message to a file/mailbox
    <decode-copy>Esc Cmake decoded (text/plain) copy
    <decode-save>Esc smake decoded copy (text/plain) and delete
    <delete-message>ddelete the current entry
    <delete-pattern>Ddelete messages matching a pattern
    <delete-thread>^Ddelete all messages in thread
    <delete-subthread>Esc ddelete all messages in subthread
    <edit>eedit the raw message
    <edit-type>^Eedit attachment content type
    <forward-message>fforward a message with comments
    <flag-message>Ftoggle a message's 'important' flag
    <group-reply>greply to all recipients
    <fetch-mail>Gretrieve mail from POP server
    <imap-fetch-mail> force retrieval of mail from IMAP server
    <display-toggle-weed>hdisplay message and toggle header weeding
    <next-undeleted>jmove to the next undeleted message
    <previous-undeleted>kmove to the previous undeleted message
    <limit>lshow only messages matching a pattern
    <link-threads>&link tagged message to the current one
    <list-reply>Lreply to specified mailing list
    <mail>mcompose a new mail message
    <toggle-new>Ntoggle a message's 'new' flag
    <toggle-write>%toggle whether the mailbox will be rewritten
    <next-thread>^Njump to the next thread
    <next-subthread>Esc njump to the next subthread
    <query>Qquery external program for addresses
    <quit>qsave changes to mailbox and quit
    <reply>rreply to a message
    <show-limit>Esc lshow currently active limit pattern
    <sort-mailbox>osort messages
    <sort-reverse>Osort messages in reverse order
    <print-message>pprint the current entry
    <previous-thread>^Pjump to previous thread
    <previous-subthread>Esc pjump to previous subthread
    <recall-message>Rrecall a postponed message
    <read-thread>^Rmark the current thread as read
    <read-subthread>Esc rmark the current subthread as read
    <resend-message>Esc euse the current message as a template for a new one
    <save-message>ssave message/attachment to a mailbox/file
    <tag-pattern>Ttag messages matching a pattern
    <tag-subthread> tag the current subthread
    <tag-thread>Esc ttag the current thread
    <untag-pattern>^Tuntag messages matching a pattern
    <undelete-message>uundelete the current entry
    <undelete-pattern>Uundelete messages matching a pattern
    <undelete-subthread>Esc uundelete all messages in subthread
    <undelete-thread>^Uundelete all messages in thread
    <view-attachments>vshow MIME attachments
    <show-version>Vshow the Mutt version number and date
    <set-flag>wset a status flag on a message
    <clear-flag>Wclear a status flag from a message
    <display-message><Return>display a message
    <buffy-list>.list mailboxes with new mail
    <sync-mailbox>$save changes to mailbox
    <display-address>@display full address of sender
    <pipe-message>|pipe message/attachment to a shell command
    <next-new> jump to the next new message
    <next-new-then-unread><Tab>jump to the next new or unread message
    <previous-new> jump to the previous new message
    <previous-new-then-unread>Esc <Tab>jump to the previous new or unread message
    <next-unread> jump to the next unread message
    <previous-unread> jump to the previous unread message
    <parent-message>Pjump to parent message in thread
    <extract-keys>^Kextract supported public keys
    <forget-passphrase>^Fwipe passphrase(s) from memory
    <check-traditional-pgp>Esc Pcheck for classic PGP
    <mail-key>Esc kmail a PGP public key
    <decrypt-copy> make decrypted copy
    <decrypt-save> make decrypted copy and delete

    4.3. Pager Menu

    Table 9.4. Default pager Function Bindings

    FunctionDefault keyDescription
    <break-thread>#break the thread in two
    <create-alias>acreate an alias from a message sender
    <bounce-message>bremail a message to another user
    <change-folder>copen a different folder
    <change-folder-readonly>Esc copen a different folder in read only mode
    <next-unread-mailbox> open next mailbox with new mail
    <copy-message>Ccopy a message to a file/mailbox
    <decode-copy>Esc Cmake decoded (text/plain) copy
    <delete-message>ddelete the current entry
    <delete-thread>^Ddelete all messages in thread
    <delete-subthread>Esc ddelete all messages in subthread
    <set-flag>wset a status flag on a message
    <clear-flag>Wclear a status flag from a message
    <edit>eedit the raw message
    <edit-type>^Eedit attachment content type
    <forward-message>fforward a message with comments
    <flag-message>Ftoggle a message's 'important' flag
    <group-reply>greply to all recipients
    <imap-fetch-mail> force retrieval of mail from IMAP server
    <display-toggle-weed>hdisplay message and toggle header weeding
    <next-undeleted>jmove to the next undeleted message
    <next-entry>Jmove to the next entry
    <previous-undeleted>kmove to the previous undeleted message
    <previous-entry>Kmove to the previous entry
    <link-threads>&link tagged message to the current one
    <list-reply>Lreply to specified mailing list
    <redraw-screen>^Lclear and redraw the screen
    <mail>mcompose a new mail message
    <mark-as-new>Ntoggle a message's 'new' flag
    <search-next>nsearch for next match
    <next-thread>^Njump to the next thread
    <next-subthread>Esc njump to the next subthread
    <print-message>pprint the current entry
    <previous-thread>^Pjump to previous thread
    <previous-subthread>Esc pjump to previous subthread
    <quit>Qsave changes to mailbox and quit
    <exit>qexit this menu
    <reply>rreply to a message
    <recall-message>Rrecall a postponed message
    <read-thread>^Rmark the current thread as read
    <read-subthread>Esc rmark the current subthread as read
    <resend-message>Esc euse the current message as a template for a new one
    <save-message>ssave message/attachment to a mailbox/file
    <skip-quoted>Sskip beyond quoted text
    <decode-save>Esc smake decoded copy (text/plain) and delete
    <tag-message>ttag the current entry
    <toggle-quoted>Ttoggle display of quoted text
    <undelete-message>uundelete the current entry
    <undelete-subthread>Esc uundelete all messages in subthread
    <undelete-thread>^Uundelete all messages in thread
    <view-attachments>vshow MIME attachments
    <show-version>Vshow the Mutt version number and date
    <search-toggle>\\toggle search pattern coloring
    <display-address>@display full address of sender
    <next-new> jump to the next new message
    <pipe-message>|pipe message/attachment to a shell command
    <help>?this screen
    <next-page><Space>move to the next page
    <previous-page>-move to the previous page
    <top>^jump to the top of the message
    <sync-mailbox>$save changes to mailbox
    <shell-escape>!invoke a command in a subshell
    <enter-command>:enter a muttrc command
    <buffy-list>.list mailboxes with new mail
    <search>/search for a regular expression
    <search-reverse>Esc /search backwards for a regular expression
    <search-opposite> search for next match in opposite direction
    <next-line><Return>scroll down one line
    <jump> jump to an index number
    <next-unread> jump to the next unread message
    <previous-new> jump to the previous new message
    <previous-unread> jump to the previous unread message
    <half-up> scroll up 1/2 page
    <half-down> scroll down 1/2 page
    <previous-line> scroll up one line
    <bottom> jump to the bottom of the message
    <parent-message>Pjump to parent message in thread
    <check-traditional-pgp>Esc Pcheck for classic PGP
    <mail-key>Esc kmail a PGP public key
    <extract-keys>^Kextract supported public keys
    <forget-passphrase>^Fwipe passphrase(s) from memory
    <decrypt-copy> make decrypted copy
    <decrypt-save> make decrypted copy and delete
    <what-key> display the keycode for a key press

    4.4. Alias Menu

    Table 9.5. Default alias Function Bindings

    FunctionDefault keyDescription
    <delete-entry>ddelete the current entry
    <undelete-entry>uundelete the current entry

    4.5. Query Menu

    Table 9.6. Default query Function Bindings

    FunctionDefault keyDescription
    <create-alias>acreate an alias from a message sender
    <mail>mcompose a new mail message
    <query>Qquery external program for addresses
    <query-append>Aappend new query results to current results

    4.6. Attach Menu

    Table 9.7. Default attach Function Bindings

    FunctionDefault keyDescription
    <bounce-message>bremail a message to another user
    <display-toggle-weed>hdisplay message and toggle header weeding
    <edit-type>^Eedit attachment content type
    <print-entry>pprint the current entry
    <save-entry>ssave message/attachment to a mailbox/file
    <pipe-entry>|pipe message/attachment to a shell command
    <view-mailcap>mforce viewing of attachment using mailcap
    <reply>rreply to a message
    <resend-message>Esc euse the current message as a template for a new one
    <group-reply>greply to all recipients
    <list-reply>Lreply to specified mailing list
    <forward-message>fforward a message with comments
    <view-text>Tview attachment as text
    <view-attach><Return>view attachment using mailcap entry if necessary
    <delete-entry>ddelete the current entry
    <undelete-entry>uundelete the current entry
    <collapse-parts>vToggle display of subparts
    <check-traditional-pgp>Esc Pcheck for classic PGP
    <extract-keys>^Kextract supported public keys
    <forget-passphrase>^Fwipe passphrase(s) from memory

    4.7. Compose Menu

    Table 9.8. Default compose Function Bindings

    FunctionDefault keyDescription
    <attach-file>aattach file(s) to this message
    <attach-message>Aattach message(s) to this message
    <edit-bcc>bedit the BCC list
    <edit-cc>cedit the CC list
    <copy-file>Csave message/attachment to a mailbox/file
    <detach-file>Ddelete the current entry
    <toggle-disposition>^Dtoggle disposition between inline/attachment
    <edit-description>dedit attachment description
    <edit-message>eedit the message
    <edit-headers>Eedit the message with headers
    <edit-file>^X eedit the file to be attached
    <edit-encoding>^Eedit attachment transfer-encoding
    <edit-from>Esc fedit the from field
    <edit-fcc>fenter a file to save a copy of this message in
    <filter-entry>Ffilter attachment through a shell command
    <get-attachment>Gget a temporary copy of an attachment
    <display-toggle-weed>hdisplay message and toggle header weeding
    <ispell>irun ispell on the message
    <print-entry>lprint the current entry
    <edit-mime>medit attachment using mailcap entry
    <new-mime>ncompose new attachment using mailcap entry
    <postpone-message>Psave this message to send later
    <edit-reply-to>redit the Reply-To field
    <rename-file>Rrename/move an attached file
    <edit-subject>sedit the subject of this message
    <edit-to>tedit the TO list
    <edit-type>^Tedit attachment content type
    <write-fcc>wwrite the message to a folder
    <toggle-unlink>utoggle whether to delete file after sending it
    <toggle-recode> toggle recoding of this attachment
    <update-encoding>Uupdate an attachment's encoding info
    <view-attach><Return>view attachment using mailcap entry if necessary
    <send-message>ysend the message
    <pipe-entry>|pipe message/attachment to a shell command
    <attach-key>Esc kattach a PGP public key
    <pgp-menu>pshow PGP options
    <forget-passphrase>^Fwipe passphrase(s) from memory
    <smime-menu>Sshow S/MIME options
    <mix>Msend the message through a mixmaster remailer chain

    4.8. Postpone Menu

    Table 9.9. Default postpone Function Bindings

    FunctionDefault keyDescription
    <delete-entry>ddelete the current entry
    <undelete-entry>uundelete the current entry

    4.9. Browser Menu

    Table 9.10. Default browser Function Bindings

    FunctionDefault keyDescription
    <change-dir>cchange directories
    <display-filename>@display the currently selected file's name
    <enter-mask>menter a file mask
    <sort>osort messages
    <sort-reverse>Osort messages in reverse order
    <select-new>Nselect a new file in this directory
    <check-new> check mailboxes for new mail
    <toggle-mailboxes><Tab>toggle whether to browse mailboxes or all files
    <view-file><Space>view file
    <buffy-list>.list mailboxes with new mail
    <create-mailbox>Ccreate a new mailbox (IMAP only)
    <delete-mailbox>ddelete the current mailbox (IMAP only)
    <rename-mailbox>rrename the current mailbox (IMAP only)
    <subscribe>ssubscribe to current mailbox (IMAP only)
    <unsubscribe>uunsubscribe from current mailbox (IMAP only)
    <toggle-subscribed>Ttoggle view all/subscribed mailboxes (IMAP only)

    4.10. Pgp Menu

    Table 9.11. Default pgp Function Bindings

    FunctionDefault keyDescription
    <verify-key>cverify a PGP public key
    <view-name>%view the key's user id

    4.11. Smime Menu

    Table 9.12. Default smime Function Bindings

    FunctionDefault keyDescription
    <verify-key>cverify a PGP public key
    <view-name>%view the key's user id

    4.12. Mix Menu

    Table 9.13. Default mix Function Bindings

    FunctionDefault keyDescription
    <accept><Return>Accept the chain constructed
    <append>aAppend a remailer to the chain
    <insert>iInsert a remailer into the chain
    <delete>dDelete a remailer from the chain
    <chain-prev><Left>Select the previous element of the chain
    <chain-next><Right>Select the next element of the chain

    4.13. Editor Menu

    Table 9.14. Default editor Function Bindings

    FunctionDefault keyDescription
    <bol>^Ajump to the beginning of the line
    <backward-char>^Bmove the cursor one character to the left
    <backward-word>Esc bmove the cursor to the beginning of the word
    <capitalize-word>Esc ccapitalize the word
    <downcase-word>Esc lconvert the word to lower case
    <upcase-word>Esc uconvert the word to upper case
    <delete-char>^Ddelete the char under the cursor
    <eol>^Ejump to the end of the line
    <forward-char>^Fmove the cursor one character to the right
    <forward-word>Esc fmove the cursor to the end of the word
    <backspace><Backspace>delete the char in front of the cursor
    <kill-eol>^Kdelete chars from cursor to end of line
    <kill-eow>Esc ddelete chars from the cursor to the end of the word
    <kill-line>^Udelete all chars on the line
    <quote-char>^Vquote the next typed key
    <kill-word>^Wdelete the word in front of the cursor
    <complete><Tab>complete filename or alias
    <complete-query>^Tcomplete address with query
    <buffy-cycle><Space>cycle among incoming mailboxes
    <history-up> scroll up through the history list
    <history-down> scroll down through the history list
    <transpose-chars> transpose character under cursor with previous

    Chapter 10. Miscellany

    1. Acknowledgements

    -Kari Hurtta -co-developed the original MIME parsing code back in the ELM-ME days. +

    Table 9.2. Default Generic Menu Bindings

    FunctionDefault keyDescription
    <top-page>Hmove to the top of the page
    <next-entry>jmove to the next entry
    <previous-entry>kmove to the previous entry
    <bottom-page>Lmove to the bottom of the page
    <refresh>^Lclear and redraw the screen
    <middle-page>Mmove to the middle of the page
    <search-next>nsearch for next match
    <exit>qexit this menu
    <tag-entry>ttag the current entry
    <next-page>zmove to the next page
    <previous-page>Zmove to the previous page
    <last-entry>*move to the last entry
    <first-entry>=move to the first entry
    <enter-command>:enter a muttrc command
    <next-line>>scroll down one line
    <previous-line><scroll up one line
    <half-up>[scroll up 1/2 page
    <half-down>]scroll down 1/2 page
    <help>?this screen
    <tag-prefix>;apply next function to tagged messages
    <tag-prefix-cond> apply next function ONLY to tagged messages
    <end-cond> end of conditional execution (noop)
    <shell-escape>!invoke a command in a subshell
    <select-entry><Return>select the current entry
    <search>/search for a regular expression
    <search-reverse>Esc /search backwards for a regular expression
    <search-opposite> search for next match in opposite direction
    <jump> jump to an index number
    <current-top> move entry to top of screen
    <current-middle> move entry to middle of screen
    <current-bottom> move entry to bottom of screen
    <what-key> display the keycode for a key press

    4.2. Index Menu

    Table 9.3. Default Index Menu Bindings

    FunctionDefault keyDescription
    <create-alias>acreate an alias from a message sender
    <bounce-message>bremail a message to another user
    <break-thread>#break the thread in two
    <change-folder>copen a different folder
    <change-folder-readonly>Esc copen a different folder in read only mode
    <next-unread-mailbox> open next mailbox with new mail
    <collapse-thread>Esc vcollapse/uncollapse current thread
    <collapse-all>Esc Vcollapse/uncollapse all threads
    <copy-message>Ccopy a message to a file/mailbox
    <decode-copy>Esc Cmake decoded (text/plain) copy
    <decode-save>Esc smake decoded copy (text/plain) and delete
    <delete-message>ddelete the current entry
    <delete-pattern>Ddelete messages matching a pattern
    <delete-thread>^Ddelete all messages in thread
    <delete-subthread>Esc ddelete all messages in subthread
    <edit>eedit the raw message
    <edit-type>^Eedit attachment content type
    <forward-message>fforward a message with comments
    <flag-message>Ftoggle a message's 'important' flag
    <group-reply>greply to all recipients
    <fetch-mail>Gretrieve mail from POP server
    <imap-fetch-mail> force retrieval of mail from IMAP server
    <imap-logout-all> logout from all IMAP servers
    <display-toggle-weed>hdisplay message and toggle header weeding
    <next-undeleted>jmove to the next undeleted message
    <previous-undeleted>kmove to the previous undeleted message
    <limit>lshow only messages matching a pattern
    <link-threads>&link tagged message to the current one
    <list-reply>Lreply to specified mailing list
    <mail>mcompose a new mail message
    <toggle-new>Ntoggle a message's 'new' flag
    <toggle-write>%toggle whether the mailbox will be rewritten
    <next-thread>^Njump to the next thread
    <next-subthread>Esc njump to the next subthread
    <query>Qquery external program for addresses
    <quit>qsave changes to mailbox and quit
    <reply>rreply to a message
    <show-limit>Esc lshow currently active limit pattern
    <sort-mailbox>osort messages
    <sort-reverse>Osort messages in reverse order
    <print-message>pprint the current entry
    <previous-thread>^Pjump to previous thread
    <previous-subthread>Esc pjump to previous subthread
    <recall-message>Rrecall a postponed message
    <read-thread>^Rmark the current thread as read
    <read-subthread>Esc rmark the current subthread as read
    <resend-message>Esc euse the current message as a template for a new one
    <save-message>ssave message/attachment to a mailbox/file
    <tag-pattern>Ttag messages matching a pattern
    <tag-subthread> tag the current subthread
    <tag-thread>Esc ttag the current thread
    <untag-pattern>^Tuntag messages matching a pattern
    <undelete-message>uundelete the current entry
    <undelete-pattern>Uundelete messages matching a pattern
    <undelete-subthread>Esc uundelete all messages in subthread
    <undelete-thread>^Uundelete all messages in thread
    <view-attachments>vshow MIME attachments
    <show-version>Vshow the Mutt version number and date
    <set-flag>wset a status flag on a message
    <clear-flag>Wclear a status flag from a message
    <display-message><Return>display a message
    <buffy-list>.list mailboxes with new mail
    <sync-mailbox>$save changes to mailbox
    <display-address>@display full address of sender
    <pipe-message>|pipe message/attachment to a shell command
    <next-new> jump to the next new message
    <next-new-then-unread><Tab>jump to the next new or unread message
    <previous-new> jump to the previous new message
    <previous-new-then-unread>Esc <Tab>jump to the previous new or unread message
    <next-unread> jump to the next unread message
    <previous-unread> jump to the previous unread message
    <parent-message>Pjump to parent message in thread
    <extract-keys>^Kextract supported public keys
    <forget-passphrase>^Fwipe passphrase(s) from memory
    <check-traditional-pgp>Esc Pcheck for classic PGP
    <mail-key>Esc kmail a PGP public key
    <decrypt-copy> make decrypted copy
    <decrypt-save> make decrypted copy and delete

    4.3. Pager Menu

    Table 9.4. Default Pager Menu Bindings

    FunctionDefault keyDescription
    <break-thread>#break the thread in two
    <create-alias>acreate an alias from a message sender
    <bounce-message>bremail a message to another user
    <change-folder>copen a different folder
    <change-folder-readonly>Esc copen a different folder in read only mode
    <next-unread-mailbox> open next mailbox with new mail
    <copy-message>Ccopy a message to a file/mailbox
    <decode-copy>Esc Cmake decoded (text/plain) copy
    <delete-message>ddelete the current entry
    <delete-thread>^Ddelete all messages in thread
    <delete-subthread>Esc ddelete all messages in subthread
    <set-flag>wset a status flag on a message
    <clear-flag>Wclear a status flag from a message
    <edit>eedit the raw message
    <edit-type>^Eedit attachment content type
    <forward-message>fforward a message with comments
    <flag-message>Ftoggle a message's 'important' flag
    <group-reply>greply to all recipients
    <imap-fetch-mail> force retrieval of mail from IMAP server
    <imap-logout-all> logout from all IMAP servers
    <display-toggle-weed>hdisplay message and toggle header weeding
    <next-undeleted>jmove to the next undeleted message
    <next-entry>Jmove to the next entry
    <previous-undeleted>kmove to the previous undeleted message
    <previous-entry>Kmove to the previous entry
    <link-threads>&link tagged message to the current one
    <list-reply>Lreply to specified mailing list
    <redraw-screen>^Lclear and redraw the screen
    <mail>mcompose a new mail message
    <mark-as-new>Ntoggle a message's 'new' flag
    <search-next>nsearch for next match
    <next-thread>^Njump to the next thread
    <next-subthread>Esc njump to the next subthread
    <sort-mailbox>osort messages
    <sort-reverse>Osort messages in reverse order
    <print-message>pprint the current entry
    <previous-thread>^Pjump to previous thread
    <previous-subthread>Esc pjump to previous subthread
    <quit>Qsave changes to mailbox and quit
    <exit>qexit this menu
    <reply>rreply to a message
    <recall-message>Rrecall a postponed message
    <read-thread>^Rmark the current thread as read
    <read-subthread>Esc rmark the current subthread as read
    <resend-message>Esc euse the current message as a template for a new one
    <save-message>ssave message/attachment to a mailbox/file
    <skip-quoted>Sskip beyond quoted text
    <decode-save>Esc smake decoded copy (text/plain) and delete
    <tag-message>ttag the current entry
    <toggle-quoted>Ttoggle display of quoted text
    <undelete-message>uundelete the current entry
    <undelete-subthread>Esc uundelete all messages in subthread
    <undelete-thread>^Uundelete all messages in thread
    <view-attachments>vshow MIME attachments
    <show-version>Vshow the Mutt version number and date
    <search-toggle>\\toggle search pattern coloring
    <display-address>@display full address of sender
    <next-new> jump to the next new message
    <pipe-message>|pipe message/attachment to a shell command
    <help>?this screen
    <next-page><Space>move to the next page
    <previous-page>-move to the previous page
    <top>^jump to the top of the message
    <sync-mailbox>$save changes to mailbox
    <shell-escape>!invoke a command in a subshell
    <enter-command>:enter a muttrc command
    <buffy-list>.list mailboxes with new mail
    <search>/search for a regular expression
    <search-reverse>Esc /search backwards for a regular expression
    <search-opposite> search for next match in opposite direction
    <next-line><Return>scroll down one line
    <jump> jump to an index number
    <next-unread> jump to the next unread message
    <previous-new> jump to the previous new message
    <previous-unread> jump to the previous unread message
    <half-up> scroll up 1/2 page
    <half-down> scroll down 1/2 page
    <previous-line> scroll up one line
    <bottom> jump to the bottom of the message
    <parent-message>Pjump to parent message in thread
    <check-traditional-pgp>Esc Pcheck for classic PGP
    <mail-key>Esc kmail a PGP public key
    <extract-keys>^Kextract supported public keys
    <forget-passphrase>^Fwipe passphrase(s) from memory
    <decrypt-copy> make decrypted copy
    <decrypt-save> make decrypted copy and delete
    <what-key> display the keycode for a key press

    4.4. Alias Menu

    Table 9.5. Default Alias Menu Bindings

    FunctionDefault keyDescription
    <delete-entry>ddelete the current entry
    <undelete-entry>uundelete the current entry

    4.5. Query Menu

    Table 9.6. Default Query Menu Bindings

    FunctionDefault keyDescription
    <create-alias>acreate an alias from a message sender
    <mail>mcompose a new mail message
    <query>Qquery external program for addresses
    <query-append>Aappend new query results to current results

    4.6. Attachment Menu

    Table 9.7. Default Attachment Menu Bindings

    FunctionDefault keyDescription
    <bounce-message>bremail a message to another user
    <display-toggle-weed>hdisplay message and toggle header weeding
    <edit-type>^Eedit attachment content type
    <print-entry>pprint the current entry
    <save-entry>ssave message/attachment to a mailbox/file
    <pipe-entry>|pipe message/attachment to a shell command
    <view-mailcap>mforce viewing of attachment using mailcap
    <reply>rreply to a message
    <resend-message>Esc euse the current message as a template for a new one
    <group-reply>greply to all recipients
    <list-reply>Lreply to specified mailing list
    <forward-message>fforward a message with comments
    <view-text>Tview attachment as text
    <view-attach><Return>view attachment using mailcap entry if necessary
    <delete-entry>ddelete the current entry
    <undelete-entry>uundelete the current entry
    <collapse-parts>vToggle display of subparts
    <check-traditional-pgp>Esc Pcheck for classic PGP
    <extract-keys>^Kextract supported public keys
    <forget-passphrase>^Fwipe passphrase(s) from memory

    4.7. Compose Menu

    Table 9.8. Default Compose Menu Bindings

    FunctionDefault keyDescription
    <attach-file>aattach file(s) to this message
    <attach-message>Aattach message(s) to this message
    <edit-bcc>bedit the BCC list
    <edit-cc>cedit the CC list
    <copy-file>Csave message/attachment to a mailbox/file
    <detach-file>Ddelete the current entry
    <toggle-disposition>^Dtoggle disposition between inline/attachment
    <edit-description>dedit attachment description
    <edit-message>eedit the message
    <edit-headers>Eedit the message with headers
    <edit-file>^X eedit the file to be attached
    <edit-encoding>^Eedit attachment transfer-encoding
    <edit-from>Esc fedit the from field
    <edit-fcc>fenter a file to save a copy of this message in
    <filter-entry>Ffilter attachment through a shell command
    <get-attachment>Gget a temporary copy of an attachment
    <display-toggle-weed>hdisplay message and toggle header weeding
    <ispell>irun ispell on the message
    <print-entry>lprint the current entry
    <edit-mime>medit attachment using mailcap entry
    <new-mime>ncompose new attachment using mailcap entry
    <postpone-message>Psave this message to send later
    <edit-reply-to>redit the Reply-To field
    <rename-file>Rrename/move an attached file
    <edit-subject>sedit the subject of this message
    <edit-to>tedit the TO list
    <edit-type>^Tedit attachment content type
    <write-fcc>wwrite the message to a folder
    <toggle-unlink>utoggle whether to delete file after sending it
    <toggle-recode> toggle recoding of this attachment
    <update-encoding>Uupdate an attachment's encoding info
    <view-attach><Return>view attachment using mailcap entry if necessary
    <send-message>ysend the message
    <pipe-entry>|pipe message/attachment to a shell command
    <attach-key>Esc kattach a PGP public key
    <pgp-menu>pshow PGP options
    <forget-passphrase>^Fwipe passphrase(s) from memory
    <smime-menu>Sshow S/MIME options
    <mix>Msend the message through a mixmaster remailer chain

    4.8. Postpone Menu

    Table 9.9. Default Postpone Menu Bindings

    FunctionDefault keyDescription
    <delete-entry>ddelete the current entry
    <undelete-entry>uundelete the current entry

    4.9. Browser Menu

    Table 9.10. Default Browser Menu Bindings

    FunctionDefault keyDescription
    <change-dir>cchange directories
    <display-filename>@display the currently selected file's name
    <enter-mask>menter a file mask
    <sort>osort messages
    <sort-reverse>Osort messages in reverse order
    <select-new>Nselect a new file in this directory
    <check-new> check mailboxes for new mail
    <toggle-mailboxes><Tab>toggle whether to browse mailboxes or all files
    <view-file><Space>view file
    <buffy-list>.list mailboxes with new mail
    <create-mailbox>Ccreate a new mailbox (IMAP only)
    <delete-mailbox>ddelete the current mailbox (IMAP only)
    <rename-mailbox>rrename the current mailbox (IMAP only)
    <subscribe>ssubscribe to current mailbox (IMAP only)
    <unsubscribe>uunsubscribe from current mailbox (IMAP only)
    <toggle-subscribed>Ttoggle view all/subscribed mailboxes (IMAP only)

    4.10. Pgp Menu

    Table 9.11. Default Pgp Menu Bindings

    FunctionDefault keyDescription
    <verify-key>cverify a PGP public key
    <view-name>%view the key's user id

    4.11. Smime Menu

    Table 9.12. Default Smime Menu Bindings

    FunctionDefault keyDescription
    <verify-key>cverify a PGP public key
    <view-name>%view the key's user id

    4.12. Mixmaster Menu

    Table 9.13. Default Mixmaster Menu Bindings

    FunctionDefault keyDescription
    <accept><Return>Accept the chain constructed
    <append>aAppend a remailer to the chain
    <insert>iInsert a remailer into the chain
    <delete>dDelete a remailer from the chain
    <chain-prev><Left>Select the previous element of the chain
    <chain-next><Right>Select the next element of the chain

    4.13. Editor Menu

    Table 9.14. Default Editor Menu Bindings

    FunctionDefault keyDescription
    <bol>^Ajump to the beginning of the line
    <backward-char>^Bmove the cursor one character to the left
    <backward-word>Esc bmove the cursor to the beginning of the word
    <capitalize-word>Esc ccapitalize the word
    <downcase-word>Esc lconvert the word to lower case
    <upcase-word>Esc uconvert the word to upper case
    <delete-char>^Ddelete the char under the cursor
    <eol>^Ejump to the end of the line
    <forward-char>^Fmove the cursor one character to the right
    <forward-word>Esc fmove the cursor to the end of the word
    <backspace><Backspace>delete the char in front of the cursor
    <kill-eol>^Kdelete chars from cursor to end of line
    <kill-eow>Esc ddelete chars from the cursor to the end of the word
    <kill-line>^Udelete all chars on the line
    <quote-char>^Vquote the next typed key
    <kill-word>^Wdelete the word in front of the cursor
    <complete><Tab>complete filename or alias
    <complete-query>^Tcomplete address with query
    <buffy-cycle><Space>cycle among incoming mailboxes
    <history-up> scroll up through the history list
    <history-down> scroll down through the history list
    <transpose-chars> transpose character under cursor with previous

    Chapter 10. Miscellany

    1. Acknowledgements

    +Kari Hurtta co-developed the original +MIME parsing code back in the ELM-ME days.

    The following people have been very helpful to the development of Mutt: -

    2. About This Document

    -This document was written in DocBook, -and then rendered using the Gnome XSLT toolkit. +

    2. About This Document

    +This document was written in DocBook, and then rendered +using the Gnome XSLT +toolkit.

    diff --git a/doc/manual.txt b/doc/manual.txt index 668b97c..659b0ac 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -4,7 +4,7 @@ Michael Elkins -version 1.5.20 (2009-06-14) +version 1.5.21 (2010-09-15) Abstract @@ -21,7 +21,7 @@ Table of Contents 3. Getting Mutt 4. Mutt Online Resources 5. Contributing to Mutt - 6. Typograhical Conventions + 6. Typographical Conventions 7. Copyright 2. Getting Started @@ -73,8 +73,9 @@ Table of Contents 9. Using Color and Mono Video Attributes 10. Message Header Display - 10.1. Selecting Headers - 10.2. Ordering Displayed Headers + 10.1. Header Display + 10.2. Selecting Headers + 10.3. Ordering Displayed Headers 11. Alternative Addresses 12. Mailing Lists @@ -96,6 +97,7 @@ Table of Contents 26.1. Variable Types 26.2. Commands 26.3. User-Defined Variables + 26.4. Type Conversions 27. Reading Initialization Commands From Another File 28. Removing Hooks @@ -108,40 +110,46 @@ Table of Contents 4. Advanced Usage - 1. Regular Expressions - 2. Patterns: Searching, Limiting and Tagging + 1. Character Set Handling + 2. Regular Expressions + 3. Patterns: Searching, Limiting and Tagging - 2.1. Pattern Modifier - 2.2. Simple Searches - 2.3. Nesting and Boolean Operators - 2.4. Searching by Date + 3.1. Pattern Modifier + 3.2. Simple Searches + 3.3. Nesting and Boolean Operators + 3.4. Searching by Date - 3. Using Tags - 4. Using Hooks + 4. Using Tags + 5. Using Hooks - 4.1. Message Matching in Hooks + 5.1. Message Matching in Hooks - 5. External Address Queries - 6. Mailbox Formats - 7. Mailbox Shortcuts - 8. Handling Mailing Lists - 9. Handling multiple folders - 10. Editing Threads + 6. External Address Queries + 7. Mailbox Formats + 8. Mailbox Shortcuts + 9. Handling Mailing Lists + 10. New Mail Detection - 10.1. Linking Threads - 10.2. Breaking Threads + 10.1. How New Mail Detection Works + 10.2. Polling For New Mail - 11. Delivery Status Notification (DSN) Support - 12. Start a WWW Browser on URLs - 13. Miscellany + 11. Editing Threads + + 11.1. Linking Threads + 11.2. Breaking Threads + + 12. Delivery Status Notification (DSN) Support + 13. Start a WWW Browser on URLs + 14. Miscellany 5. Mutt's MIME Support 1. Using MIME in Mutt - 1.1. Viewing MIME Messages in the Pager - 1.2. The Attachment Menu - 1.3. The Compose Menu + 1.1. MIME Overview + 1.2. Viewing MIME Messages in the Pager + 1.3. The Attachment Menu + 1.4. The Compose Menu 2. MIME Type Configuration with mime.types 3. MIME Viewer Configuration with Mailcap @@ -176,7 +184,8 @@ Table of Contents 7.1. Header Caching 7.2. Body Caching - 7.3. Maintenance + 7.3. Cache Directories + 7.4. Maintenance 8. Exact Address Generation 9. Sending Anonymous Messages via Mixmaster @@ -322,198 +331,200 @@ Table of Contents 3.116. keep_flagged 3.117. locale 3.118. mail_check - 3.119. mailcap_path - 3.120. mailcap_sanitize - 3.121. maildir_header_cache_verify - 3.122. maildir_trash - 3.123. mark_old - 3.124. markers - 3.125. mask - 3.126. mbox - 3.127. mbox_type - 3.128. menu_context - 3.129. menu_move_off - 3.130. menu_scroll - 3.131. message_cache_clean - 3.132. message_cachedir - 3.133. message_format - 3.134. meta_key - 3.135. metoo - 3.136. mh_purge - 3.137. mh_seq_flagged - 3.138. mh_seq_replied - 3.139. mh_seq_unseen - 3.140. mime_forward - 3.141. mime_forward_decode - 3.142. mime_forward_rest - 3.143. mix_entry_format - 3.144. mixmaster - 3.145. move - 3.146. narrow_tree - 3.147. net_inc - 3.148. pager - 3.149. pager_context - 3.150. pager_format - 3.151. pager_index_lines - 3.152. pager_stop - 3.153. pgp_auto_decode - 3.154. pgp_autoinline - 3.155. pgp_check_exit - 3.156. pgp_clearsign_command - 3.157. pgp_decode_command - 3.158. pgp_decrypt_command - 3.159. pgp_encrypt_only_command - 3.160. pgp_encrypt_sign_command - 3.161. pgp_entry_format - 3.162. pgp_export_command - 3.163. pgp_getkeys_command - 3.164. pgp_good_sign - 3.165. pgp_ignore_subkeys - 3.166. pgp_import_command - 3.167. pgp_list_pubring_command - 3.168. pgp_list_secring_command - 3.169. pgp_long_ids - 3.170. pgp_mime_auto - 3.171. pgp_replyinline - 3.172. pgp_retainable_sigs - 3.173. pgp_show_unusable - 3.174. pgp_sign_as - 3.175. pgp_sign_command - 3.176. pgp_sort_keys - 3.177. pgp_strict_enc - 3.178. pgp_timeout - 3.179. pgp_use_gpg_agent - 3.180. pgp_verify_command - 3.181. pgp_verify_key_command - 3.182. pipe_decode - 3.183. pipe_sep - 3.184. pipe_split - 3.185. pop_auth_try_all - 3.186. pop_authenticators - 3.187. pop_checkinterval - 3.188. pop_delete - 3.189. pop_host - 3.190. pop_last - 3.191. pop_pass - 3.192. pop_reconnect - 3.193. pop_user - 3.194. post_indent_string - 3.195. postpone - 3.196. postponed - 3.197. preconnect - 3.198. print - 3.199. print_command - 3.200. print_decode - 3.201. print_split - 3.202. prompt_after - 3.203. query_command - 3.204. query_format - 3.205. quit - 3.206. quote_regexp - 3.207. read_inc - 3.208. read_only - 3.209. realname - 3.210. recall - 3.211. record - 3.212. reply_regexp - 3.213. reply_self - 3.214. reply_to - 3.215. resolve - 3.216. reverse_alias - 3.217. reverse_name - 3.218. reverse_realname - 3.219. rfc2047_parameters - 3.220. save_address - 3.221. save_empty - 3.222. save_history - 3.223. save_name - 3.224. score - 3.225. score_threshold_delete - 3.226. score_threshold_flag - 3.227. score_threshold_read - 3.228. search_context - 3.229. send_charset - 3.230. sendmail - 3.231. sendmail_wait - 3.232. shell - 3.233. sig_dashes - 3.234. sig_on_top - 3.235. signature - 3.236. simple_search - 3.237. sleep_time - 3.238. smart_wrap - 3.239. smileys - 3.240. smime_ask_cert_label - 3.241. smime_ca_location - 3.242. smime_certificates - 3.243. smime_decrypt_command - 3.244. smime_decrypt_use_default_key - 3.245. smime_default_key - 3.246. smime_encrypt_command - 3.247. smime_encrypt_with - 3.248. smime_get_cert_command - 3.249. smime_get_cert_email_command - 3.250. smime_get_signer_cert_command - 3.251. smime_import_cert_command - 3.252. smime_is_default - 3.253. smime_keys - 3.254. smime_pk7out_command - 3.255. smime_sign_command - 3.256. smime_sign_opaque_command - 3.257. smime_timeout - 3.258. smime_verify_command - 3.259. smime_verify_opaque_command - 3.260. smtp_authenticators - 3.261. smtp_pass - 3.262. smtp_url - 3.263. sort - 3.264. sort_alias - 3.265. sort_aux - 3.266. sort_browser - 3.267. sort_re - 3.268. spam_separator - 3.269. spoolfile - 3.270. ssl_ca_certificates_file - 3.271. ssl_client_cert - 3.272. ssl_force_tls - 3.273. ssl_min_dh_prime_bits - 3.274. ssl_starttls - 3.275. ssl_use_sslv2 - 3.276. ssl_use_sslv3 - 3.277. ssl_use_tlsv1 - 3.278. ssl_usesystemcerts - 3.279. ssl_verify_dates - 3.280. ssl_verify_host - 3.281. status_chars - 3.282. status_format - 3.283. status_on_top - 3.284. strict_threads - 3.285. suspend - 3.286. text_flowed - 3.287. thorough_search - 3.288. thread_received - 3.289. tilde - 3.290. time_inc - 3.291. timeout - 3.292. tmpdir - 3.293. to_chars - 3.294. tunnel - 3.295. uncollapse_jump - 3.296. use_8bitmime - 3.297. use_domain - 3.298. use_envelope_from - 3.299. use_from - 3.300. use_idn - 3.301. use_ipv6 - 3.302. user_agent - 3.303. visual - 3.304. wait_key - 3.305. weed - 3.306. wrap - 3.307. wrap_search - 3.308. wrapmargin - 3.309. write_bcc - 3.310. write_inc + 3.119. mail_check_recent + 3.120. mailcap_path + 3.121. mailcap_sanitize + 3.122. maildir_header_cache_verify + 3.123. maildir_trash + 3.124. mark_old + 3.125. markers + 3.126. mask + 3.127. mbox + 3.128. mbox_type + 3.129. menu_context + 3.130. menu_move_off + 3.131. menu_scroll + 3.132. message_cache_clean + 3.133. message_cachedir + 3.134. message_format + 3.135. meta_key + 3.136. metoo + 3.137. mh_purge + 3.138. mh_seq_flagged + 3.139. mh_seq_replied + 3.140. mh_seq_unseen + 3.141. mime_forward + 3.142. mime_forward_decode + 3.143. mime_forward_rest + 3.144. mix_entry_format + 3.145. mixmaster + 3.146. move + 3.147. narrow_tree + 3.148. net_inc + 3.149. pager + 3.150. pager_context + 3.151. pager_format + 3.152. pager_index_lines + 3.153. pager_stop + 3.154. pgp_auto_decode + 3.155. pgp_autoinline + 3.156. pgp_check_exit + 3.157. pgp_clearsign_command + 3.158. pgp_decode_command + 3.159. pgp_decrypt_command + 3.160. pgp_encrypt_only_command + 3.161. pgp_encrypt_sign_command + 3.162. pgp_entry_format + 3.163. pgp_export_command + 3.164. pgp_getkeys_command + 3.165. pgp_good_sign + 3.166. pgp_ignore_subkeys + 3.167. pgp_import_command + 3.168. pgp_list_pubring_command + 3.169. pgp_list_secring_command + 3.170. pgp_long_ids + 3.171. pgp_mime_auto + 3.172. pgp_replyinline + 3.173. pgp_retainable_sigs + 3.174. pgp_show_unusable + 3.175. pgp_sign_as + 3.176. pgp_sign_command + 3.177. pgp_sort_keys + 3.178. pgp_strict_enc + 3.179. pgp_timeout + 3.180. pgp_use_gpg_agent + 3.181. pgp_verify_command + 3.182. pgp_verify_key_command + 3.183. pipe_decode + 3.184. pipe_sep + 3.185. pipe_split + 3.186. pop_auth_try_all + 3.187. pop_authenticators + 3.188. pop_checkinterval + 3.189. pop_delete + 3.190. pop_host + 3.191. pop_last + 3.192. pop_pass + 3.193. pop_reconnect + 3.194. pop_user + 3.195. post_indent_string + 3.196. postpone + 3.197. postponed + 3.198. preconnect + 3.199. print + 3.200. print_command + 3.201. print_decode + 3.202. print_split + 3.203. prompt_after + 3.204. query_command + 3.205. query_format + 3.206. quit + 3.207. quote_regexp + 3.208. read_inc + 3.209. read_only + 3.210. realname + 3.211. recall + 3.212. record + 3.213. reply_regexp + 3.214. reply_self + 3.215. reply_to + 3.216. resolve + 3.217. reverse_alias + 3.218. reverse_name + 3.219. reverse_realname + 3.220. rfc2047_parameters + 3.221. save_address + 3.222. save_empty + 3.223. save_history + 3.224. save_name + 3.225. score + 3.226. score_threshold_delete + 3.227. score_threshold_flag + 3.228. score_threshold_read + 3.229. search_context + 3.230. send_charset + 3.231. sendmail + 3.232. sendmail_wait + 3.233. shell + 3.234. sig_dashes + 3.235. sig_on_top + 3.236. signature + 3.237. simple_search + 3.238. sleep_time + 3.239. smart_wrap + 3.240. smileys + 3.241. smime_ask_cert_label + 3.242. smime_ca_location + 3.243. smime_certificates + 3.244. smime_decrypt_command + 3.245. smime_decrypt_use_default_key + 3.246. smime_default_key + 3.247. smime_encrypt_command + 3.248. smime_encrypt_with + 3.249. smime_get_cert_command + 3.250. smime_get_cert_email_command + 3.251. smime_get_signer_cert_command + 3.252. smime_import_cert_command + 3.253. smime_is_default + 3.254. smime_keys + 3.255. smime_pk7out_command + 3.256. smime_sign_command + 3.257. smime_sign_opaque_command + 3.258. smime_timeout + 3.259. smime_verify_command + 3.260. smime_verify_opaque_command + 3.261. smtp_authenticators + 3.262. smtp_pass + 3.263. smtp_url + 3.264. sort + 3.265. sort_alias + 3.266. sort_aux + 3.267. sort_browser + 3.268. sort_re + 3.269. spam_separator + 3.270. spoolfile + 3.271. ssl_ca_certificates_file + 3.272. ssl_client_cert + 3.273. ssl_force_tls + 3.274. ssl_min_dh_prime_bits + 3.275. ssl_starttls + 3.276. ssl_use_sslv2 + 3.277. ssl_use_sslv3 + 3.278. ssl_use_tlsv1 + 3.279. ssl_usesystemcerts + 3.280. ssl_verify_dates + 3.281. ssl_verify_host + 3.282. status_chars + 3.283. status_format + 3.284. status_on_top + 3.285. strict_threads + 3.286. suspend + 3.287. text_flowed + 3.288. thorough_search + 3.289. thread_received + 3.290. tilde + 3.291. time_inc + 3.292. timeout + 3.293. tmpdir + 3.294. to_chars + 3.295. tunnel + 3.296. uncollapse_jump + 3.297. use_8bitmime + 3.298. use_domain + 3.299. use_envelope_from + 3.300. use_from + 3.301. use_idn + 3.302. use_ipv6 + 3.303. user_agent + 3.304. visual + 3.305. wait_key + 3.306. weed + 3.307. wrap + 3.308. wrap_headers + 3.309. wrap_search + 3.310. wrapmargin + 3.311. write_bcc + 3.312. write_inc 4. Functions @@ -522,13 +533,13 @@ Table of Contents 4.3. Pager Menu 4.4. Alias Menu 4.5. Query Menu - 4.6. Attach Menu + 4.6. Attachment Menu 4.7. Compose Menu 4.8. Postpone Menu 4.9. Browser Menu 4.10. Pgp Menu 4.11. Smime Menu - 4.12. Mix Menu + 4.12. Mixmaster Menu 4.13. Editor Menu 10. Miscellany @@ -559,26 +570,28 @@ List of Tables 4.4. Pattern modifiers 4.5. Simple search keywords 4.6. Date units +4.7. Mailbox shortcuts +5.1. Supported MIME types 9.1. Command line options -9.2. Default generic Function Bindings -9.3. Default index Function Bindings -9.4. Default pager Function Bindings -9.5. Default alias Function Bindings -9.6. Default query Function Bindings -9.7. Default attach Function Bindings -9.8. Default compose Function Bindings -9.9. Default postpone Function Bindings -9.10. Default browser Function Bindings -9.11. Default pgp Function Bindings -9.12. Default smime Function Bindings -9.13. Default mix Function Bindings -9.14. Default editor Function Bindings +9.2. Default Generic Menu Bindings +9.3. Default Index Menu Bindings +9.4. Default Pager Menu Bindings +9.5. Default Alias Menu Bindings +9.6. Default Query Menu Bindings +9.7. Default Attachment Menu Bindings +9.8. Default Compose Menu Bindings +9.9. Default Postpone Menu Bindings +9.10. Default Browser Menu Bindings +9.11. Default Pgp Menu Bindings +9.12. Default Smime Menu Bindings +9.13. Default Mixmaster Menu Bindings +9.14. Default Editor Menu Bindings List of Examples 3.1. Multiple configuration commands per line 3.2. Commenting configuration files -3.3. Escaping quotes in congfiguration files +3.3. Escaping quotes in configuration files 3.4. Splitting long configuration commands over several lines 3.5. Using external command's output in configuration files 3.6. Using environment variables in configuration files @@ -593,11 +606,13 @@ List of Examples 3.15. Using user-defined variables for config file readability 3.16. Using user-defined variables for backing up other config option values 3.17. Deferring user-defined variable expansion to runtime -3.18. Using external filters in format strings +3.18. Type conversions using variables +3.19. Using external filters in format strings 4.1. Matching all addresses in address lists 4.2. Using boolean operators in patterns -4.3. Specifying a default hook -5.1. Attachment counting +4.3. Specifying a ?default? hook +5.1. mime.types +5.2. Attachment counting 6.1. URLs 6.2. Managing multiple accounts @@ -610,7 +625,7 @@ Table of Contents 3. Getting Mutt 4. Mutt Online Resources 5. Contributing to Mutt -6. Typograhical Conventions +6. Typographical Conventions 7. Copyright Mutt is a small but very powerful text-based MIME mail client. Mutt is highly @@ -627,13 +642,11 @@ The official homepage can be found at http://www.mutt.org/. To subscribe to one of the following mailing lists, send a message with the word subscribe in the body to list-name-request@mutt.org. - * -- low traffic list for announcements + * ? low traffic list for announcements - * -- help, bug reports and feature requests + * ? help, bug reports and feature requests - * -- development mailing list - -Note + * ? development mailing list All messages posted to mutt-announce are automatically forwarded to mutt-users, so you do not need to be subscribed to both lists. @@ -678,7 +691,7 @@ continue to maintain stale translations. For contributing code patches for new features and bug fixes, please refer to the developer pages at http://dev.mutt.org/ for more details. -6. Typograhical Conventions +6. Typographical Conventions This section lists typographical conventions followed throughout this manual. See table Table 1.1, ?Typographical conventions for special terms? for @@ -815,7 +828,7 @@ messages or to limit the index to show only matching messages. Mutt supports a ?hook? concept which allows the user to execute arbitrary configuration commands and functions in certain situations such as entering a folder, starting a new message or replying to an existing one. These hooks can -be used to highly customize Mutt's behaviour including managing multiple +be used to highly customize Mutt's behavior including managing multiple identities, customizing the display for a folder or even implementing auto-archiving based on a per-folder basis and much more. @@ -834,7 +847,7 @@ emails, each with its number on the left, its flags (new email, important email, email that has been forwarded or replied to, tagged email, ...), the date when email was sent, its sender, the email size, and the subject. Additionally, the index also shows thread hierarchies: when you reply to an -email, and the other person replies back, you can see the other's person email +email, and the other person replies back, you can see the other person's email in a "sub-tree" below. This is especially useful for personal email between a group of people or when you've subscribed to mailing lists. @@ -937,7 +950,7 @@ Table 2.2. Most common navigation keys in page-based menus |----------------------+---------------+----------------------| |J or | |scroll down one line | |----------------------+---------------+----------------------| -| ||sroll up one line | +| ||scroll up one line | |----------------------+---------------+----------------------| |K, or | |move to the next page | |----------------------+---------------+----------------------| @@ -1159,6 +1172,10 @@ Table 2.5. Message status flags |! |message is flagged | |----+-------------------------------------------------------------| |* |message is tagged | +|----+-------------------------------------------------------------| +|n |thread contains new messages (only if collapsed) | +|----+-------------------------------------------------------------| +|o |thread contains old messages (only if collapsed) | +------------------------------------------------------------------+ @@ -1169,9 +1186,9 @@ Table 2.6. Message recipient flags |----+-------------------------------------------------| |+ |message is to you and you only | |----+-------------------------------------------------| -|T |message is to you, but also to or cc'ed to others| +|T |message is to you, but also to or CC'ed to others| |----+-------------------------------------------------| -|C |message is cc'ed to you | +|C |message is CC'ed to you | |----+-------------------------------------------------| |F |message is from you | |----+-------------------------------------------------| @@ -1181,8 +1198,8 @@ Table 2.6. Message recipient flags 5.2. The Pager -By default, Mutt uses its builtin pager to display the contents of messages (an -external pager such as less(1) can be configured, see $pager variable). The +By default, Mutt uses its built-in pager to display the contents of messages +(an external pager such as less(1) can be configured, see $pager variable). The pager is very similar to the Unix program less(1) though not nearly as featureful. @@ -1635,6 +1652,11 @@ generate a References: field, which allows you to create a new message thread, for example to create a new message to a mailing list without having to enter the mailing list's address. +If you intend to start a new thread by replying, please make really sure you +remove the In-Reply-To: header in your editor. Otherwise, though you'll produce +a technically valid reply, some netiquette guardians will be annoyed by this +so-called ?thread hijacking?. + 6.3. Sending Cryptographically Signed/Encrypted Messages If you have told Mutt to PGP or S/MIME encrypt a message, it will guide you @@ -1712,7 +1734,7 @@ outgoing messages if the $text_flowed variable is set, specifically it does not add the trailing spaces. After editing the initial message text and before entering the compose menu, -Mutt properly space-stuffes the message. Space-stuffing is required by RfC3676 +Mutt properly space-stuffs the message. Space-stuffing is required by RfC3676 defining format=flowed and means to prepend a space to: * all lines starting with a space @@ -1806,8 +1828,9 @@ Table of Contents 9. Using Color and Mono Video Attributes 10. Message Header Display - 10.1. Selecting Headers - 10.2. Ordering Displayed Headers + 10.1. Header Display + 10.2. Selecting Headers + 10.3. Ordering Displayed Headers 11. Alternative Addresses 12. Mailing Lists @@ -1829,6 +1852,7 @@ Table of Contents 26.1. Variable Types 26.2. Commands 26.3. User-Defined Variables + 26.4. Type Conversions 27. Reading Initialization Commands From Another File 28. Removing Hooks @@ -1895,7 +1919,7 @@ backticks are evaluated inside of double quotes, but not for single quotes. example, if want to put quotes ?"? inside of a string, you can use ?\? to force the next character to be a literal instead of interpreted character. -Example 3.3. Escaping quotes in congfiguration files +Example 3.3. Escaping quotes in configuration files set realname="Michael \"MuttDude\" Elkins" @@ -1974,21 +1998,45 @@ Usage: group [ -group name ...] { -rx expr ... | -addr expr ... } ungroup [ -group name ...] { * | -rx expr ... | -addr expr ... } -group is used to directly add either addresses or regular expressions to the -specified group or groups. The different categories of arguments to the group -command can be in any order. The flags -rx and -addr specify what the following -strings (that cannot begin with a hyphen) should be interpreted as: either a -regular expression or an email address, respectively. +Mutt supports grouping addresses logically into named groups. An address or +address pattern can appear in several groups at the same time. These groups can +be used in patterns (for searching, limiting and tagging) and in hooks by using +group patterns. This can be useful to classify mail and take certain actions +depending on in what groups the message is. For example, the mutt user's +mailing list would fit into the categories ?mailing list? and ?mutt-related?. +Using send-hook, the sender can be set to a dedicated one for writing mailing +list messages, and the signature could be set to a mutt-related one for writing +to a mutt list ? for other lists, the list sender setting still applies but a +different signature can be selected. Or, given a group only containing +recipients known to accept encrypted mail, ?auto-encryption? can be achieved +easily. + +The group command is used to directly add either addresses or regular +expressions to the specified group or groups. The different categories of +arguments to the group command can be in any order. The flags -rx and -addr +specify what the following strings (that cannot begin with a hyphen) should be +interpreted as: either a regular expression or an email address, respectively. These address groups can also be created implicitly by the alias, lists, -subscribe and alternates commands by specifying the optional -group option. +subscribe and alternates commands by specifying the optional -group option. For +example, -Once defined, these address groups can be used in patterns to search for and -limit the display to messages matching a group. +alternates -group me address1 address2 +alternates -group me -group work address3 + +would create a group named ?me? which contains all your addresses and a group +named ?work? which contains only your work address address3. Besides many other +possibilities, this could be used to automatically mark your own messages in a +mailing list folder as read or use a special signature for work-related +messages. -ungroup is used to remove addresses or regular expressions from the specified -group or groups. The syntax is similar to the group command, however the -special character * can be used to empty a group of all of its contents. +The ungroup command is used to remove addresses or regular expressions from the +specified group or groups. The syntax is similar to the group command, however +the special character * can be used to empty a group of all of its contents. As +soon as a group gets empty because all addresses and regular expressions have +been removed, it'll internally be removed, too (i.e. there cannot be an empty +group). When removing regular expressions from a group, the pattern must be +specified exactly as given to the group command or -group argument. 4. Defining/Using Aliases @@ -2020,7 +2068,7 @@ this file is sourced. Consequently, you can have multiple alias files, or you can have all aliases defined in your .muttrc. On the other hand, the function can use only one file, the one -pointed to by the $alias_file variable (which is ?/.muttrc by default). This +pointed to by the $alias_file variable (which is ~/.muttrc by default). This file is not special either, in the sense that Mutt will happily append aliases to any file, but in order for the new aliases to take effect you need to explicitly source this file too. @@ -2085,7 +2133,8 @@ browser editor - The editor is the line-based editor the user enters text data. + The editor is used to allow the user to enter a single line of text, such + as the To or Subject prompts in the compose menu. index @@ -2185,12 +2234,14 @@ Table 3.1. Symbolic key names +---------------------------------+ -key does not need to be enclosed in quotes unless it contains a space (???) or +key does not need to be enclosed in quotes unless it contains a space (? ?) or semi-colon (?;?). function specifies which action to take when key is pressed. For a complete -list of functions, see the reference. The special function unbinds the -specified key sequence. +list of functions, see the reference. Note that the bind expects function to be +specified without angle brackets. + +The special function unbinds the specified key sequence. 6. Defining Aliases for Character Sets @@ -2298,14 +2349,14 @@ specify both a foreground color and a background color (it is not possible to only specify one or the other). header and body match regexp in the header/body of a message, index matches -pattern (see Section 2, ?Patterns: Searching, Limiting and Tagging?) in the +pattern (see Section 3, ?Patterns: Searching, Limiting and Tagging?) in the message index. object can be one of: * attachment - * bold (hiliting bold patterns in the body of messages) + * bold (highlighting bold patterns in the body of messages) * error (error messages printed by Mutt) @@ -2323,17 +2374,17 @@ object can be one of: * quoted1, quoted2, ..., quotedN (higher levels of quoting) - * search (hiliting of words in the pager) + * search (highlighting of words in the pager) * signature * status (mode lines used to display info about the mailbox or message) - * tilde (the ??? used to pad blank lines in the pager) + * tilde (the ?~? used to pad blank lines in the pager) * tree (thread tree drawn in the message index and attachment menu) - * underline (hiliting underlined patterns in the body of messages) + * underline (highlighting underlined patterns in the body of messages) foreground and background can be one of the following: @@ -2381,7 +2432,7 @@ It removes entries from the list. You must specify the same pattern specified in the color command for it to be removed. The pattern ?*? is a special token which means to clear the color list of all entries. -Mutt also recognizes the keywords color0, color1, ?, colorN-1 (N being the +Mutt also recognizes the keywords color0, color1, ..., colorN-1 (N being the number of colors supported by your terminal). This is useful when you remap the colors for your display (for example by changing the color associated with color2 for your xterm), since color names may then lose their normal meaning. @@ -2408,7 +2459,14 @@ For object, see the color command. attribute can be one of the following: 10. Message Header Display -10.1. Selecting Headers +10.1. Header Display + +When displaying a message in the pager, Mutt folds long header lines at $wrap +columns. Though there're precise rules about where to break and how, Mutt +always folds headers using a tab for readability. (Note that the sending side +is not affected by this, Mutt tries to implement standards compliant folding.) + +10.2. Selecting Headers Usage: @@ -2438,7 +2496,7 @@ unignore organization organisation x-mailer: x-newsreader: x-mailing-list: unignore posted-to: -10.2. Ordering Displayed Headers +10.3. Ordering Displayed Headers Usage: @@ -2506,9 +2564,9 @@ will be removed. Usage: lists [ -group name ...] regexp [ regexp ...] -unlists [ -group name ...] { * | regexp ... } +unlists { * | regexp ... } subscribe [ -group name ...] regexp [ regexp ...] -unsubscribe [ -group name ...] { * | regexp ... } +unsubscribe { * | regexp ... } Mutt has a few nice features for handling mailing lists. In order to take advantage of them, you must specify which addresses belong to mailing lists, @@ -2527,7 +2585,7 @@ The Mail-Followup-To header is a non-standard extension which is not supported by all mail user agents. Adding it is not bullet-proof against receiving personal CCs of list messages. Also note that the generation of the Mail-Followup-To header is controlled by the $followup_to configuration -variable since it's common practice on some mailing lists to send Cc upons +variable since it's common practice on some mailing lists to send Cc upon replies (which is more a group- than a list-reply). More precisely, Mutt maintains lists of patterns for the addresses of known and @@ -2541,8 +2599,7 @@ mail, for instance, you could say subscribe [0-9]*.*@bugs.debian.org -as it's often, it's sufficient to just give a portion of the list's e-mail -address. +as it's often sufficient to just give a portion of the list's e-mail address. Specify as much of the address as you need to to remove ambiguity. For example, if you've subscribed to the Mutt mailing list, you will receive mail addressed @@ -2554,7 +2611,7 @@ mutt-users@example.com, you could use lists ^mutt-users@mutt\\.org$ or subscribe ^mutt-users@mutt\\.org$ to match only mail from the actual list. The -group flag adds all of the subsequent regular expressions to the named -group. +address group in addition to adding to the specified address list. The ?unlists? command is used to remove a token from the list of known and subscribed mailing-lists. Use ?unlists *? to remove all tokens. @@ -2593,8 +2650,8 @@ IMAP are described in Section 3, ?POP3 Support? and Section 4, ?IMAP Support? respectively. Mutt provides a number of advanced features for handling (possibly many) -folders and new mail within them, please refer to Section 9, ?Handling multiple -folders? for details (including in what situations and how often Mutt checks +folders and new mail within them, please refer to Section 10, ?New Mail +Detection? for details (including in what situations and how often Mutt checks for new mail). The ?unmailboxes? command is used to remove a token from the list of folders @@ -2605,23 +2662,10 @@ Note The folders in the mailboxes command are resolved when the command is executed, so if these names contain shortcut characters (such as ?=? and ?!?), any variable definition that affects these characters (like $folder and $spoolfile) -should be set before the mailboxes command. If none of these shorcuts are used, -a local path should be absolute as otherwise Mutt tries to find it relative to -the directory from where Mutt was started which may not always be desired. - -For Mbox and Mmdf folders, new mail is detected by comparing access and/or -modification times of files: Mutt assumes a folder has new mail if it wasn't -accessed after it was last modified. Utilities like biff or frm or any other -program which accesses the mailbox might cause Mutt to never detect new mail -for that mailbox if they do not properly reset the access time. Other possible -causes of Mutt not detecting new mail in these folders are backup tools -(updating access times) or filesystems mounted without access time update -support. - -In cases where new mail detection for Mbox or Mmdf folders appears to be -unreliable, the $check_mbox_size option can be used to make Mutt track and -consult file sizes for new mail detection instead which won't work for -size-neutral changes. +should be set before the mailboxes command. If none of these shortcuts are +used, a local path should be absolute as otherwise Mutt tries to find it +relative to the directory from where Mutt was started which may not always be +desired. 15. User-Defined Headers @@ -2759,7 +2803,7 @@ Note send-hook's are only executed once after getting the initial list of recipients. Adding a recipient after replying or editing the message will not -cause any send-hook to be executed, similarily if $autoedit is set (as then the +cause any send-hook to be executed, similarly if $autoedit is set (as then the initial list of recipients is empty). Also note that my_hdr commands which modify recipient headers, or the message's subject, don't have any effect on the current message when executed from a send-hook. @@ -2817,6 +2861,21 @@ Example 3.13. Embedding push in folder-hook folder-hook . 'push ' +For using functions like shown in the example, it's important to use angle +brackets (??) to make Mutt recognize the input as a function name. +Otherwise it will simulate individual just keystrokes, i.e. ?push collapse-all? +would be interpreted as if you had typed ?c?, followed by ?o?, followed by ?l?, +..., which is not desired and may lead to very unexpected behavior. + +Keystrokes can be used, too, but are less portable because of potentially +changed key bindings. With default bindings, this is equivalent to the above +example: + +folder-hook . 'push \eV' + +because it simulates that Esc+V was pressed (which is the default binding of +). + 23. Executing Functions Usage: @@ -2824,7 +2883,7 @@ Usage: exec function [ function ...] This command can be used to execute any function. Functions are listed in the -function reference. ?execfunction? is equivalent to ?push ?. +function reference. ?exec function? is equivalent to ?push ?. 24. Message Scoring @@ -2836,7 +2895,7 @@ unscore { * | pattern ... } The score commands adds value to a message's score if pattern matches it. pattern is a string in the format described in the patterns section (note: For efficiency reasons, patterns which scan information not available in the index, -such as ?b, ?B or ?h, may not be used). value is a positive or negative +such as ~b, ~B or ~h, may not be used). value is a positive or negative integer. A message's final score is the sum total of all matching score entries. However, you may optionally prefix value with an equal sign (?=?) to cause evaluation to stop at a particular entry if there is a match. Negative @@ -2904,7 +2963,7 @@ supersedes the previous one. Instead of getting joined format strings, you'll get only the last one to match. The spam tag is what will be displayed in the index when you use %H in the -$index_format variable. It's also the string that the ?H pattern-matching +$index_format variable. It's also the string that the ~H pattern-matching expression matches against for and functions. And it's what sorting by spam attribute will use as a sort key. @@ -2963,7 +3022,7 @@ string path A specialized string for representing paths including support for mailbox - shortcuts (see Section 7, ?Mailbox Shortcuts?) as well as tilde (???) for a + shortcuts (see Section 8, ?Mailbox Shortcuts?) as well as tilde (?~?) for a user's home directory and more. quadoption @@ -2978,7 +3037,7 @@ sort order regular expression - A regular expression, see Section 1, ?Regular Expressions? for an + A regular expression, see Section 2, ?Regular Expressions? for an introduction. folder magic @@ -3111,6 +3170,51 @@ macro pager "\ Note that there is a space between and the set configuration command, preventing Mutt from recording the macro's commands into its history. +26.4. Type Conversions + +Variables are always assigned string values which Mutt parses into its internal +representation according to the type of the variable, for example an integer +number for numeric types. For all queries (including $-expansion) the value is +converted from its internal type back into string. As a result, any variable +can be assigned any value given that its content is valid for the target. This +also counts for custom variables which are of type string. In case of parsing +errors, Mutt will print error messages. Example 3.18, ?Type conversions using +variables? demonstrates type conversions. + +Example 3.18. Type conversions using variables + +set my_lines = "5" # value is string "5" +set pager_index_lines = $my_lines # value is integer 5 + +set my_sort = "date-received" # value is string "date-received" +set sort = "last-$my_sort" # value is sort last-date-received + +set my_inc = $read_inc # value is string "10" (default of $read_inc) +set my_foo = $my_inc # value is string "10" + + +These assignments are all valid. If, however, the value of $my_lines would have +been ?five? (or something else that cannot be parsed into a number), the +assignment to $pager_index_lines would have produced an error message. + +Type conversion applies to all configuration commands which take arguments. But +please note that every expanded value of a variable is considered just a single +token. A working example is: + +set my_pattern = "~A" +set my_number = "10" + +# same as: score ~A +10 +score $my_pattern +$my_number + +What does not work is: + +set my_mx = "+mailbox1 +mailbox2" +mailboxes $my_mx +mailbox3 + +because the value of $my_mx is interpreted as a single mailbox named ?+mailbox1 ++mailbox2? and not two distinct mailboxes. + 27. Reading Initialization Commands From Another File Usage: @@ -3118,14 +3222,15 @@ Usage: source filename This command allows the inclusion of initialization commands from other files. -For example, I place all of my aliases in ?/.mail_aliases so that I can make my -?/.muttrc readable and keep my aliases private. +For example, I place all of my aliases in ~/.mail_aliases so that I can make my +~/.muttrc readable and keep my aliases private. -If the filename begins with a tilde (???), it will be expanded to the path of +If the filename begins with a tilde (?~?), it will be expanded to the path of your home directory. If the filename ends with a vertical bar (?|?), then filename is considered to -be an executable program from which to read input (eg. source ?/bin/myscript|). +be an executable program from which to read input (e.g. source ~/bin/myscript +|). 28. Removing Hooks @@ -3216,7 +3321,7 @@ a replacement format string including % expandos. All % expandos in a format string are expanded before the script is called so that: -Example 3.18. Using external filters in format strings +Example 3.19. Using external filters in format strings set status_format="script.sh '%r %f (%L)'|" @@ -3270,34 +3375,95 @@ Chapter 4. Advanced Usage Table of Contents -1. Regular Expressions -2. Patterns: Searching, Limiting and Tagging - - 2.1. Pattern Modifier - 2.2. Simple Searches - 2.3. Nesting and Boolean Operators - 2.4. Searching by Date - -3. Using Tags -4. Using Hooks - - 4.1. Message Matching in Hooks - -5. External Address Queries -6. Mailbox Formats -7. Mailbox Shortcuts -8. Handling Mailing Lists -9. Handling multiple folders -10. Editing Threads - - 10.1. Linking Threads - 10.2. Breaking Threads - -11. Delivery Status Notification (DSN) Support -12. Start a WWW Browser on URLs -13. Miscellany - -1. Regular Expressions +1. Character Set Handling +2. Regular Expressions +3. Patterns: Searching, Limiting and Tagging + + 3.1. Pattern Modifier + 3.2. Simple Searches + 3.3. Nesting and Boolean Operators + 3.4. Searching by Date + +4. Using Tags +5. Using Hooks + + 5.1. Message Matching in Hooks + +6. External Address Queries +7. Mailbox Formats +8. Mailbox Shortcuts +9. Handling Mailing Lists +10. New Mail Detection + + 10.1. How New Mail Detection Works + 10.2. Polling For New Mail + +11. Editing Threads + + 11.1. Linking Threads + 11.2. Breaking Threads + +12. Delivery Status Notification (DSN) Support +13. Start a WWW Browser on URLs +14. Miscellany + +1. Character Set Handling + +A ?character set? is basically a mapping between bytes and glyphs and implies a +certain character encoding scheme. For example, for the ISO 8859 family of +character sets, an encoding of 8bit per character is used. For the Unicode +character set, different character encodings may be used, UTF-8 being the most +popular. In UTF-8, a character is represented using a variable number of bytes +ranging from 1 to 4. + +Since Mutt is a command-line tool run from a shell, and delegates certain tasks +to external tools (such as an editor for composing/editing messages), all of +these tools need to agree on a character set and encoding. There exists no way +to reliably deduce the character set a plain text file has. Interoperability is +gained by the use of well-defined environment variables. The full set can be +printed by issuing locale on the command line. + +Upon startup, Mutt determines the character set on its own using routines that +inspect locale-specific environment variables. Therefore, it is generally not +necessary to set the $charset variable in Mutt. It may even be +counter-productive as Mutt uses system and library functions that derive the +character set themselves and on which Mutt has no influence. It's safest to let +Mutt work out the locale setup itself. + +If you happen to work with several character sets on a regular basis, it's +highly advisable to use Unicode and an UTF-8 locale. Unicode can represent +nearly all characters in a message at the same time. When not using a Unicode +locale, it may happen that you receive messages with characters not +representable in your locale. When displaying such a message, or replying to or +forwarding it, information may get lost possibly rendering the message unusable +(not only for you but also for the recipient, this breakage is not reversible +as lost information cannot be guessed). + +A Unicode locale makes all conversions superfluous which eliminates the risk of +conversion errors. It also eliminates potentially wrong expectations about the +character set between Mutt and external programs. + +The terminal emulator used also must be properly configured for the current +locale. Terminal emulators usually do not derive the locale from environment +variables, they need to be configured separately. If the terminal is +incorrectly configured, Mutt may display random and unexpected characters +(question marks, octal codes, or just random glyphs), format strings may not +work as expected, you may not be abled to enter non-ascii characters, and +possible more. Data is always represented using bytes and so a correct setup is +very important as to the machine, all character sets ?look? the same. + +Warning: A mismatch between what system and library functions think the locale +is and what Mutt was told what the locale is may make it behave badly with +non-ascii input: it will fail at seemingly random places. This warning is to be +taken seriously since not only local mail handling may suffer: sent messages +may carry wrong character set information the receiver has too deal with. The +need to set $charset directly in most cases points at terminal and environment +variable setup problems, not Mutt problems. + +A list of officially assigned and known character sets can be found at IANA, a +list of locally supported locales can be obtained by running locale -a. + +2. Regular Expressions All string patterns in Mutt including those in more complex patterns must be specified using regular expressions (regexp) in the ?POSIX extended? syntax @@ -3405,8 +3571,9 @@ Equivalence Classes An equivalence class is a locale-specific name for a list of characters that are equivalent. The name is enclosed in ?[=? and ?=]?. For example, - the name ?e? might be used to represent all of ??? ??? and ?e?. In this - case, [[=e=]] is a regexp that matches any of ???, ??? and ?e?. + the name ?e? might be used to represent all of ?e? with grave (???), ?e? + with acute (???) and ?e?. In this case, [[=e=]] is a regexp that matches + any of: ?e? with grave (???), ?e? with acute (???) and ?e?. A regular expression matching a single character may be followed by one of several repetition operators described in Table 4.2, ?Regular expression @@ -3479,9 +3646,9 @@ Table 4.3. GNU regular expression extensions Please note however that these operators are not defined by POSIX, so they may or may not be available in stock libraries on various systems. -2. Patterns: Searching, Limiting and Tagging +3. Patterns: Searching, Limiting and Tagging -2.1. Pattern Modifier +3.1. Pattern Modifier Many of Mutt's commands allow you to specify a pattern to match (limit, tag-pattern, delete-pattern, etc.). Table 4.4, ?Pattern modifiers? shows @@ -3603,7 +3770,7 @@ Table 4.4. Pattern modifiers +-----------------------------------------------------------------------------+ -Where EXPR is a regular expression. +Where EXPR is a regular expression, and GROUP is an address group. *) The forms ?<[MAX]?, ?>[MIN]?, ?[MIN]-? and ?-[MAX]? are allowed, too. @@ -3615,7 +3782,7 @@ patterns. Specifically, Mutt's parser for these patterns will strip one level of backslash (?\?), which is normally used for quoting. If it is your intention to use a backslash in the regular expression, you will need to use two backslashes instead (?\\?). You can force Mutt to treat EXPR as a simple string -instead of a regular expression by using = instead of ? in the pattern name. +instead of a regular expression by using = instead of ~ in the pattern name. For example, =b *.* will find all messages that contain the literal string ?*.*?. Simple string matches are less powerful than regular expressions but can be considerably faster. This is especially true for IMAP folders, because @@ -3635,12 +3802,12 @@ Example 4.1. Matching all addresses in address lists ^~C \.de$ -2.2. Simple Searches +3.2. Simple Searches Mutt supports two versions of so called ?simple searches?. These are issued if the query entered for searching, limiting and similar operations does not seem to contain a valid pattern modifier (i.e. it does not contain one of these -characters: ???, ?=? or ?%?). If the query is supposed to contain one of these +characters: ?~?, ?=? or ?%?). If the query is supposed to contain one of these special characters, they must be escaped by prepending a backslash (?\?). The first type is by checking whether the query string equals a keyword @@ -3684,7 +3851,7 @@ The second type of simple search is to build a complex search pattern using $simple_search as a template. Mutt will insert your query properly quoted and search for the composed complex query. -2.3. Nesting and Boolean Operators +3.3. Nesting and Boolean Operators Logical AND is performed by specifying more than one criterion. For example: @@ -3711,11 +3878,12 @@ Example 4.2. Using boolean operators in patterns !(~t mutt|~c mutt) ~f elkins -Here is an example using white space in the regular expression (note the ' and -" delimiters). For this to match, the mail's subject must match the ?^Junk -+From +Me$? and it must be from either ?Jim +Somebody? or ?Ed +SomeoneElse?: +Here is an example using white space in the regular expression (note the ?'? +and ?"? delimiters). For this to match, the mail's subject must match the ?^ +Junk +From +Me$? and it must be from either ?Jim +Somebody? or ?Ed ++SomeoneElse?: - '~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")' +'~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")' Note @@ -3723,14 +3891,14 @@ If a regular expression contains parenthesis, or a vertical bar ("|"), you must enclose the expression in double or single quotes since those characters are also used to separate different parts of Mutt's pattern language. For example: ~f "me@(mutt\.org|cs\.hmc\.edu)" Without the quotes, the parenthesis wouldn't -end. This would be separated to two OR'd patterns: ?f me@(mutt\.org and cs\.hmc +end. This would be separated to two OR'd patterns: ~f me@(mutt\.org and cs\.hmc \.edu). They are never what you want. -2.4. Searching by Date +3.4. Searching by Date Mutt supports two types of dates, absolute and relative. -2.4.1. Absolute Dates +3.4.1. Absolute Dates Dates must be in DD/MM/YY format (month and year are optional, defaulting to the current month and year). An example of a valid range of dates is: @@ -3768,7 +3936,7 @@ the following pattern: Limit to messages matching: ~d 15/1/2001*2w -2.4.2. Relative Dates +3.4.2. Relative Dates This type of date is relative to the current date, and may be specified as: @@ -3791,7 +3959,7 @@ All dates used when searching are relative to the local time zone, so unless you change the setting of your $index_format to include a %[...] format, these are not the dates shown in the main index. -3. Using Tags +4. Using Tags Sometimes it is desirable to perform an operation on a group of messages all at once rather than one at a time. An example might be to save messages to a @@ -3814,7 +3982,7 @@ it's execution. Mutt will stop ?eating? the macro when it encounters the operator; after this operator the rest of the macro will be executed as normal. -4. Using Hooks +5. Using Hooks A hook is a concept found in many other programs which allows you to execute arbitrary commands before performing some operation. For example, you may wish @@ -3863,11 +4031,11 @@ send-hook . 'unmy_hdr From:' send-hook ~C'^b@b\.b$' my_hdr from: c@c.c -In Example 4.3, ?Specifying a default hook?, by default the value of $from and -$realname is not overridden. When sending messages either To: or Cc: to +In Example 4.3, ?Specifying a ?default? hook?, by default the value of $from +and $realname is not overridden. When sending messages either To: or Cc: to , the From: header is changed to . -4.1. Message Matching in Hooks +5.1. Message Matching in Hooks Hooks that act upon messages (message-hook, reply-hook, send-hook, send2-hook, save-hook, fcc-hook) are evaluated in a slightly different manner. For the @@ -3895,14 +4063,14 @@ language, using the translation specified by the $default_hook variable. The pattern is translated at the time the hook is declared, so the value of $default_hook that is in effect at that time will be used. -5. External Address Queries +6. External Address Queries Mutt supports connecting to external directory databases such as LDAP, ph/qi, bbdb, or NIS through a wrapper script which connects to Mutt using a simple interface. Using the $query_command variable, you specify the wrapper command to use. For example: -set query_command = "mutt_ldap_query.pl '%s'" +set query_command = "mutt_ldap_query.pl %s" The wrapper script should accept the query on the command-line. It should return a one line message, then each matching response on a single line, each @@ -3933,10 +4101,10 @@ Mutt will expand the address in place. If there are multiple responses, Mutt will activate the query menu. At the query menu, you can select one or more addresses to be added to the prompt. -6. Mailbox Formats +7. Mailbox Formats Mutt supports reading and writing of four different local mailbox formats: -mbox, MMDF, MH and Maildir. The mailbox type is autodetected, so there is no +mbox, MMDF, MH and Maildir. The mailbox type is auto detected, so there is no need to use a flag for different mailbox types. When creating new mailboxes, Mutt uses the default specified with the $mbox_type variable. A short description of the formats follows. @@ -3953,9 +4121,9 @@ the environment, new mail detection can be unreliable. Mbox folders are fast to open and easy to archive. MMDF. This is a variant of the mbox format. Each message is surrounded by lines -containing ?^A^A^A^A? (four control-A's). The same problems as for mbox apply -(also with finding the right message separator as four control-A's may appear -in message bodies). +containing ?^A^A^A^A? (four times control-A's). The same problems as for mbox +apply (also with finding the right message separator as four control-A's may +appear in message bodies). MH. A radical departure from mbox and MMDF, a mailbox consists of a directory and each message is stored in a separate file. The filename indicates the @@ -3981,36 +4149,42 @@ files are used for metadata (which is embedded in the message filenames) and Maildir is locking-free, it's easy to sync across different machines using file-level synchronization tools. -7. Mailbox Shortcuts +8. Mailbox Shortcuts There are a number of built in shortcuts which refer to specific mailboxes. These shortcuts can be used anywhere you are prompted for a file or mailbox path or in path-related configuration variables. Note that these only work at the beginning of a string. - * ! ? refers to your $spoolfile (incoming) mailbox - - * > ? refers to your $mbox file +Table 4.7. Mailbox shortcuts - * < ? refers to your $record file - - * ^ ? refers to the current mailbox - - * - or !! ? refers to the file you've last visited - - * ? ? refers to your home directory - - * = or + ? refers to your $folder directory ++-----------------------------------------------------------------------------+ +|Shortcut| Refers to... | +|--------+--------------------------------------------------------------------| +|! |your $spoolfile (incoming) mailbox | +|--------+--------------------------------------------------------------------| +|> |your $mbox file | +|--------+--------------------------------------------------------------------| +|< |your $record file | +|--------+--------------------------------------------------------------------| +|^ |the current mailbox | +|--------+--------------------------------------------------------------------| +|- or !! |the file you've last visited | +|--------+--------------------------------------------------------------------| +|~ |your home directory | +|--------+--------------------------------------------------------------------| +|= or + |your $folder directory | +|--------+--------------------------------------------------------------------| +|@alias |to the default save folder as determined by the address of the alias| ++-----------------------------------------------------------------------------+ - * @alias ? refers to the default save folder as determined by the address of - the alias For example, to store a copy of outgoing messages in the folder they were composed in, a folder-hook can be used to set $record: folder-hook . 'set record=^' -8. Handling Mailing Lists +9. Handling Mailing Lists Mutt has a few configuration options that make dealing with large amounts of mail easier. The first thing you must do is to let Mutt know what addresses you @@ -4070,7 +4244,7 @@ The ?X-Label:? header field can be used to further identify mailing lists or list subject matter (or just to annotate messages individually). The $index_format variable's ?%y? and ?%Y? expandos can be used to expand ?X-Label:? fields in the index, and Mutt's pattern-matcher can match regular -expressions to ?X-Label:? fields with the ??y? selector. ?X-Label:? is not a +expressions to ?X-Label:? fields with the ?~y? selector. ?X-Label:? is not a standard message header field, but it can easily be inserted by procmail and other mail filtering agents. @@ -4082,12 +4256,48 @@ the same concept. It makes dealing with large volume mailing lists easier because you can easily delete uninteresting threads and quickly find topics of value. -9. Handling multiple folders +10. New Mail Detection Mutt supports setups with multiple folders, allowing all of them to be monitored for new mail (see Section 14, ?Monitoring Incoming Mail? for details). +10.1. How New Mail Detection Works + +For Mbox and Mmdf folders, new mail is detected by comparing access and/or +modification times of files: Mutt assumes a folder has new mail if it wasn't +accessed after it was last modified. Utilities like biff or frm or any other +program which accesses the mailbox might cause Mutt to never detect new mail +for that mailbox if they do not properly reset the access time. Other possible +causes of Mutt not detecting new mail in these folders are backup tools +(updating access times) or filesystems mounted without access time update +support (for Linux systems, see the relatime option). + +Note + +Contrary to older Mutt releases, it now maintains the new mail status of a +folder by properly resetting the access time if the folder contains at least +one message which is neither read, nor deleted, nor marked as old. + +In cases where new mail detection for Mbox or Mmdf folders appears to be +unreliable, the $check_mbox_size option can be used to make Mutt track and +consult file sizes for new mail detection instead which won't work for +size-neutral changes. + +New mail for Maildir is assumed if there is one message in the new/ +subdirectory which is not marked deleted (see $maildir_trash). For MH folders, +a mailbox is considered having new mail if there's at least one message in the +?unseen? sequence as specified by $mh_seq_unseen. + +Mutt does not poll POP3 folders for new mail, it only periodically checks the +currently opened folder (if it's a POP3 folder). + +For IMAP, by default Mutt uses recent message counts provided by the server to +detect new mail. If the $imap_idle option is set, it'll use the IMAP IDLE +extension if advertised by the server. + +10.2. Polling For New Mail + When in the index menu and being idle (also see $timeout), Mutt periodically checks for new mail in all folders which have been configured via the mailboxes command. The interval depends on the folder type: for local/IMAP folders it @@ -4107,17 +4317,19 @@ For the index, by default Mutt displays the number of mailboxes with new mail in the status bar, please refer to the $status_format variable for details. When changing folders, Mutt fills the prompt with the first folder from the -mailboxes list containing new mail (if any), pressing space will cycle through -folders with new mail. +mailboxes list containing new mail (if any), pressing will cycle +through folders with new mail. The (by default unbound) function + in the index can be used to immediately open the next +folder with unread mail (if any). -10. Editing Threads +11. Editing Threads Mutt has the ability to dynamically restructure threads that are broken either by misconfigured software or bad behavior from some correspondents. This allows to clean your mailboxes from these annoyances which make it hard to follow a discussion. -10.1. Linking Threads +11.1. Linking Threads Some mailers tend to ?forget? to correctly set the ?In-Reply-To:? and ?References:? headers when replying to a message. This results in broken @@ -4127,9 +4339,9 @@ message and using the function (bound to & by default). The reply will then be connected to this parent message. You can also connect multiple children at once, tagging them and using the - command (';') or the $auto_tag option. + command (?;?) or the $auto_tag option. -10.2. Breaking Threads +11.2. Breaking Threads On mailing lists, some people are in the bad habit of starting a new discussion by hitting ?reply? to any message from the list and changing the subject to a @@ -4137,7 +4349,7 @@ totally unrelated one. You can fix such threads by using the function (bound by default to #), which will turn the subthread starting from the current message into a whole different thread. -11. Delivery Status Notification (DSN) Support +12. Delivery Status Notification (DSN) Support RFC1894 defines a set of MIME content types for relaying information about the status of electronic mail messages. These can be thought of as ?return @@ -4157,7 +4369,7 @@ consider your MTA documentation whether DSN is supported. For SMTP delivery using $smtp_url, it depends on the capabilities announced by the server whether Mutt will attempt to request DSN or not. -12. Start a WWW Browser on URLs +13. Start a WWW Browser on URLs If a message contains URLs, it is efficient to get a menu with all the URLs and start a WWW browser on one of them. This functionality is provided by the @@ -4167,7 +4379,7 @@ contrib/ and the configuration commands: macro index \cb |urlview\n macro pager \cb |urlview\n -13. Miscellany +14. Miscellany This section documents various features that fit nowhere else. @@ -4196,9 +4408,10 @@ Table of Contents 1. Using MIME in Mutt - 1.1. Viewing MIME Messages in the Pager - 1.2. The Attachment Menu - 1.3. The Compose Menu + 1.1. MIME Overview + 1.2. Viewing MIME Messages in the Pager + 1.3. The Attachment Menu + 1.4. The Compose Menu 2. MIME Type Configuration with mime.types 3. MIME Viewer Configuration with Mailcap @@ -4224,16 +4437,48 @@ types. 1. Using MIME in Mutt -There are three areas/menus in Mutt which deal with MIME, they are the pager -(while viewing a message), the attachment menu and the compose menu. - -1.1. Viewing MIME Messages in the Pager +1.1. MIME Overview + +MIME is short for ?Multipurpose Internet Mail Extension? and describes +mechanisms to internationalize and structure mail messages. Before the +introduction of MIME, messages had a single text part and were limited to +us-ascii header and content. With MIME, messages can have attachments (and even +attachments which itself have attachments and thus form a tree structure), +nearly arbitrary characters can be used for sender names, recipients and +subjects. + +Besides the handling of non-ascii characters in message headers, to Mutt the +most important aspect of MIME are so-called MIME types. These are constructed +using a major and minor type separated by a forward slash. These specify +details about the content that follows. Based upon these, Mutt decides how to +handle this part. The most popular major type is ?text? with minor types for +plain text, HTML and various other formats. Major types also exist for images, +audio, video and of course general application data (e.g. to separate +cryptographically signed data with a signature, send office documents, and in +general arbitrary binary data). There's also the multipart major type which +represents the root of a subtree of MIME parts. A list of supported MIME types +can be found in Table 5.1, ?Supported MIME types?. + +MIME also defines a set of encoding schemes for transporting MIME content over +the network: 7bit, 8bit, quoted-printable, base64 and binary. There're some +rules when to choose what for encoding headers and/or body (if needed), and +Mutt will in general make a good choice. + +Mutt does most of MIME encoding/decoding behind the scenes to form messages +conforming to MIME on the sending side. On reception, it can be flexibly +configured as to how what MIME structure is displayed (and if it's displayed): +these decisions are based on the content's MIME type. There are three areas/ +menus in dealing with MIME: the pager (while viewing a message), the attachment +menu and the compose menu. + +1.2. Viewing MIME Messages in the Pager When you select a message from the index and view it in the pager, Mutt decodes -the message to a text representation. Mutt internally supports a number of MIME -types, including text/plain, text/enriched, message/rfc822, and message/news. -In addition, the export controlled version of Mutt recognizes a variety of PGP -MIME types, including PGP/MIME and application/pgp. +as much of a message as possible to a text representation. Mutt internally +supports a number of MIME types, including the text major type (with all minor +types), the message/rfc822 (mail messages) type and some multipart types. In +addition, it recognizes a variety of PGP MIME types, including PGP/MIME and +application/pgp. Mutt will denote attachments with a couple lines describing them. These lines are of the form: @@ -4242,13 +4487,13 @@ are of the form: [-- Type: text/plain, Encoding: 7bit, Size: 10000 --] Where the Description is the description or filename given for the attachment, -and the Encoding is one of 7bit/8bit/quoted-printable/base64/binary. +and the Encoding is one of the already mentioned content encodings. If Mutt cannot deal with a MIME type, it will display a message like: [-- image/gif is unsupported (use 'v' to view this part) --] -1.2. The Attachment Menu +1.3. The Attachment Menu The default binding for is ?v?, which displays the attachment menu for a message. The attachment menu displays a list of the @@ -4258,15 +4503,16 @@ attachments at once, by tagging the attachments and by using the operator. You can also reply to the current message from this menu, and only the current attachment (or the attachments tagged) will be quoted in your reply. You can view attachments as text, or view them using the mailcap viewer -definition. +definition (the mailcap mechanism is explained later in detail). Finally, you can apply the usual message-related functions (like , and the and functions) to attachments of type message/rfc822. -See the help on the attachment menu for more information. +See table Table 9.7, ?Default Attachment Menu Bindings? for all available +functions. -1.3. The Compose Menu +1.4. The Compose Menu The compose menu is the menu you see before you send a message. It allows you to edit the recipient list, the subject, and other aspects of your message. It @@ -4276,12 +4522,12 @@ and rename an attachment or a list of tagged attachments. You can also modifying the attachment information, notably the type, encoding and description. -Attachments appear as follows: +Attachments appear as follows by default: - 1 [text/plain, 7bit, 1K] /tmp/mutt-euler-8082-0 2 [applica/x-gunzip, base64, 422K] ~/src/mutt-0.85.tar.gz -The '-' denotes that Mutt will delete the file after sending (or postponing, or +The ?-? denotes that Mutt will delete the file after sending (or postponing, or canceling) the message. It can be toggled with the command (default: u). The next field is the MIME content-type, and can be changed with the command (default: ^T). The next field is the encoding for the @@ -4291,52 +4537,86 @@ The next field is the size of the attachment, rounded to kilobytes or megabytes. The next field is the filename, which can be changed with the command (default: R). The final field is the description of the attachment, and can be changed with the command (default: -d). +d). See $attach_format for a full list of available expandos to format this +display to your needs. 2. MIME Type Configuration with mime.types +To get most out of MIME, it's important that a MIME part's content type matches +the content as closely as possible so that the recipient's client can +automatically select the right viewer for the content. However, there's no +reliable for Mutt to know how to detect every possible file type. Instead, it +uses a simple plain text mapping file that specifies what file extension +corresponds to what MIME type. This file is called mime.types. + When you add an attachment to your mail message, Mutt searches your personal -mime.types file at ${HOME}/.mime.types, and then the system mime.types file at -/usr/local/share/mutt/mime.types or /etc/mime.types +mime.types file at $HOME/.mime.types, and then the system mime.types file at / +usr/local/share/mutt/mime.types or /etc/mime.types + +Each line starts with the full MIME type, followed by a space and +space-separated list of file extensions. For example you could use: -The mime.types file consist of lines containing a MIME type and a space -separated list of extensions. For example: +Example 5.1. mime.types application/postscript ps eps application/pgp pgp audio/x-aiff aif aifc aiff + A sample mime.types file comes with the Mutt distribution, and should contain most of the MIME types you are likely to use. -If Mutt can not determine the mime type by the extension of the file you +If Mutt can not determine the MIME type by the extension of the file you attach, it will look at the file. If the file is free of binary information, Mutt will assume that the file is plain text, and mark it as text/plain. If the file contains binary information, then Mutt will mark it as application/ octet-stream. You can change the MIME type that Mutt assigns to an attachment -by using the command from the compose menu (default: ^T). The MIME -type is actually a major mime type followed by the sub-type, separated by a '/ -'. 6 major types: application, text, image, video, audio, and model have been -approved after various internet discussions. Mutt recognizes all of these if -the appropriate entry is found in the mime.types file. It also recognizes other -major mime types, such as the chemical type that is widely used in the -molecular modeling community to pass molecular data in various forms to various -molecular viewers. Non-recognized mime types should only be used if the -recipient of the message is likely to be expecting such attachments. +by using the command from the compose menu (default: ^T), see +Table 5.1, ?Supported MIME types? for supported major types. Mutt recognizes +all of these if the appropriate entry is found in the mime.types file. +Non-recognized mime types should only be used if the recipient of the message +is likely to be expecting such attachments. + +Table 5.1. Supported MIME types + ++------------------------------------------------------------------+ +|MIME major type|Standard| Description | +|---------------+--------+-----------------------------------------| +|application |yes |General application data | +|---------------+--------+-----------------------------------------| +|audio |yes |Audio data | +|---------------+--------+-----------------------------------------| +|image |yes |Image data | +|---------------+--------+-----------------------------------------| +|message |yes |Mail messages, message status information| +|---------------+--------+-----------------------------------------| +|model |yes |VRML and other modeling data | +|---------------+--------+-----------------------------------------| +|multipart |yes |Container for other MIME parts | +|---------------+--------+-----------------------------------------| +|text |yes |Text data | +|---------------+--------+-----------------------------------------| +|video |yes |Video data | +|---------------+--------+-----------------------------------------| +|chemical |no |Mostly molecular data | ++------------------------------------------------------------------+ + + +MIME types are not arbitrary, they need to be assigned by IANA. 3. MIME Viewer Configuration with Mailcap Mutt supports RFC 1524 MIME Configuration, in particular the Unix specific format specified in Appendix A of RFC 1524. This file format is commonly -referred to as the mailcap format. Many MIME compliant programs utilize the +referred to as the ?mailcap? format. Many MIME compliant programs utilize the mailcap format, allowing you to specify handling for all MIME types in one place for all programs. Programs known to use this format include Firefox, lynx and metamail. -In order to handle various MIME types that Mutt can not handle internally, Mutt -parses a series of external configuration files to find an external handler. -The default search string for these files is a colon delimited list containing -the following files: +In order to handle various MIME types that Mutt doesn't have built-in support +for, it parses a series of external configuration files to find an external +handler. The default search string for these files is a colon delimited list +containing the following files: 1. $HOME/.mailcap @@ -4371,14 +4651,14 @@ A comment line consists of a # character followed by anything you want. A blank line is blank. A definition line consists of a content type, a view command, and any number of -optional fields. Each field of a definition line is divided by a semicolon ';' +optional fields. Each field of a definition line is divided by a semicolon ?;? character. -The content type is specified in the MIME standard type/subtype method. For +The content type is specified in the MIME standard ?type/subtype? notation. For example, text/plain, text/html, image/gif, etc. In addition, the mailcap format -includes two formats for wildcards, one using the special '*' subtype, the +includes two formats for wildcards, one using the special ?*? subtype, the other is the implicit wild, where you only include the major type. For example, -image/*, or video, will match all image types and video types, respectively. +image/*, or video will match all image types and video types, respectively. The view command is a Unix command for viewing the type specified. There are two different types of commands supported. The default is to send the body of @@ -4387,10 +4667,13 @@ the MIME message to the command on stdin. You can change this behavior by using of the MIME message to a temporary file, and then call the view command with the %s replaced by the name of the temporary file. In both cases, Mutt will turn over the terminal to the view program until the program quits, at which -time Mutt will remove the temporary file if it exists. +time Mutt will remove the temporary file if it exists. This means that mailcap +does not work out of the box with programs which detach themselves from the +terminal right after starting, like open on Mac OS X. In order to nevertheless +use these programs with mailcap, you probably need custom shell scripts. So, in the simplest form, you can send a text/plain message to the external -pager more on stdin: +pager more on standard input: text/plain; more @@ -4402,8 +4685,8 @@ Perhaps you would like to use lynx to interactively view a text/html message: text/html; lynx %s -In this case, lynx does not support viewing a file from stdin, so you must use -the %s syntax. +In this case, lynx does not support viewing a file from standard input, so you +must use the %s syntax. Note @@ -4422,8 +4705,6 @@ text formats, then you would use the following: text/html; lynx %s text/*; more -This is the simplest form of a mailcap file. - 3.2. Secure Use of Mailcap The interpretation of shell meta-characters embedded in MIME parameters can @@ -4438,8 +4719,8 @@ Therefore you should pay attention to the following rules: Keep the %-expandos away from shell quoting. Don't quote them with single or double quotes. Mutt does this for you, the right way, as should any other program which interprets mailcap. Don't put them into backtick expansions. Be -highly careful with eval statements, and avoid them if possible at all. Trying -to fix broken behavior with quotes introduces new leaks - there is no +highly careful with evil statements, and avoid them if possible at all. Trying +to fix broken behavior with quotes introduces new leaks ? there is no alternative to correct quoting in the first place. If you have to use the %-expandos' values in context where you need quoting or @@ -4456,23 +4737,27 @@ text/test-mailcap-bug; cat %s; copiousoutput; test=charset=%{charset} \ 3.3.1. Optional Fields In addition to the required content-type and view command fields, you can add -semi-colon ';' separated fields to set flags and other options. Mutt recognizes +semi-colon ?;? separated fields to set flags and other options. Mutt recognizes the following optional fields: copiousoutput This flag tells Mutt that the command passes possibly large amounts of text - on stdout. This causes Mutt to invoke a pager (either the internal pager or - the external pager defined by the pager variable) on the output of the view - command. Without this flag, Mutt assumes that the command is interactive. - One could use this to replace the pipe to more in the lynx -dump example in - the Basic section: + on standard output. This causes Mutt to invoke a pager (either the internal + pager or the external pager defined by the pager variable) on the output of + the view command. Without this flag, Mutt assumes that the command is + interactive. One could use this to replace the pipe to more in the lynx + -dump example in the Basic section: text/html; lynx -dump %s ; copiousoutput This will cause lynx to format the text/html output as text/plain and Mutt will use your standard pager to display the results. + Note that when using the built-in pager, only entries with this flag will + be considered a handler for a MIME type ? all other entries will be + ignored. + needsterminal Mutt uses this flag when viewing attachments with auto_view, in order to @@ -4505,7 +4790,7 @@ edit= This flag specifies the command to use to edit a specific MIME type. Mutt supports this from the compose menu, and also uses it to compose new - attachments. Mutt will default to the defined editor for text attachments. + attachments. Mutt will default to the defined $editor for text attachments. nametemplate=