Fix bash completion installation

Fixed the configure script to avoid that the bash completion script gets
installed outside of the prefix location. The default install location
is now $prefix/share/bash-completion/completions.

Use the configure option '--with-bash-completion-dir=PATH' if you need
to install the bash completion script elsewhere.
This commit is contained in:
Martin Lund 2017-10-01 00:11:31 +02:00
parent 7df48655af
commit 9c7e4ba06e
2 changed files with 1 additions and 5 deletions

View file

@ -17,9 +17,7 @@ AC_ARG_WITH([bash-completion-dir],
[with_bash_completion_dir=yes])
if test "x$with_bash_completion_dir" = "xyes"; then
PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
[BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`"],
[BASH_COMPLETION_DIR="${sysconfdir}/bash_completion.d"])
BASH_COMPLETION_DIR="${datadir}/bash-completion/completions"
else
BASH_COMPLETION_DIR="$with_bash_completion_dir"
fi