Skip to content

Commit

Permalink
Select bash-completion directory from pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-scheck committed Jun 13, 2024
1 parent e9f27bf commit 5cf7d49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,13 @@ AC_ARG_ENABLE([fs-test],
AM_CONDITIONAL(ENABLE_FS_TEST, test "$enable_fs_test" = yes)
AM_CONDITIONAL(ENABLE_FEATURE_TEST, test "$enable_feature_test" = yes)


##bash-completion
PKG_CHECK_VAR([bashcompletiondir], [bash-completion], [completionsdir], [],
[bashcompletiondir="${sysconfdir}/bash_completion.d"])
AC_SUBST(bashcompletiondir)


AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ partclone_imgfuse_LDADD+=-ldl -lcrypto ${LDADD_static}
endif
endif

compconfdir=$(sysconfdir)/bash_completion.d
compconfdir=@bashcompletiondir@
compconf_DATA = partclone-prompt

# Extra
Expand Down

0 comments on commit 5cf7d49

Please sign in to comment.