diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-11-16 21:55:46 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-11-16 21:55:46 (GMT) |
commit | 81f9d4d73eb40587d8c145d7d4e81396279b7247 (patch) | |
tree | deb617c8fc8492313b05470641595ba181744092 /configure | |
parent | 9fdc3888c40a0f751a1f591b93ced62f86a907bd (diff) |
Honor the DESTDIR variable to install out-of-place (Eg. for packaging).
/trunk/configure | 10 10 0 0 +++++++++
/trunk/Makefile.in | 62 36 26 0 +++++++++++++++++++++++++++++++-----------------------
/trunk/docs/overview.txt | 12 12 0 0 ++++++++++
3 files changed, 58 insertions(+), 26 deletions(-)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -277,6 +277,16 @@ echo "${VERSION}" [ -z "${DOCDIR_set}" ] && DOCDIR="${PREFIX}/share/doc/ct-ng-${VERSION}" [ -z "${MANDIR_set}" ] && MANDIR="${PREFIX}/share/man/man1" +# Check that install PATHs are absolute +for p in BIN LIB DOC MAN; do + var="${p}DIR" + eval v="\${${var}}" + case "${v}" in + /*) ;; + *) do_error "'${var}' is not an absolute path: '${v}'" + esac +done + # Check the existence of absolutely required tools { IFS=' '; |