On 20 Jul 2001 10:23:25 +0200, Akim Demaille wrote:
> >>>>> "Ralf" == Ralf Corsepius <[EMAIL PROTECTED]> writes:
>
> Ralf> Hi, A simple question:
>
> Ralf> How to write '[' and ']' in AC_HELP_STRING with autoconf-2.5x?
>
> Ralf> Background: I would like to use a help string (configure --help)
> Ralf> similar to this:
>
> Ralf> --enable-some-feature=[foo|bar] explanation [default:foo]
>
> You just cannot do it properly currently. This macro was an error :(
>
> I would just write it by hand.
You can use quadrigraphs:
AC_ARG_WITH(blah, AC_HELP_STRING([--with-blah@<:@=bleh@:>@], [foobar]))
Unfortunately, AC_HELP_STRING does the length check before the
quadrigraphs get squashed, so the help text will often be moved to the
next line when it doesn't actually have to.
AC_HELP_STRING is actually quite nice, IMHO (and will cause user options
to fit in nicely even if a new version of autoconf changes the --help
layout).
--
Tim Van Holder - Anubex N.V.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
This message was posted using plain text. I do not endorse any
products or services that may be hyperlinked to this message.