Skip to content

configure.ac: Add an --enable-all-modules option - #324

Merged
juhaszviktor merged 1 commit into
syslog-ng:masterfrom
algernon:f/enable-all-modules
Dec 8, 2014
Merged

juhaszviktor merged 1 commit into
syslog-ng:masterfrom
algernon:f/enable-all-modules

Conversation

@algernon

@algernon algernon commented Dec 2, 2014

Copy link
Copy Markdown
Contributor

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 MODULES list introduced here too. But that's beyond my time limit at the moment.

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]>
@bazsi

bazsi commented Dec 2, 2014

Copy link
Copy Markdown
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?

@algernon

algernon commented Dec 3, 2014

Copy link
Copy Markdown
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).

@bazsi

bazsi commented Dec 5, 2014

Copy link
Copy Markdown
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.

@lbudai

lbudai commented Dec 8, 2014

Copy link
Copy Markdown
Collaborator

👍

juhaszviktor added a commit that referenced this pull request Dec 8, 2014
configure.ac: Add an --enable-all-modules option
@juhaszviktor
juhaszviktor merged commit 8c4696e into syslog-ng:master Dec 8, 2014
@algernon
algernon deleted the f/enable-all-modules branch December 8, 2014 12:03
HofiOne pushed a commit to HofiOne/syslog-ng that referenced this pull request Nov 22, 2024
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.

Add configure option to enable all modules

4 participants