Hi Bruno,

* Bruno Haible wrote on Sat, Mar 13, 2010 at 05:27:10PM CET:
> AC_ARG_ENABLE is documented to accept options only consisting of
> "alphanumeric characters, dashes, and dots". I would like to write
> 
>   AC_MSG_CHECKING([whether to use C++])
>   AC_ARG_ENABLE([c++],
>     [  --disable-c++           do not build C++ sources],
>     [CXX_CHOICE="$enableval"],
>     [CXX_CHOICE=yes])
>   AC_MSG_RESULT([$CXX_CHOICE])
>   AC_SUBST([CXX_CHOICE])

That sounds good.

> Here is a proposed patch. Note that in _AC_INIT_PARSE_ENABLE2 was
> already handled, by converting it to an underscore, but that is only half
> of the needed job.

Those semantics already have users out there, though.  For example GCC
relies on --disable-libstdc___v3, so this would be an incompatible
change.  I find the x as mnemonic for + nice too but consistency also
with how Automake mangles names to variables would be higher if all
mangled characters were replaced with underscores.  So much for coloring
sheds.

Thanks,
Ralf


Reply via email to