Commit f2920d54 authored by Ondřej Surý's avatar Ondřej Surý

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

parent 98eec01a
......@@ -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"]
......
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