[exim-dev] [Bug 1819] Conditional configuration depending on…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 1819] Conditional configuration depending on exim version
https://bugs.exim.org/show_bug.cgi?id=1819

--- Comment #3 from Heiko Schlittermann <hs@???> ---
(A) We create a set of built-in macros. Each new Exim release defines an
additional(!) macro as

    EXIM_VERSION_ge_4.87
    EXIM_VERSION_ge_4.88



    # use an option that is available on 4.87 and newer
    .ifdef EXIM_VERSION_ge_4.87
    foo = bar
    .endif


This doesn't scale well with if we have tons of versions. I do not
expect this :)

What to do in testing environments and the advent of new options between
to releases?


(B) We have "feature test macros"

    .ifdef HAVE_main.foo
    foo = bar
    .endif


    begin routers


        blix:
            driver = dnslookup


    # use a new routers specific option
    .ifdef HAVE_routers.keep_frox
            keep_frox = yes
    .endif


    # use a new dnslookup specific option
    .ifdef HAVE_dnslookup.foo_bar
            foo_bar = baz
    .endif


--
You are receiving this mail because:
You are on the CC list for the bug.