Skip to content
Snippets Groups Projects
Commit 0ddfe549 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Rewrite default prefix with --prefix value in bash_completion_dir

parent 55686c75
No related branches found
No related tags found
1 merge request!384makefile: install bash completion script for keymgr to correct location.
......@@ -65,9 +65,10 @@ AC_CONFIG_FILES([src/libknot.pc
# Get Bash completion scripts directory
bash_completion_dir=""
PKG_CHECK_VAR([bash_completion_dir], [bash-completion],[completionsdir],[
AC_SUBST([BASH_COMPLETION_DIR], [$bash_completion_dir])
],[:])
PKG_CHECK_VAR([bash_completion_dir], [bash-completion], [completionsdir],[
PKG_CHECK_VAR([bash_completion_prefix], [bash-completion], [prefix], [
AC_SUBST([BASH_COMPLETION_DIR], ["${prefix}"/$(echo "$bash_completion_dir" | sed -e "s,^$bash_completion_prefix,,")])
])],[:])
AM_CONDITIONAL([HAVE_BASH_COMPLETION], [test -n "$bash_completion_dir"])
# Build Knot DNS daemon
......
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