[Exherbo-dev] default_src_configure extras

Bryan Østergaard bryan.ostergaard at gmail.com
Mon Feb 4 16:26:15 GMT 2008


On Feb 4, 2008 4:32 AM, Ciaran McCreesh
<ciaran.mccreesh at blueyonder.co.uk> wrote:
> We have a lot of src_configures that just do econf $(option_enable
> blah ) or econf --blah. Perhaps we should make default_src_configure a
> bit smarter?
>
> default_src_configure() {
>     econf \
>         ${DEFAULT_SRC_CONFIGURE_PARAMS} \
>         $(for s in ${DEFAULT_SRC_CONFIGURE_OPTION_ENABLES} ; do \
>             $(option_enable $s ) ; \
>         done )
> }
>
> Both vars would be set in global scope, and so must be metadata
> invariant, hence the OPTION_ENABLES var.
>
> Worthwhile?
>
Sure, it's a bit simpler that way and might help avoid a few simple errors.

Regards,
Bryan Østergaard


More information about the Exherbo-dev mailing list