This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients brett.cannon, christian.heimes, lemburg, miss-islington, ned.deily, zach.ware
Date 2021-10-26.14:17:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635257873.45.0.863843426205.issue45548@roundup.psfhosted.org>
In-reply-to
Content
Brett, we can use AM_CONDITIONAL() to conditionally enable/disable a feature and AC_CONFIG_FILES() to create a Modules/Setup from a template:

Example:

The conditional

    AM_CONDITIONAL([HAVE_SCPROXY], [test "$ac_sys_system" = "Darwin"])

sets HAVE_SCPROXY_FALSE and HAVE_NIS_SCPROXY based on the check.

On macOS:

    HAVE_SCPROXY_FALSE='#'
    HAVE_SCPROXY_TRUE=''

On Linux:

    HAVE_SCPROXY_FALSE=''
    HAVE_SCPROXY_TRUE='#'

We can either do something like:

    *shared*
    @HAVE_SCPROXY_TRUE@_scproxy _scproxy.c -framework SystemConfiguration -framework CoreFoundation

or:

    *disabled*
    @HAVE_SCPROXY_FALSE*_scproxy
History
Date User Action Args
2021-10-26 14:17:53christian.heimessetrecipients: + christian.heimes, lemburg, brett.cannon, ned.deily, zach.ware, miss-islington
2021-10-26 14:17:53christian.heimessetmessageid: <1635257873.45.0.863843426205.issue45548@roundup.psfhosted.org>
2021-10-26 14:17:53christian.heimeslinkissue45548 messages
2021-10-26 14:17:53christian.heimescreate