Commit ee482ea8 authored by Dominik Taborsky's avatar Dominik Taborsky

makefile: add action-if-not-found for bash-completion module in configure.ac.

parent 8a886f99
......@@ -62,6 +62,14 @@ AC_CONFIG_FILES([src/libknot.pc
src/zscanner/libzscanner.pc
])
# Get Bash completion scripts directory
bash_completion_dir=""
PKG_CHECK_MODULES([bash_completion],[bash-complretion],[
bash_completion_dir=$(pkg-config --variable=completionsdir bash-completion)
AC_SUBST([BASH_COMPLETION_DIR], $bash_completion_dir)
],[bash_completion_dir=""])
AM_CONDITIONAL([HAVE_BASH_COMPLETION], test -n "$bash_completion_dir")
# Build Knot DNS daemon
AC_ARG_ENABLE([daemon],
AS_HELP_STRING([--disable-daemon], [Don't build Knot DNS main daemon]), [], [enable_daemon=yes])
......@@ -110,14 +118,6 @@ PKG_CHECK_MODULES([gnutls], [gnutls >= 3.0 nettle])
# JSON for DNSSEC status storage
PKG_CHECK_MODULES([jansson], [jansson >= 2.3])
# Get Bash completion scripts directory
bash_completion_dir=""
PKG_CHECK_MODULES([bash_completion],[bash-completion],[
bash_completion_dir=$(pkg-config --variable=completionsdir bash-completion)
AC_SUBST([BASH_COMPLETION_DIR], $bash_completion_dir)
])
AM_CONDITIONAL([HAVE_BASH_COMPLETION], test -n "$bash_completion_dir")
# Debug modules
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug=server,zones,ns,loader,dnssec],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment