diff -r 2f44fac6b514 -r 56653c9b885e configure --- a/configure Sat Oct 10 16:44:12 2009 +0200 +++ b/configure Thu Jan 07 19:20:31 2010 +0100 @@ -404,10 +404,17 @@ # 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"