diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-12-10 14:09:13 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-12-10 14:09:13 (GMT) |
commit | 454429bc7c5725c9a2804001e3ee7c6e15665315 (patch) | |
tree | 049c362bf9d18b54fd8f487ac9fcbae43f7a9a46 /configure | |
parent | 7d5787d95c8bb0fdfc3413691bfc10a39ffe6686 (diff) |
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.
(transplanted from 991fc21dd3cfda7d6448388b3224821f6937f15e)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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" |