1diff --git a/configure.ac b/configure.ac
2index 3ad983d..ff8ff96 100644
3--- a/configure.ac
4+++ b/configure.ac
5@@ -476,13 +476,7 @@ AS_IF([echo "$protobuf_LIBS" | grep -q -- -pthread],
6
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])])
18
19 AC_CONFIG_FILES([