[Moved from -patches because this is more of a design discussion]
Thanks Stephen for the reply. It's nice to have a well defined spec for a
change:-)
>>>> "Stephen" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
Malcolm> 1) --with-complex not supplied:
Malcolm> with_complex_foo=""
Malcolm> with_complex_bar=""
Malcolm> with_complex_baz=""
Stephen> I want
Stephen> with_complex_foo="yes"
Stephen> with_complex_bar="no"
Stephen> with_complex_baz=""
It should be pointed out that this is slightly different behaviour from the
normal argument case. In that case if --with-simple is not supplied then the
shell variable with_simple is "". Any default values have to be supplied by
the user in the ACTION-IF_FALSE part of the AC_WITH_ARG macro.
My proposal was in line with the traditional behaviour but yours I think is
better.
Your desiderata does not address this case:
Malcolm> 4) --with-complex=bar
Malcolm> with_complex_foo=no
Malcolm> with_complex_bar=yes
Malcolm> with_complex_baz=no
(ie, if you explicitly set one or more options, all other options are set to
'no'.
You came up with this requirement with discussing --with-error-checking a few
months ago. The post can be found at:
http://list-archive.xemacs.org/xemacs-beta/200510/msg00481.html
Is this case still a requirement?
Malcolm
--
Malcolm Purvis <malcolmp(a)xemacs.org>