Hi!
>>> "Pavel" == Pavel Roskin <[EMAIL PROTECTED]> writes:
[...]
Pavel> # m4_unquote(STRING)
Pavel> # ------------------
Pavel> # Remove one pair of the quotes if they exist
[...]
This just recall me of a place where I would like quotes not
to be removed...
I'd like to use AC_HELP_STRING to construct lines like
--enable-foobar[=DIR] short description here
^ ^
Unfortunately, it appears there are no ways to obtain this
(except not using AC_HELP_STRING).
AC_ARG_ENABLE([foobar],
[AC_HELP_STRING([--enable-foobar[=DIR]], [short description here])])
would produce
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-foobar=DIR short description here
other forms of quoting are even worst
AC_ARG_ENABLE([foobar],
[AC_HELP_STRING([--enable-foobar[[=DIR]]], [short description here])])
AC_ARG_ENABLE([foobar],
[AC_HELP_STRING([[--enable-foobar[=DIR]]], [short description here])])
AC_ARG_ENABLE([foobar],
[AC_HELP_STRING([--enable-foobar@<:@=DIR@:>@], [short description here])])
gives this:
Optional Features:
--disable-FEATURE do not include FEATURE (same as--enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-foobar=DIR short description here
--enable-foobar=DIR short description here
--enable-foobar[=DIR]
short description here
Any idea? (of course I need to use AC_HELP_STRING or something
similar, because I call AC_ARG_ENABLE in a function where the
name `foobar' is unknown, i.e., it is an argument).
--
Alexandre Duret-Lutz