latte-dock: 0.9.11 -> 0.9.12
[NixPkgs.git] / pkgs / tools / networking / mosh / bash_completion_datadir.patch
blob4b71f125d2879d0bd7d52a2d5ec141b029c689ad
1 diff --git a/configure.ac b/configure.ac
2 index 3ad983d..ff8ff96 100644
3 --- a/configure.ac
4 +++ b/configure.ac
5 @@ -476,13 +476,7 @@ AS_IF([echo "$protobuf_LIBS" | grep -q -- -pthread],
7 # Bash completion needs to ask where it goes if >= 2.0 is installed.
8 AS_IF([test "$install_completion" != no],
9 - [PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
10 - [if test "$prefix" = "NONE"; then
11 - completions="`pkg-config --variable=completionsdir bash-completion`"
12 - else
13 - completions="`pkg-config --define-variable=prefix=$prefix --variable=completionsdir bash-completion`"
14 - fi],
15 - [completions="${sysconfdir}/bash_completion.d"])
16 + [completions="`pkg-config --define-variable=datadir=$datadir --variable=completionsdir bash-completion`"]
17 AC_SUBST([completions])])
19 AC_CONFIG_FILES([