Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix AC_ARG_ENABLE so that --disable-* options work as expected #80

Merged
merged 1 commit into from
Oct 4, 2016
Merged

Conversation

rindeal
Copy link
Contributor

@rindeal rindeal commented Oct 3, 2016

Currently, if AC_ARG_ENABLE contains '--enable-foo' and user passes
'--disable-foo' to './configure', '$enable_foo' will contain 'yes'.

This commit strips 'action-if-(un)specified' arguments of AC_ARG_ENABLE
in order to leverage the default behaviour, which sets `$enable_*'
content appropriately.

This PR is related to #59, but I hope that my solution is cleaner.

Currently, if AC_ARG_ENABLE contains '--enable-foo' and user passes
'--disable-foo' to './configure', '$enable_foo' will contain 'yes'.

This commit strips 'action-if-(un)specified' arguments of AC_ARG_ENABLE
in order to leverage the default behaviour, which sets `$enable_*'
content appropriately.
@Thomas-Tsai Thomas-Tsai merged commit 0294289 into Thomas-Tsai:master Oct 4, 2016
@rindeal rindeal deleted the autoconf branch October 4, 2016 10:58
Thomas-Tsai added a commit that referenced this pull request Oct 24, 2016
fix AC_ARG_ENABLE so that --disable-* options work as expected
Thomas-Tsai added a commit that referenced this pull request Feb 2, 2017
fix AC_ARG_ENABLE so that --disable-* options work as expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants