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

Turn off bash-completions by default, but leave the autoconf options in place

parent 98eec01a
No related branches found
No related tags found
1 merge request!430Bash completions disabled by default
......@@ -376,12 +376,13 @@ AS_IF([test "$with_libidn" != "no"],[
# Bash completions
AC_ARG_WITH([bash-completions],
AC_HELP_STRING([--with-bash-completions=[DIR]], [Bash completions directory [default=auto]]),
[with_bash_completions="$withval"],
[with_bash_completions=auto]
AC_HELP_STRING([--with-bash-completions=[DIR]], [Bash completions directory [default=no]]),
[AS_IF([test "$withval" = ""],
[with_bash_completions="yes"],
[with_bash_completions="$withval"])],
[with_bash_completions=no]
)
AS_CASE([$with_bash_completions],
[auto], [PKG_CHECK_VAR([bash_completions_dir], [bash-completion], [completionsdir])],
[yes], [PKG_CHECK_VAR([bash_completions_dir], [bash-completion], [completionsdir], [], [AC_MSG_ERROR([bash completions not found])])],
[no], [bash_completions_dir=],
[bash_completions_dir="$with_bash_completions"]
......
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