configure.ac: Use standard --with-bash-completion-dir option #174
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.
Rationale:
This makes it a lot easier to enable/disable installation
of bash completion files rather than it being based on
a certain package being installed (or not). It's useful
in Gentoo Linux for example where we may want to always
install Bash completion files to the right location, even
if the user isn't using it yet, to save rebuilds.
This makes a few changes to the current Bash completion logic, mainly:
Falls back gracefully to a standard directory if bash-completion
itself is not installed (in that case, we can't ask it via pkgconfig
where to place files).
So the behaviour is now:
no argument / --with-bash-completion-dir=yes:
Asks pkgconfig, but falls back to standard directory.
--with-bash-completion-dir=dir:
Use the given directory with no detection.
--without-bash-completion-dir:
No installation of Bash completion files.
Signed-off-by: Sam James sam@gentoo.org