diff --git a/subprojects/extensions-tool/meson.build b/subprojects/extensions-tool/meson.build index ffaf49bd3..4631eef58 100644 --- a/subprojects/extensions-tool/meson.build +++ b/subprojects/extensions-tool/meson.build @@ -33,7 +33,7 @@ json_dep = dependency('json-glib-1.0') cc = meson.get_compiler('c') -bash_completion = dependency('bash-completion', required: false) +bash_completion = dependency('bash-completion', required: get_option('bash_completion')) subdir('src') diff --git a/subprojects/extensions-tool/meson_options.txt b/subprojects/extensions-tool/meson_options.txt index 9963d8ff7..fb6e37060 100644 --- a/subprojects/extensions-tool/meson_options.txt +++ b/subprojects/extensions-tool/meson_options.txt @@ -5,6 +5,12 @@ option('man', yield: true, ) +option('bash_completion', + type: 'feature', + value: 'auto', + description: 'Install bash completion support', +) + option('package_name', type: 'string', description: 'The gettext domain name when used as a subproject'