Repository navigation
configure.ac: Add an --enable-all-modules option - #324
Merged
Merged
Conversation
This option will turn on or off all modules and most features when enabled, unless a feature was explicitly changed from being auto-detected. Currently, this means that pacct must be explicitly enabled, since it defaults to "no" (while all others default to "auto"). This also means that Sun Streams are turned on even on Linux, which leads to a compile error later. So on Linux, --enable-all-modules should be used together with --disable-sun-streams. Fixes #149. Requested-by: Andras Mitzki <[email protected]> Signed-off-by: Gergely Nagy <[email protected]>
Collaborator
|
I don't really see the value here. Auto means it will be enabled if the required dependency is present. This will just trigger compile failures. Am I missing something? |
Contributor
Author
|
No, you're not missing anything. The value is the compile failures when build-dependencies are missing. This way, the build fails early, and makes it easier to verify that everything that needs to be included in a package, is compiled in. It'd be reasonably useful for Debian, and very useful for packagers who do not split syslog-ng into module packages, but keep it all in one (pretty much any non-linux packaging). |
Collaborator
|
Works for me then. A note at the end of.configure (and / or help screen)would be useful though to disclaim compilation problems if something is missing. |
Collaborator
|
👍 |
juhaszviktor
added a commit
that referenced
this pull request
Dec 8, 2014
configure.ac: Add an --enable-all-modules option
HofiOne
pushed a commit
to HofiOne/syslog-ng
that referenced
this pull request
Nov 22, 2024
Filterx parse cef/leef syslog-ng#1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This option will turn on or off all modules and most features when enabled, unless a feature was explicitly changed from being auto-detected. Currently, this means that pacct must be explicitly enabled, since it defaults to "no" (while all others default to "auto").
This also means that Sun Streams are turned on even on Linux, which leads to a compile error later. So on Linux, --enable-all-modules should be used together with --disable-sun-streams.
Fixes #149.
A better option would be to clean up configure, and have an m4 macro that handles the module enable/disable foo, and also registers it in a list, so when adding a new module, one wouldn't need to update the
MODULESlist introduced here too. But that's beyond my time limit at the moment.