Changeset 3921:500373828600

Show
Ignore:
Timestamp:
2005-02-12 16:25:37 (4 years ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Use AC_HELP_STRING to pretty print configure --help screen, with mixed results.

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • configure.in

    r3911 r3921  
    9494        SUBVERSION="i" 
    9595 
    96         AC_ARG_ENABLE(gpgme, [  --enable-gpgme           Enable GPGME support], 
     96        AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--enable-gpgme], [Enable GPGME support]), 
    9797        [       if test x$enableval = xyes; then 
    9898                        have_gpgme=yes 
    9999                fi 
    100100        ]) 
    101         AC_ARG_WITH(gpgme-prefix, [  --with-gpgme-prefix=PFX    prefix where GPGME is installed (optional)], 
     101        AC_ARG_WITH(gpgme-prefix, AC_HELP_STRING([--with-gpgme-prefix=PFX], [prefix where GPGME is installed (optional)]), 
    102102        gpgme_config_prefix="$withval", gpgme_config_prefix="") 
    103103 
     
    121121        AC_SUBST(LIBGPGME_LIBS) 
    122122 
    123         AC_ARG_ENABLE(pgp, [  --disable-pgp              Disable PGP support], 
     123        AC_ARG_ENABLE(pgp, AC_HELP_STRING([--disable-pgp], [Disable PGP support]), 
    124124        [       if test x$enableval = xno ; then 
    125125                        have_pgp=no 
     
    134134        fi 
    135135 
    136         AC_ARG_ENABLE(smime, [  --disable-smime            Disable SMIME support], 
     136        AC_ARG_ENABLE(smime, AC_HELP_STRING([--disable-smime], [Disable SMIME support]), 
    137137        [       if test x$enableval = xno ; then 
    138138                        have_smime=no 
     
    147147        fi 
    148148   
    149         AC_ARG_WITH(mixmaster, [  --with-mixmaster[=PATH]    Include Mixmaster support], 
     149        AC_ARG_WITH(mixmaster, AC_HELP_STRING([--with-mixmaster[=PATH]], [Include Mixmaster support]), 
    150150                [if test -x "$withval" ; then 
    151151                        MIXMASTER="$withval" 
     
    176176fi 
    177177 
    178 AC_ARG_WITH(slang, [  --with-slang[=DIR]         Use S-Lang instead of ncurses], 
     178AC_ARG_WITH(slang, AC_HELP_STRING([--with-slang[=DIR]], [Use S-Lang instead of ncurses]), 
    179179        [AC_CACHE_CHECK([if this is a BSD system], mutt_cv_bsdish, 
    180180                [AC_TRY_RUN([#include <sys/param.h> 
     
    241241 
    242242        [mutt_cv_curses=/usr 
    243         AC_ARG_WITH(curses, [  --with-curses=DIR          Where ncurses is installed ], 
     243        AC_ARG_WITH(curses, AC_HELP_STRING([--with-curses=DIR], [Where ncurses is installed]), 
    244244                [if test $withval != yes; then 
    245245                        mutt_cv_curses=$withval 
     
    352352AC_CHECK_FUNCS(fchdir, , [mutt_cv_fchdir=no]) 
    353353 
    354 AC_ARG_WITH(regex, [  --with-regex               Use the GNU regex library ], 
     354AC_ARG_WITH(regex, AC_HELP_STRING([--with-regex], [Use the GNU regex library]), 
    355355        [mutt_cv_regex=yes], 
    356356        [AC_CHECK_FUNCS(regcomp, mutt_cv_regex=no, mutt_cv_regex=yes)]) 
     
    376376 
    377377 
    378 AC_ARG_WITH(homespool, [  --with-homespool[=FILE]    File in user's directory where new mail is spooled], with_homespool=${withval}) 
     378AC_ARG_WITH(homespool, 
     379  AC_HELP_STRING([--with-homespool[=FILE]], [File in user's directory where new mail is spooled]), with_homespool=${withval}) 
    379380if test x$with_homespool != x; then 
    380381        if test $with_homespool = yes; then 
     
    390391        mutt_cv_setgid=no 
    391392else 
    392         AC_ARG_WITH(mailpath, [  --with-mailpath=DIR        Directory where spool mailboxes are located], 
     393        AC_ARG_WITH(mailpath, AC_HELP_STRING([--with-mailpath=DIR], [Directory where spool mailboxes are located]), 
    393394                [mutt_cv_mailpath=$withval], 
    394395                [ AC_CACHE_CHECK(where new mail is stored, mutt_cv_mailpath, 
     
    446447fi 
    447448 
    448 AC_ARG_ENABLE(external_dotlock, [  --enable-external-dotlock  Force use of an external dotlock program], 
     449AC_ARG_ENABLE(external_dotlock, AC_HELP_STRING([--enable-external-dotlock], [Force use of an external dotlock program]), 
    449450        [mutt_cv_external_dotlock="$enableval"]) 
    450451 
     
    462463 
    463464AC_MSG_CHECKING(where to put the documentation) 
    464 AC_ARG_WITH(docdir, [  --with-docdir=PATH         Specify where to put the documentation], 
     465AC_ARG_WITH(docdir, AC_HELP_STRING([--with-docdir=PATH], [Specify where to put the documentation]), 
    465466        [mutt_cv_docdir=$withval], 
    466467        [mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"]) 
     
    480481AC_SUBST(DOTLOCK_PERMISSION) 
    481482 
    482 AC_ARG_WITH(domain, [  --with-domain=DOMAIN       Specify your DNS domain name], 
     483AC_ARG_WITH(domain, AC_HELP_STRING([--with-domain=DOMAIN], [Specify your DNS domain name]), 
    483484        [if test $withval != yes; then 
    484485                AC_DEFINE_UNQUOTED(DOMAIN,"$withval",[ Define your domain name. ]) 
     
    489490dnl -- socket dependencies -- 
    490491 
    491 AC_ARG_ENABLE(pop,  [  --enable-pop               Enable POP3 support], 
     492AC_ARG_ENABLE(pop,  AC_HELP_STRING([--enable-pop], [Enable POP3 support]), 
    492493[       if test x$enableval = xyes ; then 
    493494                AC_DEFINE(USE_POP,1,[ Define if you want support for the POP3 protocol. ]) 
     
    498499]) 
    499500 
    500 AC_ARG_ENABLE(imap, [  --enable-imap              Enable IMAP support], 
     501AC_ARG_ENABLE(imap, AC_HELP_STRING([--enable-imap], [Enable IMAP support]), 
    501502[       if test x$enableval = xyes ; then 
    502503                AC_DEFINE(USE_IMAP,1,[ Define if you want support for the IMAP protocol. ]) 
     
    529530dnl -- imap dependencies -- 
    530531 
    531 AC_ARG_WITH(gss, [    --with-gss[=PFX]         Compile in GSSAPI authentication for IMAP],  
     532AC_ARG_WITH(gss, AC_HELP_STRING([--with-gss[=PFX]], [Compile in GSSAPI authentication for IMAP]),  
    532533    gss_prefix="$withval", gss_prefix="no") 
    533534if test "$gss_prefix" != "no" 
     
    559560dnl -- end imap dependencies -- 
    560561 
    561 AC_ARG_WITH(ssl, [  --with-ssl[=PFX]           Compile in SSL support for POP/IMAP], 
     562AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl[=PFX]], [Compile in SSL support for POP/IMAP]), 
    562563[       if test "$with_ssl" != "no" 
    563564        then 
     
    589590 
    590591dnl SSL support via NSS 
    591 AC_ARG_WITH(nss, [  --with-nss[=PFX]           Compile in SSL support for POP/IMAP via NSS], 
     592AC_ARG_WITH(nss, AC_HELP_STRING([--with-nss[=PFX]], [Compile in SSL support for POP/IMAP via NSS]), 
    592593[       if test "$with_nss" != no 
    593594        then 
     
    612613]) 
    613614 
    614 AC_ARG_WITH([gnutls], [  --with-gnutls[=PFX]        Enable SSL support using gnutls], 
     615AC_ARG_WITH([gnutls], AC_HELP_STRING([--with-gnutls[=PFX]], [Enable SSL support using gnutls]), 
    615616    [gnutls_prefix="$withval"], [gnutls_prefix="no"]) 
    616617if test "$gnutls_prefix" != "no" 
     
    633634fi 
    634635 
    635 AC_ARG_WITH(sasl, [  --with-sasl[=PFX]          Use Cyrus SASL library for POP/IMAP authentication], 
     636AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl[=PFX]], [Use Cyrus SASL library for POP/IMAP authentication]), 
    636637        [ 
    637638        if test "$need_socket" != "yes" 
     
    663664AM_CONDITIONAL(USE_SASL, test x$need_sasl = xyes) 
    664665 
    665 AC_ARG_WITH(sasl2, [  --with-sasl2[=PFX]         Use Cyrus SASL library version 2 for POP/IMAP authentication], 
     666AC_ARG_WITH(sasl2, AC_HELP_STRING([--with-sasl2[=PFX]], [Use Cyrus SASL library version 2 for POP/IMAP authentication]), 
    666667        [ 
    667668        if test "$need_socket" != "yes" 
     
    695696AM_CONDITIONAL(USE_SASL, test x$need_sasl = xyes) 
    696697 
    697 AC_ARG_WITH(idn, [  --with-idn=[PFX]            Use GNU libidn for domain names], 
     698AC_ARG_WITH(idn, AC_HELP_STRING([--with-idn=[PFX]], [Use GNU libidn for domain names]), 
    698699                 [ 
    699700                  if test "$with_idn" != "no" ; then 
     
    715716dnl -- end socket -- 
    716717 
    717 AC_ARG_ENABLE(debug, [  --enable-debug             Enable debugging support], 
     718AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging support]), 
    718719        [ if test x$enableval = xyes ; then 
    719720                AC_DEFINE(DEBUG,1,[ Define to enable debugging info. ]) 
     
    721722         ]) 
    722723 
    723 AC_ARG_ENABLE(flock, [  --enable-flock             Use flock() to lock files], 
     724AC_ARG_ENABLE(flock, AC_HELP_STRING([--enable-flock], [Use flock() to lock files]), 
    724725        [if test $enableval = yes; then 
    725726                AC_DEFINE(USE_FLOCK,1, [ Define to use flock() to lock mailboxes. ]) 
     
    727728 
    728729mutt_cv_fcntl=yes 
    729 AC_ARG_ENABLE(fcntl, [  --disable-fcntl            Do NOT use fcntl() to lock files ], 
     730AC_ARG_ENABLE(fcntl, AC_HELP_STRING([--disable-fcntl], [Do NOT use fcntl() to lock files]), 
    730731        [if test $enableval = no; then mutt_cv_fcntl=no; fi]) 
    731732 
     
    737738dnl quickly change the default to "yes" again. 
    738739mutt_cv_inodesort=no 
    739 AC_ARG_ENABLE(inodesort,  [   --enable-inodesort        Read files in maildir folders sorted by inode. ], 
     740AC_ARG_ENABLE(inodesort,  AC_HELP_STRING([--enable-inodesort], [Read files in maildir folders sorted by inode]), 
    740741       [if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi]) 
    741742 
     
    745746 
    746747mutt_cv_warnings=yes 
    747 AC_ARG_ENABLE(warnings, [  --disable-warnings         Turn off compiler warnings (not recommended)], 
     748AC_ARG_ENABLE(warnings, AC_HELP_STRING([--disable-warnings], [Turn off compiler warnings (not recommended)]), 
    748749[if test $enableval = no; then 
    749750        mutt_cv_warnings=no 
     
    754755fi 
    755756 
    756 AC_ARG_ENABLE(nfs-fix, [  --enable-nfs-fix           Work around an NFS with broken attributes caching ], 
     757AC_ARG_ENABLE(nfs-fix, AC_HELP_STRING([--enable-nfs-fix], [Work around an NFS with broken attributes caching]), 
    757758        [if test x$enableval = xyes; then 
    758759                AC_DEFINE(NFS_ATTRIBUTE_HACK,1, 
     
    762763        fi]) 
    763764 
    764 AC_ARG_ENABLE(buffy-size, [  --enable-buffy-size        Use file size attribute instead of access time ], 
     765AC_ARG_ENABLE(buffy-size, AC_HELP_STRING([--enable-buffy-size], [Use file size attribute instead of access time]), 
    765766        [if test x$enableval = xyes; then 
    766767                AC_DEFINE(BUFFY_SIZE,1,[ Define to enable the "buffy_size" feature. ]) 
    767768        fi]) 
    768769 
    769 AC_ARG_ENABLE(mailtool, [  --enable-mailtool          Enable Sun mailtool attachments support ], 
     770AC_ARG_ENABLE(mailtool, AC_HELP_STRING([--enable-mailtool], [Enable Sun mailtool attachments support]), 
    770771        [if test x$enableval = xyes; then 
    771772                AC_DEFINE(SUN_ATTACHMENT,1,[ Define to enable Sun mailtool attachments support. ]) 
    772773        fi]) 
    773774 
    774 AC_ARG_ENABLE(locales-fix, [  --enable-locales-fix       The result of isprint() is unreliable ], 
     775AC_ARG_ENABLE(locales-fix, AC_HELP_STRING([--enable-locales-fix], [The result of isprint() is unreliable]), 
    775776        [if test x$enableval = xyes; then 
    776777                AC_DEFINE(LOCALES_HACK,1,[ Define if the result of isprint() is unreliable. ]) 
    777778        fi]) 
    778779 
    779 AC_ARG_WITH(exec-shell, [  --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)], 
     780AC_ARG_WITH(exec-shell, AC_HELP_STRING([--with-exec-shell=SHELL], [Specify alternate shell (ONLY if /bin/sh is broken)]), 
    780781        [if test $withval != yes; then 
    781782                AC_DEFINE_UNQUOTED(EXECSHELL, "$withval", 
     
    786787        [AC_DEFINE_UNQUOTED(EXECSHELL, "/bin/sh")]) 
    787788 
    788 AC_ARG_ENABLE(exact-address, [  --enable-exact-address     Enable regeneration of email addresses], 
     789AC_ARG_ENABLE(exact-address, AC_HELP_STRING([--enable-exact-address], [Enable regeneration of email addresses]), 
    789790        [if test $enableval = yes; then 
    790791                AC_DEFINE(EXACT_ADDRESS,1, 
     
    795796 
    796797dnl -- start cache -- 
    797 AC_ARG_ENABLE(hcache, [  --enable-hcache            Enable header caching], 
     798AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache], [Enable header caching]), 
    798799[if test x$enableval = xyes; then 
    799800    AC_DEFINE(USE_HCACHE, 1, [Enable header caching]) 
     
    805806    need_md5="yes" 
    806807    ac_prefer_gdbm=yes 
    807     AC_ARG_WITH(gdbm, [  --without-gdbm             Get rid of gdbm even if it is available ], 
     808    AC_ARG_WITH(gdbm, AC_HELP_STRING([--without-gdbm], [Don't use gdbm even if it is available]), 
    808809        ac_prefer_gdbm=$withval) 
    809810    if test x$ac_prefer_gdbm != xno; then 
     
    817818 
    818819    ac_bdb_prefix=yes 
    819     AC_ARG_WITH(bdb, [  --with-bdb[=DIR]          Use BerkeleyDB4 if gdbm is not available ], 
     820    AC_ARG_WITH(bdb, AC_HELP_STRING([--with-bdb[=DIR]], [Use BerkeleyDB4 if gdbm is not available]), 
    820821        ac_bdb_prefix=$withval) 
    821822    if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then 
     
    891892dnl -- iconv/gettext -- 
    892893 
    893 AC_ARG_ENABLE(iconv, [  --disable-iconv            Disable iconv support], 
     894AC_ARG_ENABLE(iconv, AC_HELP_STRING([--disable-iconv], [Disable iconv support]), 
    894895        [if test x$enableval = xno ; then 
    895896                am_cv_func_iconv=no 
     
    10461047 
    10471048wc_funcs=maybe 
    1048 AC_ARG_WITH(wc-funcs, [  --without-wc-funcs         Do not use the system's wchar_t functions], 
     1049AC_ARG_WITH(wc-funcs, AC_HELP_STRING([--without-wc-funcs], [Do not use the system's wchar_t functions]), 
    10491050        wc_funcs=$withval) 
    10501051 
  • m4/gettext.m4

    r3129 r3921  
    5151    dnl Default is enabled NLS 
    5252    AC_ARG_ENABLE(nls, 
    53       [  --disable-nls              Do not use Native Language Support], 
     53      AC_HELP_STRING([--disable-nls], [Do not use Native Language Support]), 
    5454      USE_NLS=$enableval, USE_NLS=yes) 
    5555    AC_MSG_RESULT($USE_NLS) 
     
    6767      AC_MSG_CHECKING([whether included gettext is requested]) 
    6868      AC_ARG_WITH(included-gettext, 
    69         [  --with-included-gettext    Use the GNU gettext library included here], 
     69        AC_HELP_STRING([--with-included-gettext], [Use the GNU gettext library included here]), 
    7070        nls_cv_force_use_gnu_gettext=$withval, 
    7171        nls_cv_force_use_gnu_gettext=no) 
  • m4/iconv.m4

    r3129 r3921  
    99 
    1010  AC_ARG_WITH([libiconv-prefix], 
    11 [  --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib], [ 
     11AC_HELP_STRING([--with-libiconv-prefix=DIR], [Search for libiconv in DIR/include and DIR/lib]), [ 
    1212    for dir in `echo "$withval" | tr : ' '`; do 
    1313      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi