summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-16 21:55:46 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-16 21:55:46 (GMT)
commit81f9d4d73eb40587d8c145d7d4e81396279b7247 (patch)
treedeb617c8fc8492313b05470641595ba181744092 /configure
parent9fdc3888c40a0f751a1f591b93ced62f86a907bd (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-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 8b20f2c..ce32ac7 100755
--- a/configure
+++ b/configure
@@ -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='
';