mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 11:13:50 +00:00
install bash completion where pkg-config tells us to
Signed-off-by: Evgeni Golov <evgeni@debian.org>
This commit is contained in:
parent
f3d7477c37
commit
23f4c8a01a
@ -1,14 +1,5 @@
|
||||
EXTRA_DIST = lxc
|
||||
|
||||
if ENABLE_BASH
|
||||
install-bash:
|
||||
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
|
||||
$(INSTALL_DATA) lxc $(DESTDIR)$(sysconfdir)/bash_completion.d/
|
||||
|
||||
uninstall-bash:
|
||||
rm -f $(DESTDIR)$(sysconfdir)/bash_completion.d/lxc
|
||||
rmdir $(DESTDIR)$(sysconfdir)/bash_completion.d/ || :
|
||||
|
||||
install-data-local: install-bash
|
||||
uninstall-local: uninstall-bash
|
||||
dist_bashcomp_DATA = lxc
|
||||
endif
|
||||
|
@ -479,6 +479,14 @@ AC_ARG_ENABLE([bash],
|
||||
[], [enable_bash=yes])
|
||||
AM_CONDITIONAL([ENABLE_BASH], [test "x$enable_bash" = "xyes"])
|
||||
|
||||
AM_COND_IF([ENABLE_BASH],
|
||||
[AC_MSG_CHECKING([bash completion directory])
|
||||
PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir], ,
|
||||
bashcompdir="${sysconfdir}/bash_completion.d")
|
||||
AC_MSG_RESULT([$bashcompdir])
|
||||
AC_SUBST(bashcompdir)
|
||||
])
|
||||
|
||||
# Optional test binaries
|
||||
AC_ARG_ENABLE([tests],
|
||||
[AC_HELP_STRING([--enable-tests], [build test/example binaries [default=no]])],
|
||||
|
Loading…
Reference in New Issue
Block a user