mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
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:
parent
7df48655af
commit
9c7e4ba06e
2 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue