Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autotools: Work around an absolute path problem
Problem: `make distcheck` will perform a `./configure --prefix` call, that fails when using an absolute path for installing a file (in our case bash completion). This also happens when a user has no root rights and want to install in their /home or somewhere. Solution: bend the path to use the autotools $prefix variable. Unfortunately this has some sideeffects, because of using pkg-config directly and needing a way to disable this behaviour alltogether. This ugly (sic!) way attempts to work with either: * --with-bash-completion-dir == --with-bash-completion-dir=yes * --without-bash-completion-dir == --with-bash-completion-dir=no * --with-bash-completion-dir=/some/path While the last option will not work with --prefix installs, when given an absolute path without write permissions, it would be stupid to use one in a read-only dir anyways.
- Loading branch information