mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-03-21 11:35:20 +00:00
configure: install in a sub-dir of --libdir and --docdir
In case the user specifies the LIBDIR with --libdir , or DOCDIR with --docdir, install our support files in a sub-dir, so as not to mangle existing (potentially system) files/dirs.
This commit is contained in:
parent
eb2a7ba9b0
commit
6c6415a101
11
configure
vendored
11
configure
vendored
@ -404,10 +404,17 @@ echo "${VERSION}"
|
||||
|
||||
# Now we have the version string, we can build up the paths
|
||||
[ -z "${BINDIR_set}" ] && BINDIR="${PREFIX}/bin"
|
||||
[ -z "${LIBDIR_set}" ] && LIBDIR="${PREFIX}/lib/ct-ng-${VERSION}"
|
||||
[ -z "${DOCDIR_set}" ] && DOCDIR="${PREFIX}/share/doc/ct-ng-${VERSION}"
|
||||
[ -z "${LIBDIR_set}" ] && LIBDIR="${PREFIX}/lib"
|
||||
[ -z "${DOCDIR_set}" ] && DOCDIR="${PREFIX}/share/doc"
|
||||
[ -z "${MANDIR_set}" ] && MANDIR="${PREFIX}/share/man/man1"
|
||||
|
||||
# Install support files in our own sub-dir, so as not to mangle (system)
|
||||
# files and dirs, but only if not --local
|
||||
if [ -z "${LOCAL_set}" ]; then
|
||||
LIBDIR="${LIBDIR}/ct-ng-${VERSION}"
|
||||
DOCDIR="${DOCDIR}/ct-ng-${VERSION}"
|
||||
fi
|
||||
|
||||
# Check that install PATHs are absolute
|
||||
for p in BIN LIB DOC MAN; do
|
||||
var="${p}DIR"
|
||||
|
Loading…
x
Reference in New Issue
Block a user