From 970811a1c58d22fad37d8cbe2233b8344f358e78 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Wed, 4 Apr 2018 00:07:45 -0700 Subject: Conditionally install bash completion Signed-off-by: Alexey Neyman --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c7b6f5a0..920e42d7 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,16 @@ AC_ARG_ENABLE( [run ct-ng from the current directory; 'make install' unsupported])]) AC_SUBST([enable_local], [${enable_local:-no}]) +AC_ARG_WITH([bash-completion-dir], + [AS_HELP_STRING( + [--with-bash-completion], + [install bash(1) command completion for ct-ng into specified directory, + relative to sysconfdir])], + [], + [with_bash_completion_dir=bash_completion.d]) +AM_CONDITIONAL([INSTALL_BASH_COMPLETION], [test "${with_bash_completion_dir}" != "no" ]) +AC_SUBST([BASH_COMPLETION_DIR], [${with_bash_completion_dir}]) + # FIXME: I don't know why we have this. Will remove after the 1.24 release. AC_ARG_ENABLE( [shared], -- cgit v1.2.3