Skip to content
Snippets Groups Projects
Commit 462727d6 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle
Browse files

build: fix make distcheck.

And install bash-completions in the supplied prefix.
parent b5d51738
No related branches found
No related tags found
No related merge requests found
...@@ -173,9 +173,15 @@ AC_ARG_WITH([bash-completion-dir], ...@@ -173,9 +173,15 @@ AC_ARG_WITH([bash-completion-dir],
[with_bash_completion_dir=yes]) [with_bash_completion_dir=yes])
if test "x$with_bash_completion_dir" = "xyes"; then if test "x$with_bash_completion_dir" = "xyes"; then
PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0], if test "x$prefix" = xNONE; then
[BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`"], PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
[BASH_COMPLETION_DIR="$datadir/bash-completion/completions"]) [BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`"],
[BASH_COMPLETION_DIR="$datadir/bash-completion/completions"])
else
PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
[BASH_COMPLETION_DIR="`pkg-config --define-variable=prefix=$prefix --variable=completionsdir bash-completion`"],
[BASH_COMPLETION_DIR="$prefix/$datadir/bash-completion/completions"])
fi
else else
BASH_COMPLETION_DIR="$with_bash_completion_dir" BASH_COMPLETION_DIR="$with_bash_completion_dir"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment